// swagger:parameters download
type download struct {
// in: path
resource.DownloadIn
}
type DownloadIn struct {
ResourceId string `form:"resourceId" binding:"required"`
}
// Success response
// swagger:response downloadWrapper
type downloadWrapper struct {
// in: body
Body struct {
Code int `json:"code"`
Msg resource.UploadOut `json:"msg"`
}
}
多谢指教🙏🙏🙏
1
pwli 2021-01-19 16:32:26 +08:00 1
1. nginx 转发下?|| 自己渲染 swagger
2. // in: path 代表路由参数,貌似不能是复合结构 3. // example: 200 |
2
jindeq 2021-01-19 16:48:30 +08:00
没看懂
|