system

package
v0.0.0-...-997d260 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	B  = 1
	KB = 1024 * B
	MB = 1024 * KB
	GB = 1024 * MB
)

Variables

View Source
var (
	Store   base64Captcha.Store
	Captcha = new(captcha)
)
View Source
var ApplicationService = new(applicationService)
View Source
var AuthService = new(userService)
View Source
var (
	Casbin = new(_casbin)
)
View Source
var JwtBlacklist = new(jwtBlacklist)
View Source
var OperationLog = new(operationLog)
View Source
var Server = new(_server)
View Source
var UserService = new(userService)

Functions

This section is empty.

Types

type CaptchaRes

type CaptchaRes struct {
	PicPath   string `json:"picPath"`
	CaptchaId string `json:"captchaId"`
}

type Cpu

type Cpu struct {
	Cpus  []float64 `json:"cpus"`
	Cores int       `json:"cores"`
}

type Disk

type Disk struct {
	UsedMB      int `json:"usedMb"`
	UsedGB      int `json:"usedGb"`
	TotalMB     int `json:"totalMb"`
	TotalGB     int `json:"totalGb"`
	UsedPercent int `json:"usedPercent"`
}

type OperationLogCreateParams

type OperationLogCreateParams struct {
	system.OperationLog
}

type OperationRecordSearchParams

type OperationRecordSearchParams struct {
	Path   string `json:"path" example:"请求路径"`
	Method string `json:"method" example:"请求方法"`
	Status int    `json:"status" example:"7"`
	common.PageInfo
}

type Os

type Os struct {
	GOOS         string `json:"goos"`
	NumCPU       int    `json:"numCpu"`
	Compiler     string `json:"compiler"`
	GoVersion    string `json:"goVersion"`
	NumGoroutine int    `json:"numGoroutine"`
}

type Rrm

type Rrm struct {
	UsedMB      int `json:"usedMb"`
	TotalMB     int `json:"totalMb"`
	UsedPercent int `json:"usedPercent"`
}

type ServerRes

type ServerRes struct {
	Os   Os   `json:"os"`
	Cpu  Cpu  `json:"cpu"`
	Rrm  Rrm  `json:"ram"`
	Disk Disk `json:"disk"`
}

type UserChangePasswordReq

type UserChangePasswordReq struct {
	g.Meta      `path:"/changePassword" method:"post" auth:"false"`
	Id          uint   `json:"id"`
	Password    string `json:"password"`
	NewPassword string `json:"newPassword"`
}

type UserDeleteReq

type UserDeleteReq struct {
	g.Meta `path:"/resetPassword" method:"post" auth:"false"`
	Id     uint `json:"id"`
}

type UserFindReq

type UserFindReq struct {
	g.Meta   `path:"/find" method:"post" auth:"false"`
	Id       uint   `json:"id" example:"7"`
	Username string `json:"username" example:"7"`
}

type UserGetByIdReq

type UserGetByIdReq struct {
	g.Meta `path:"/getById" method:"post" auth:"false"`
	Id     uint
}

type UserInfoRes

type UserInfoRes struct {
	system.User
}

type UserListRes

type UserListRes struct {
	List []system.User
}

type UserPageReq

type UserPageReq struct {
	g.Meta `path:"/page" method:"post" auth:"false"`
	common.PageInfo
	AppId          uint `json:"appId"`
	OrganizationId uint `json:"organizationId"`
}

type UserPageRes

type UserPageRes struct {
	common.PageInfo
	List []system.User
}

type UserRegisterReq

type UserRegisterReq struct {
	g.Meta   `path:"/register" method:"post" auth:"false"`
	Avatar   string
	Username string
	Password string
	NickName string
}

type UserResetPasswordReq

type UserResetPasswordReq struct {
	g.Meta      `path:"/resetPassword" method:"post" auth:"false"`
	Id          uint   `json:"id"`
	Password    string `json:"password"`
	NewPassword string `json:"newPassword"`
}

type UserUpdateReq

type UserUpdateReq struct {
	g.Meta   `path:"/update" method:"post" auth:"false"`
	Id       uint   `json:"id" example:"uint 主键ID"`
	Avatar   string `json:"avatar" example:"用户头像"`
	NickName string `json:"nickName" example:"用户昵称"`
}

Jump to

Keyboard shortcuts

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