Documentation
¶
Index ¶
- func Created(c *gin.Context, data any, location string)
- func Fail(c *gin.Context, status int, message string, args ...any)
- func ID(c *gin.Context) uint
- func IDs(c *gin.Context) []uint
- func Order(c *gin.Context, fields ...string) clause.OrderByColumn
- func Page(c *gin.Context) (int, int)
- func Paginated(c *gin.Context, data any, total int64, page, size int)
- func Report(c *gin.Context, err error, status ...int)
- func Respond(c *gin.Context, data any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Order ¶
func Order(c *gin.Context, fields ...string) clause.OrderByColumn
Order 仅允许列表已公开的字段参与排序.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.