Documentation
¶
Index ¶
- Constants
- func Fail(c *gin.Context)
- func FailWithDetailed(data interface{}, message string, c *gin.Context)
- func FailWithMessage(message string, c *gin.Context)
- func Ok(c *gin.Context)
- func OkWithData(data interface{}, c *gin.Context)
- func OkWithDetailed(data interface{}, message string, c *gin.Context)
- func OkWithMessage(message string, c *gin.Context)
- func Result(code int, data interface{}, msg string, c *gin.Context)
- type ExaCustomerResponse
- type ExaFileResponse
- type FilePathResponse
- type FileResponse
- type LoginResponse
- type PageResult
- type PolicyPathResponse
- type Response
- type SysAPIListResponse
- type SysAPIResponse
- type SysAuthorityCopyResponse
- type SysAuthorityResponse
- type SysBaseMenuResponse
- type SysBaseMenusResponse
- type SysCaptchaResponse
- type SysConfigResponse
- type SysMenusResponse
- type SysUserResponse
Constants ¶
View Source
const ( ERROR = 7 SUCCESS = 0 )
Variables ¶
This section is empty.
Functions ¶
func FailWithDetailed ¶
func FailWithMessage ¶
func OkWithData ¶
func OkWithDetailed ¶
func OkWithMessage ¶
Types ¶
type ExaCustomerResponse ¶
type ExaCustomerResponse struct {
Customer model.ExaCustomer `json:"customer"`
}
type ExaFileResponse ¶
type ExaFileResponse struct {
File model.ExaFileUploadAndDownload `json:"file"`
}
type FilePathResponse ¶
type FilePathResponse struct {
FilePath string `json:"filePath"`
}
type FileResponse ¶
type LoginResponse ¶
type PageResult ¶
type PolicyPathResponse ¶
type PolicyPathResponse struct {
Paths []request.CasbinInfo `json:"paths"`
}
type SysAPIListResponse ¶
type SysAPIResponse ¶
type SysAuthorityCopyResponse ¶
type SysAuthorityCopyResponse struct { Authority model.SysAuthority `json:"authority"` OldAuthorityId string `json:"oldAuthorityId"` }
type SysAuthorityResponse ¶
type SysAuthorityResponse struct {
Authority model.SysAuthority `json:"authority"`
}
type SysBaseMenuResponse ¶
type SysBaseMenuResponse struct {
Menu model.SysBaseMenu `json:"menu"`
}
type SysBaseMenusResponse ¶
type SysBaseMenusResponse struct {
Menus []model.SysBaseMenu `json:"menus"`
}
type SysCaptchaResponse ¶
type SysConfigResponse ¶
type SysMenusResponse ¶
type SysUserResponse ¶
Click to show internal directories.
Click to hide internal directories.