feat(settings): add user profile and password management
This commit is contained in:
@@ -26,8 +26,13 @@ const userService = {
|
||||
return request.get(api.user_info);
|
||||
},
|
||||
|
||||
// 更新用户密码
|
||||
updatePassword: (data: { password: string; new_password: string }) => {
|
||||
return post(api.setting, data);
|
||||
},
|
||||
|
||||
// 更新用户设置
|
||||
updateSetting: (data: any) => {
|
||||
updateSetting: (data: Partial<IUserInfo>) => {
|
||||
return post(api.setting, data);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user