feat(settings): add user profile and password management

This commit is contained in:
2025-10-21 11:40:47 +08:00
parent 73510a3b74
commit 6ca5e235b4
13 changed files with 1330 additions and 20 deletions

View File

@@ -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);
},