request

package
v0.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangePasswordStruct

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

修改密码请求的结构体

type CustomClaims

type CustomClaims struct {
	UUID        uuid.UUID
	ID          uint
	Username    string
	NickName    string
	AuthorityId string
	BufferTime  int64
	jwt.StandardClaims
}

Custom claims structure

type Empty

type Empty struct{}

type GetAuthorityId

type GetAuthorityId struct {
	AuthorityId string
}

Get role by id structure

type GetById

type GetById struct {
	Id float64 `json:"id" form:"id"`
}

Find by id structure

type IdsReq

type IdsReq struct {
	Ids []int `json:"ids" form:"ids"`
}

type Login

type Login struct {
	Username  string `json:"username"`
	Password  string `json:"password"`
	Captcha   string `json:"captcha"`
	CaptchaId string `json:"captchaId"`
}

用户登录请求的结构体

type PageInfo

type PageInfo struct {
	Page     int `json:"page" form:"page"`
	PageSize int `json:"pageSize" form:"pageSize"`
}

Paging common input parameter 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:'http://www.henrongyi.top/avatar/lufu.jpg'"`
}

用户注册请求的结构体

type SetUserAuth

type SetUserAuth struct {
	UUID uuid.UUID `json:"uuid"`
}

Modify user's auth structure

Jump to

Keyboard shortcuts

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