unibest/src/api/login.typings.ts

64 lines
934 B
TypeScript
Raw Normal View History

/**
*
*/
export type IUserInfoVo = {
id: number
username: string
name: string
sex: string
email: string
phone: string
avatar: string
createTime: string
roles: string[]
permissions: string[]
}
/**
*
*/
export type IUserLogin = {
id: string
username: string
token: string
}
/**
*
*/
export type ICaptcha = {
captchaEnabled: boolean
uuid: string
image: string
}
/**
*
*/
export type IUploadSuccessInfo = {
fileId: number
originalName: string
fileName: string
storagePath: string
fileHash: string
fileType: string
fileBusinessType: string
fileSize: number
}
/**
*
*/
export type IUpdateInfo = {
id: number
name: string
sex: string
}
/**
*
*/
export type IUpdatePassword = {
id: number
oldPassword: string
newPassword: string
confirmPassword: string
}