api定义
package api
import "github.com/sagoo-cloud/nexframe/nf/g"
type GetBookByIdReq struct {
g.Meta `path:"/book/info" method:"GET" summary:"获取书的信息" tags:"书管理"`
Id string `json:"id" description:"id,图书ID" v:"required#id不能为空"`
KeyWord string `json:"keyWord" description:"关键字"`
}
type GetBookByIdRes struct {
Types string `json:"types" description:"图书类型"`
CreatedAt string `json:"createdAt" description:"创建时间"`
Title string `json:"title" description:"图书标题"`
}
最后更新于