response

package
v0.0.0-...-1b8ef74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERROR   = 7
	SUCCESS = 0
)

Variables

This section is empty.

Functions

func AbortResult

func AbortResult(code int, data interface{}, msg string, c *gin.Context)

func Fail

func Fail(c *gin.Context)

func FailWithDetailed

func FailWithDetailed(data interface{}, message string, c *gin.Context)

func FailWithMessage

func FailWithMessage(message string, c *gin.Context)

func Ok

func Ok(c *gin.Context)

func OkWithData

func OkWithData(data interface{}, c *gin.Context)

func OkWithDetailed

func OkWithDetailed(data interface{}, message string, c *gin.Context)

func OkWithMessage

func OkWithMessage(message string, c *gin.Context)

func Result

func Result(code int, data interface{}, msg string, c *gin.Context)

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 FileResponse struct {
	File model.ExaFile `json:"file"`
}

type LoginResponse

type LoginResponse struct {
	User      model.SysUser `json:"user"`
	Token     string        `json:"token"`
	ExpiresAt int64         `json:"expiresAt"`
}

type PageResult

type PageResult struct {
	List     interface{} `json:"list"`
	Total    int64       `json:"total"`
	Page     int         `json:"page"`
	PageSize int         `json:"pageSize"`
}

type PolicyPathResponse

type PolicyPathResponse struct {
	Paths []request.CasbinInfo `json:"paths"`
}

type Response

type Response struct {
	Code int         `json:"code"`
	Data interface{} `json:"data"`
	Msg  string      `json:"msg"`
}

type SysAPIListResponse

type SysAPIListResponse struct {
	Apis []model.SysApi `json:"apis"`
}

type SysAPIResponse

type SysAPIResponse struct {
	Api model.SysApi `json:"api"`
}

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 SysCaptchaResponse struct {
	CaptchaId string `json:"captchaId"`
	PicPath   string `json:"picPath"`
}

type SysConfigResponse

type SysConfigResponse struct {
	Config config.Server `json:"config"`
}

type SysMenusResponse

type SysMenusResponse struct {
	Menus []model.SysMenu `json:"menus"`
}

type SysUserResponse

type SysUserResponse struct {
	User model.SysUser `json:"user"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL