request

package
v0.0.0-...-73f8a9c Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMenu

func DefaultMenu() []system.SysBaseMenu

Types

type AddMenuAuthorityInfo

type AddMenuAuthorityInfo struct {
	Menus       []system.SysBaseMenu `json:"menus"`
	AuthorityId string               `json:"authorityId"` // 角色ID
}

Add menu authority info structure

type BaseClaims

type BaseClaims struct {
	UUID        uuid.UUID
	ID          uint
	Username    string
	NickName    string
	AuthorityId string
}

type CasbinInReceive

type CasbinInReceive struct {
	AuthorityId string       `json:"authorityId"` // 权限id
	CasbinInfos []CasbinInfo `json:"casbinInfos"`
}

Casbin structure for input parameters

type CasbinInfo

type CasbinInfo struct {
	Path   string `json:"path"`   // 路径
	Method string `json:"method"` // 方法
}

Casbin info structure

func DefaultCasbin

func DefaultCasbin() []CasbinInfo

type ChangePasswordStruct

type ChangePasswordStruct struct {
	Username    string `json:"username"`    // 用户名
	Password    string `json:"password"`    // 密码
	NewPassword string `json:"newPassword"` // 新密码
}

Modify password structure

type ChangeUserInfo

type ChangeUserInfo struct {
	ID           uint                 `gorm:"primarykey"`                                                                           // 主键ID
	NickName     string               `json:"nickName" gorm:"default:系统用户;comment:用户昵称"`                                            // 用户昵称
	Phone        string               `json:"phone"  gorm:"comment:用户手机号"`                                                          // 用户角色ID
	AuthorityIds []string             `json:"authorityIds" gorm:"-"`                                                                // 角色ID
	Email        string               `json:"email"  gorm:"comment:用户邮箱"`                                                           // 用户邮箱
	HeaderImg    string               `json:"headerImg" gorm:"default:https://qmplusimg.henrongyi.top/gva_header.jpg;comment:用户头像"` // 用户头像
	Authorities  []model.SysAuthority `json:"-" gorm:"many2many:sys_user_authority;"`
}

type CustomClaims

type CustomClaims struct {
	BaseClaims
	BufferTime int64
	jwt.StandardClaims
}

Custom claims structure

type Login

type Login struct {
	Username  string `json:"username"`  // 用户名
	Password  string `json:"password"`  // 密码
	Captcha   string `json:"captcha"`   // 验证码
	CaptchaId string `json:"captchaId"` // 验证码ID
}

User login structure

type Register

type Register struct {
	Username     string   `json:"userName"`
	Password     string   `json:"passWord"`
	NickName     string   `json:"nickName" gorm:"default:'QMPlusUser'"`
	HeaderImg    string   `json:"headerImg" gorm:"default:'https://qmplusimg.henrongyi.top/gva_header.jpg'"`
	AuthorityId  string   `json:"authorityId" gorm:"default:888"`
	AuthorityIds []string `json:"authorityIds"`
}

User register structure

type SearchApiParams

type SearchApiParams struct {
	system.SysApi
	request.PageInfo
	OrderKey string `json:"orderKey"` // 排序
	Desc     bool   `json:"desc"`     // 排序方式:升序false(默认)|降序true
}

api分页条件查询及排序结构体

type SetUserAuth

type SetUserAuth struct {
	AuthorityId string `json:"authorityId"` // 角色ID
}

Modify user's auth structure

type SetUserAuthorities

type SetUserAuthorities struct {
	ID           uint
	AuthorityIds []string `json:"authorityIds"` // 角色ID
}

Modify user's auth structure

type SysAuthorityBtnReq

type SysAuthorityBtnReq struct {
	MenuID      uint   `json:"menuID"`
	AuthorityId string `json:"authorityId"`
	Selected    []uint `json:"selected"`
}

type SysAutoHistory

type SysAutoHistory struct {
	request.PageInfo
}

type SysDictionaryDetailSearch

type SysDictionaryDetailSearch struct {
	system.SysDictionaryDetail
	request.PageInfo
}

type SysDictionarySearch

type SysDictionarySearch struct {
	system.SysDictionary
	request.PageInfo
}

type SysOperationRecordSearch

type SysOperationRecordSearch struct {
	system.SysOperationRecord
	request.PageInfo
}

Jump to

Keyboard shortcuts

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