新增游戏图标,用户头像上传功能
This commit is contained in:
@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user