2
0

fix:修改个人信息界面以及接口

This commit is contained in:
zhongzm
2024-12-13 19:14:29 +08:00
parent bf911bac96
commit 7cf6249fd8
5 changed files with 129 additions and 35 deletions

19
src/typings/api.d.ts vendored
View File

@@ -104,6 +104,7 @@ declare namespace Api {
delFlag: string;
loginIp: string;
loginDate: string;
birthDate:string;
dept: Department.Dept;
roles: Role[];
roleId: string;
@@ -143,11 +144,11 @@ declare namespace Api {
password: string;
authType:string;
email: string;
fullName: string;
fullName?: string;
age: number;
address: string;
sex: string;
phonenumber: string;
address?: string;
sex?: string;
phonenumber?: string;
}
interface EmailCaptcha{
email:string;
@@ -158,6 +159,16 @@ declare namespace Api {
phonenumber?:string;
authType: string;
}
interface ChangeInfoBody{
userId:number;
userName: string;
nickName?: string|undefined;
email: string;
phonenumber?: string|undefined;
sex?: string|undefined;
birthDate?:string|undefined;
age?:number;
}
}
/**

View File

@@ -53,6 +53,7 @@ declare global {
const doAddDict: typeof import('../service/api/dict')['doAddDict']
const doAddMenu: typeof import('../service/api/menu')['doAddMenu']
const doAddPost: typeof import('../service/api/post')['doAddPost']
const doChangeUserInfo: typeof import('../service/api/auth')['doChangeUserInfo']
const doCheckUserRepeat: typeof import('../service/api/auth')['doCheckUserRepeat']
const doDeleteDept: typeof import('../service/api/dept')['doDeleteDept']
const doDeleteDict: typeof import('../service/api/dict')['doDeleteDict']