初版定稿

This commit is contained in:
xiaowang
2026-02-25 09:13:45 +08:00
parent faee2d4e0c
commit f946f9d31a
10 changed files with 123 additions and 46 deletions
+19
View File
@@ -0,0 +1,19 @@
import api from './index'
import type { UserInfo } from './auth'
export type UserVO = UserInfo
export interface UpdateUserInfoRequest {
nickname?: string
avatar?: string
signature?: string
}
export const userApi = {
getUserInfo: () => {
return api.get<UserVO>('/user/info')
},
updateUserInfo: (data: UpdateUserInfoRequest) => {
return api.put('/user/info', data)
}
}