Documentation ¶
Index ¶
- Constants
- func Bing(c *gin.Context, obj interface{}) (err error)
- func BingFile(c *gin.Context, name ...string) (file *multipart.FileHeader, err error)
- func BingForm(c *gin.Context, obj interface{}) (err error)
- func BingJson(c *gin.Context, obj interface{}) (err error)
- func BingQuery(c *gin.Context, obj interface{}) (err error)
- func BingUri(c *gin.Context, obj interface{}) (err error)
- func NewPageReq() *dao.PageRequest
- type ListRequest
- type ListResponse
Constants ¶
View Source
const (
// 文件不存在
FILE_NOT_EXIST = "file not exist"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListRequest ¶
type ListRequest struct { Page int `form:"page" json:"page" query:"page" binding:"omitempty,min=1" msg:"页码最小为1" example:"1"` PageSize int `form:"page_size" json:"page_size" query:"page_size" binding:"omitempty,min=1" msg:"每页数量最小为1" example:"10"` Order string `form:"order" json:"order" query:"order" msg:"排序" example:"descend"` Field string `form:"field" json:"field" query:"field" msg:"排序字段" example:"id"` }
ListRequest 列表请求参数
type ListResponse ¶
ListResponse 列表响应参数
Click to show internal directories.
Click to hide internal directories.