Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetAuthorityId ¶
type GetAuthorityId struct {
AuthorityId string `json:"authorityId" form:"authorityId" example:"角色ID"`
}
GetAuthorityId Get role by AuthorityI structure
type GetByID ¶
type GetByID struct {
Id uint `json:"id" form:"page" swaggertype:"string" example:"uint 主键ID"`
}
GetByID get by ID
type GetByIDs ¶
type GetByIDs struct {
Ids []uint `json:"ids" form:"ids" swaggertype:"array,number"`
}
type PageInfo ¶
type PageInfo struct { Page int `json:"page" form:"page" swaggertype:"string" example:"int 页码"` PageSize int `json:"pageSize" form:"pageSize" swaggertype:"string" example:"int 每页大小"` Total int64 `json:"total" form:"page" swaggertype:"string" example:"int 总记录数"` }
PageInfo Paging common input parameter structure
type PageResult ¶
func NewPageResult ¶
func NewPageResult(list interface{}, total int64, info PageInfo) *PageResult
Click to show internal directories.
Click to hide internal directories.