request

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiCreate

type ApiCreate struct {
	Path        string `json:"path" example:"/api/create"`
	Method      string `json:"method" example:"请求方法:创建POST(默认)|查看GET|更新PUT|删除DELETE"`
	ApiGroup    string `json:"apiGroup" example:"api组"`
	Description string `json:"description" example:"api中文描述"`
}

func (*ApiCreate) Create

func (r *ApiCreate) Create() system.Api

type ApiDelete

type ApiDelete struct {
	common.GetByID
	Path   string `json:"path" example:"/api/create"`
	Method string `json:"method" example:"请求方法:创建POST(默认)|查看GET|更新PUT|删除DELETE"`
}

type ApiSearch

type ApiSearch struct {
	common.PageInfo
	Desc        bool   `json:"desc" example:"false"`
	Path        string `json:"path" example:"/api/create"`
	Order       string `json:"orderKey" example:"排序"`
	Method      string `json:"method" example:"请求方法:创建POST(默认)|查看GET|更新PUT|删除DELETE"`
	ApiGroup    string `json:"apiGroup" example:"api组"`
	Description string `json:"description" example:"api中文描述"`
}

func (*ApiSearch) Search

func (r *ApiSearch) Search() func(db *gorm.DB) *gorm.DB

type ApiUpdate

type ApiUpdate struct {
	common.GetByID
	Path        string `json:"path" example:"api路径"`
	Method      string `json:"method" example:"api组"`
	ApiGroup    string `json:"apiGroup" example:"api请求方法"`
	Description string `json:"description"  example:"中文描述"`
}

func (*ApiUpdate) Update

func (r *ApiUpdate) Update() system.Api

type AuthorityCopy

type AuthorityCopy struct {
	Authority      system.Authority `json:"authority"`
	OldAuthorityId string           `json:"oldAuthorityId"  example:"旧角色ID"`
}

func (*AuthorityCopy) ToCasbinSearch

func (r *AuthorityCopy) ToCasbinSearch() *CasbinSearch

func (*AuthorityCopy) ToGetAuthorityId

func (r *AuthorityCopy) ToGetAuthorityId() *common.GetAuthorityId

type AuthorityCreate

type AuthorityCreate struct {
	ParentId      string `json:"parentId" example:"父角色ID"`
	AuthorityId   string `json:"authorityId" binding:"required" example:"角色ID"`
	AuthorityName string `json:"authorityName" example:"角色名"`
	DefaultRouter string `json:"defaultRouter" example:"登录菜单(默认dashboard)"`
}

func (*AuthorityCreate) Create

func (r *AuthorityCreate) Create() system.Authority

func (*AuthorityCreate) DefaultCasbin

func (r *AuthorityCreate) DefaultCasbin() []system.Casbin

func (*AuthorityCreate) DefaultMenu

func (r *AuthorityCreate) DefaultMenu() *AuthoritySetMenu

type AuthorityDelete

type AuthorityDelete struct {
	system.Authority
}

func (*AuthorityDelete) ToCasbinSearch

func (r *AuthorityDelete) ToCasbinSearch() *CasbinSearch

type AuthoritySetMenu

type AuthoritySetMenu struct {
	system.Authority
}

type AuthoritySetResources

type AuthoritySetResources struct {
	system.Authority
}

type AuthorityUpdate

type AuthorityUpdate struct {
	system.Authority
}

func (*AuthorityUpdate) Update

func (r *AuthorityUpdate) Update() system.Authority

type AutoCodeCreate

type AutoCodeCreate struct {
	system.AutoCodeStruct
}

type AutoCodeHistoryCreate

type AutoCodeHistoryCreate struct {
	system.AutoCodeStruct
	Apis          system.AutoCodeApis
	Injection     system.AutoCodeInjections
	AutoCodePaths system.AutoCodePaths
}

func (*AutoCodeHistoryCreate) Create

type AutoCodeHistorySearch

type AutoCodeHistorySearch struct {
	*common.PageInfo
}

func (*AutoCodeHistorySearch) Order

func (s *AutoCodeHistorySearch) Order() func(db *gorm.DB) *gorm.DB

func (*AutoCodeHistorySearch) Select

func (s *AutoCodeHistorySearch) Select() func(db *gorm.DB) *gorm.DB

type CasbinInReceive

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

CasbinInReceive structure for input parameters

type CasbinInfo

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

type CasbinSearch

type CasbinSearch struct {
	AuthorityId string `json:"authorityId"` // 权限id
}

func (*CasbinSearch) Search

func (r *CasbinSearch) Search() func(db *gorm.DB) *gorm.DB

type CustomClaims

type CustomClaims struct {
	ID          uint
	Uuid        string
	Nickname    string
	Username    string
	AuthorityId string
	BufferTime  int64
	jwt.StandardClaims
}

type DictionaryCreate

type DictionaryCreate struct {
	Desc   string `json:"desc" example:"描述"`
	Name   string `json:"name" example:"字典名(中)"`
	Type   string `json:"type" example:"字典名(英)"`
	Status *bool  `json:"status"`
}

func (*DictionaryCreate) Create

func (r *DictionaryCreate) Create() system.Dictionary

type DictionaryDetailCreate

type DictionaryDetailCreate struct {
	Sort         int    `json:"sort" example:"7"`
	Value        int    `json:"value" example:"7"`
	Label        string `json:"label" example:"展示值"`
	Status       *bool  `json:"status"`
	DictionaryID int    `json:"sysDictionaryID" example:"7"`
}

func (*DictionaryDetailCreate) Create

type DictionaryDetailSearch

type DictionaryDetailSearch struct {
	common.PageInfo
	Sort         int    `json:"sort" example:"7"`
	Value        int    `json:"value" example:"7"`
	Label        string `json:"label" example:"展示值"`
	Status       *bool  `json:"status"`
	DictionaryID int    `json:"sysDictionaryID" example:"7"`
}

func (*DictionaryDetailSearch) Search

func (r *DictionaryDetailSearch) Search() func(db *gorm.DB) *gorm.DB

type DictionaryDetailUpdate

type DictionaryDetailUpdate struct {
	common.GetByID
	Sort         int    `json:"sort" example:"7"`
	Value        int    `json:"value" example:"7"`
	Label        string `json:"label" example:"展示值"`
	Status       *bool  `json:"status"`
	DictionaryID int    `json:"sysDictionaryID" example:"7"`
}

func (*DictionaryDetailUpdate) Update

type DictionaryFirst

type DictionaryFirst struct {
	common.GetByID
	Type string `json:"type" example:"字典名(英)"`
}

type DictionarySearch

type DictionarySearch struct {
	common.PageInfo
	Desc   string `json:"desc" example:"描述"`
	Name   string `json:"name" example:"字典名(中)"`
	Type   string `json:"type" example:"字典名(英)"`
	Status *bool  `json:"status"`
}

func (*DictionarySearch) Search

func (r *DictionarySearch) Search() func(db *gorm.DB) *gorm.DB

type DictionaryUpdate

type DictionaryUpdate struct {
	common.GetByID
	Desc   string `json:"desc" example:"描述"`
	Name   string `json:"name" example:"字典名(中)"`
	Type   string `json:"type" example:"字典名(英)"`
	Status *bool  `json:"status"`
}

func (*DictionaryUpdate) Update

func (r *DictionaryUpdate) Update() g.Map
type MenuAddAuthority struct {
	Menus       []system.Menu `json:"menus"`
	AuthorityId string        `json:"authorityId" example:"角色Id"`
}
func (r *MenuAddAuthority) ToAuthoritySetMenu() AuthoritySetMenu
type MenuCreate struct {
	system.Menu
}
type MenuUpdate struct {
	system.Menu
}
func (r *MenuUpdate) Update() map[string]interface{}

type OperationRecordCreate

type OperationRecordCreate struct {
	system.OperationRecord
}

type OperationRecordSearch

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

func (*OperationRecordSearch) Search

func (r *OperationRecordSearch) Search() func(db *gorm.DB) *gorm.DB

type UserChangePassword

type UserChangePassword struct {
	Uuid        string
	Username    string `json:"username"`
	Password    string `json:"password"`
	NewPassword string `json:"newPassword"`
}

type UserFind

type UserFind struct {
	ID   uint   `json:"id" example:"7"`
	Uuid string `json:"uuid" example:"uuid"`
}

func (*UserFind) Search

func (r *UserFind) Search() func(db *gorm.DB) *gorm.DB

type UserLogin

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

type UserRegister

type UserRegister struct {
	Avatar       string   `json:"headerImg"`
	Username     string   `json:"userName"`
	Password     string   `json:"passWord"`
	Nickname     string   `json:"nickName"`
	AuthorityId  string   `json:"authorityId"`
	AuthorityIds []string `json:"authorityIds"`
}

func (*UserRegister) Create

func (r *UserRegister) Create() system.User

type UserSetAuthorities

type UserSetAuthorities struct {
	ID           uint     `json:"ID" example:"7"`
	AuthorityIds []string `json:"authorityIds" example:"角色id切片"`
}

type UserSetAuthority

type UserSetAuthority struct {
	ID          uint   `json:"-"`
	Uuid        string `json:"-"`
	AuthorityId string `json:"authorityId"`
}

type UserUpdate

type UserUpdate struct {
	common.GetByID
	Avatar      string `json:"headerImg" example:"用户头像"`
	Username    string `json:"userName" example:"用户登录名"`
	Nickname    string `json:"nickName" example:"用户昵称"`
	SideMode    string `json:"sideMode" example:"用户侧边主题"`
	BaseColor   string `json:"baseColor" example:"基础颜色"`
	ActiveColor string `json:"activeColor" example:"用户角色ID"`
}

func (*UserUpdate) Update

func (r *UserUpdate) Update() system.User

Jump to

Keyboard shortcuts

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