beedoc icon indicating copy to clipboard operation
beedoc copied to clipboard

注释的Swagger文档返回值是否支持嵌套

Open rikixiao opened this issue 6 years ago • 0 comments


type BaseResponse struct {
    Code int
    Message string
}

type UserResponse struct {
    BaseResponse
    // 其他字段 (other properties) ...
}

当我注释文档的时候不能正常生成文档

// ...
// @Success 200 {object} xxx.UserResponse      // 这个地方不能正常生成文档
// ...

rikixiao avatar Apr 09 '18 09:04 rikixiao