Documentation
¶
Index ¶
Constants ¶
View Source
const ( Success = 20000 InternalServerError = 50000 BadRequest = 40000 ErrRecordNotFound = 40002 UserNameOrPasswordIsWrong = 41001 UserIsNotExist = 41002 NoPermission = 41003 TokenInvalid = 41004 TokenExpired = 41005 UserDisabled = 41006 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonDetailResponse ¶
type CommonDetailResponse struct {
CommonResponse
Data interface{} `json:"data"`
}
type CommonRequest ¶
type CommonResponse ¶
type DeleteRequest ¶
type EnableRequest ¶
type GetById ¶
type GetById struct {
ID string `json:"id" form:"id" uri:"id"`
}
Find by id structure
type Model ¶
type PageInfo ¶
type PageInfo struct {
PageIndex int64 `json:"pageIndex" form:"pageIndex" uri:"pageIndex"`
PageSize int64 `json:"pageSize" form:"pageSize" uri:"pageSize"`
Pages int64 `json:"pages" form:"pages" uri:"pages"`
Records int64 `json:"records" form:"records" uri:"records"`
OrderField string `json:"orderField" form:"orderField" uri:"orderField"`
Desc bool `json:"desc" form:"desc" uri:"desc"`
Total int64 `json:"total" form:"total" uri:"total"`
Current int64 `json:"current" form:"current" uri:"current"`
}
Paging common input parameter structure
type TenantModel ¶
Click to show internal directories.
Click to hide internal directories.