package v1 import ( "github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/net/ghttp" ) type UploadReq struct { g.Meta `path:"/upload/image" method:"post" tags:"WEB" summary:"上传文件"` File *ghttp.UploadFile `json:"file"` } 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"` } type UploadRewardImgReq struct { g.Meta `path:"/upload/reward" method:"post" tags:"WEB" summary:"上传奖励图标文件"` File *ghttp.UploadFile `json:"file"` } type UploadRewardImgRes struct { Url string `json:"url"` }