request

package
v0.0.0-...-5e8989d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseClaims

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

type ChangePassword

type ChangePassword struct {
	ID          uint   `json:"-"`           // 从 JWT 中提取id,避免越权
	Password    string `json:"password"`    // 密码
	NewPassword string `json:"newPassword"` // 新密码
	Code        string `json:"code"`        // 验证码
}

ChangePassword 修改密码

type CustomClaims

type CustomClaims struct {
	BaseClaims
	BufferTime int64
	jwt.RegisteredClaims
}

Custom claims structure

type FdUserSearch

type FdUserSearch struct {
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	InviteUserId   *int       `json:"inviteUserId" form:"inviteUserId" `
	Phone          string     `json:"phone" form:"phone" `
	Name           string     `json:"name" form:"name" `
	Types          *int       `json:"types" form:"types" `
	request.PageInfo
}

type ForgetPassword

type ForgetPassword struct {
	Phone string `json:"phone"` // 用户手机号/账号
	Code  string `json:"code"`  // 短信验证码
}

ForgetPassword 忘记密码

type Login

type Login struct {
	Phone    string `json:"phone"`    // 用户手机号/账号
	Password string `json:"password"` // 登录密码
}

Login 登陆

type PromotionUserSearch

type PromotionUserSearch struct {
	StewardID uint   `json:"stewardID"`
	Name      string `json:"name" form:"name"`
	Phone     string `json:"phone" form:"phone"`
}

type Register

type Register struct {
	Phone        string `json:"phone" example:"用户手机号/账号"`
	Code         string `json:"code" example:"短信验证码"`
	Password     string `json:"password" example:"登录密码"`
	StewardID    uint   `json:"steward_id" example:"健管师id"`
	InviteUserID uint   `json:"invite_user_id" example:"邀请人id"`
}

Register 注册

type UpdateUser

type UpdateUser struct {
	Name         string    `json:"name"`
	Avatar       string    `json:"avatar"`
	Sex          uint      `json:"sex"`
	Birthday     time.Time `json:"birthday"`
	Province     uint      `json:"province"`
	City         uint      `json:"city"`
	Area         uint      `json:"area"`
	Addr         string    `json:"addr"`
	Contact      string    `json:"contact"`
	ContactPhone string    `json:"contact_Phone"`
}

UpdateUser 修改用户信息

type UserBindManageSearch

type UserBindManageSearch struct {
	user.UserBindManage
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	request.PageInfo
}

type UserSearch

type UserSearch struct {
	user.User
	StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
	EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
	request.PageInfo
}

Jump to

Keyboard shortcuts

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