新增游戏图标,用户头像上传功能

This commit is contained in:
chy
2025-06-12 10:19:27 +08:00
parent f7cffcae21
commit cc8646156a
8 changed files with 117 additions and 5 deletions

View File

@ -12,3 +12,20 @@ type UploadReq struct {
type UploadRes struct {
Url string `json:"url"`
}
type UploadGameImgReq struct {
g.Meta `path:"/upload/game" method:"post" tags:"WEB" summary:"上传游戏图标文件"`
File *ghttp.UploadFile `json:"file"`
}
type UploadGameImgRes struct {
Url string `json:"url"`
}
type UploadUserImgReq struct {
g.Meta `path:"/upload/user" method:"post" tags:"WEB" summary:"上传用户头像文件"`
File *ghttp.UploadFile `json:"file"`
}
type UploadUserImgRes struct {
Url string `json:"url"`
}