上传头像 部分卡片加入模型选择

This commit is contained in:
X1627315083@163.com
2026-03-18 10:59:12 +08:00
parent 61034e71d1
commit 68a6be6468
16 changed files with 235 additions and 41 deletions

View File

@@ -109,3 +109,27 @@ export const UpdateUserProfile = (data, loading = false) => {
})
}
/**
* 上传头像
* @param data 上传头像的参数
* @param data.avatar 头像文件
* @returns 上传头像成功的响应
*/
export const UpdateUserAvatar = (data) => {
return request({
url: '/api/user/avatar',
method: 'post',
data
})
}
/**
* 获取上传头像次数
*/
export const getAvatarLimit = () => {
return request({
url: '/api/user/avatar/limit',
method: 'get',
})
}