response

package
v0.5.17 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fail

func Fail(c *gin.Context, data gin.H, message string)

返回前端-失败

func Response

func Response(c *gin.Context, httpStatus int, code int, data gin.H, message string)

返回前端

func Success

func Success(c *gin.Context, data gin.H, message string)

返回前端-成功

Types

type ApiListRsp

type ApiListRsp struct {
	Total int64       `json:"total"`
	Apis  []model.Api `json:"apis"`
}

type ApiTreeRsp

type ApiTreeRsp struct {
	ID       int          `json:"ID"`
	Remark   string       `json:"remark"`
	Category string       `json:"category"`
	Children []*model.Api `json:"children"`
}

type DashboardList

type DashboardList struct {
	DataType  string `json:"dataType"`
	DataName  string `json:"dataName"`
	DataCount int64  `json:"dataCount"`
	Icon      string `json:"icon"`
	Path      string `json:"path"`
}

type GroupListRsp

type GroupListRsp struct {
	Total  int64         `json:"total"`
	Groups []model.Group `json:"groups"`
}

type GroupUsers

type GroupUsers struct {
	GroupId     int64   `json:"groupId"`
	GroupName   string  `json:"groupName"`
	GroupRemark string  `json:"groupRemark"`
	UserList    []Guser `json:"userList"`
}

type Guser

type Guser struct {
	UserId       int64  `json:"userId"`
	UserName     string `json:"userName"`
	NickName     string `json:"nickName"`
	Mail         string `json:"mail"`
	JobNumber    string `json:"jobNumber"`
	Mobile       string `json:"mobile"`
	Introduction string `json:"introduction"`
}

type LogListRsp

type LogListRsp struct {
	Total int64                `json:"total"`
	Logs  []model.OperationLog `json:"logs"`
}
type MenuListRsp struct {
	Total int64        `json:"total"`
	Menus []model.Menu `json:"menus"`
}

type RoleListRsp

type RoleListRsp struct {
	Total int64        `json:"total"`
	Roles []model.Role `json:"roles"`
}

type UserListRsp

type UserListRsp struct {
	Total int          `json:"total"`
	Users []model.User `json:"users"`
}

Jump to

Keyboard shortcuts

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