1. 我在服务器上用 swagger serve 把服务启在 7500 端口,点测试的时候也访问了 7500,但是我要测试的业务启在 7501,怎么解决这个啊
2. 我按如下格式定义了一个 GET 请求的 form 参数,无法正确显示。这种该怎么定义呢?
// swagger:parameters download
type download struct {
// in: path
resource.DownloadIn
}
type DownloadIn struct {
ResourceId string `form:"resourceId" binding:"required"`
}
3. 返回参数按如下定义,能正常显示但是 code 值一直是 0,我想显示为 200,有办法么?
// Success response
// swagger:response downloadWrapper
type downloadWrapper struct {
// in: body
Body struct {
Code int `json:"code"`
Msg resource.UploadOut `json:"msg"`
}
}
多谢指教🙏🙏🙏