解决合并后出现的问题,为swagger提供禁用选项,暂时移除wiki
This commit is contained in:
@@ -3,6 +3,7 @@ package model
|
||||
import "os"
|
||||
|
||||
// Response 通用API响应结构
|
||||
// @Description 标准API响应格式
|
||||
type Response struct {
|
||||
Code int `json:"code"` // 业务状态码
|
||||
Message string `json:"message"` // 响应消息
|
||||
@@ -10,6 +11,7 @@ type Response struct {
|
||||
}
|
||||
|
||||
// PaginationResponse 分页响应结构
|
||||
// @Description 分页数据响应格式
|
||||
type PaginationResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
@@ -20,6 +22,7 @@ type PaginationResponse struct {
|
||||
}
|
||||
|
||||
// ErrorResponse 错误响应
|
||||
// @Description API错误响应格式
|
||||
type ErrorResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
|
||||
Reference in New Issue
Block a user