mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-07 02:57:11 +08:00
refactor: 优化个人中心部分代码
This commit is contained in:
@@ -8,7 +8,7 @@ export interface UserInfo {
|
||||
phone: string
|
||||
avatar: string
|
||||
pwdResetTime: string
|
||||
passwordExpired: boolean
|
||||
pwdExpired: boolean
|
||||
registrationDate: string
|
||||
deptName: string
|
||||
roles: string[]
|
||||
|
||||
@@ -19,12 +19,12 @@ export function updateUserPassword(data: { oldPassword: string; newPassword: str
|
||||
}
|
||||
|
||||
/** @desc 修改手机号 */
|
||||
export function updateUserPhone(data: { newPhone: string; captcha: string; currentPassword: string }) {
|
||||
export function updateUserPhone(data: { phone: string; captcha: string; oldPassword: string }) {
|
||||
return http.patch(`${BASE_URL}/phone`, data)
|
||||
}
|
||||
|
||||
/** @desc 修改邮箱 */
|
||||
export function updateUserEmail(data: { newEmail: string; captcha: string; currentPassword: string }) {
|
||||
export function updateUserEmail(data: { email: string; captcha: string; oldPassword: string }) {
|
||||
return http.patch(`${BASE_URL}/email`, data)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user