user

package
v0.0.0-...-8bc0546 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShowMoneyService

type ShowMoneyService struct {
	Key string `json:"key" form:"key"`
}

func (*ShowMoneyService) Show

func (service *ShowMoneyService) Show(ctx context.Context, uId uint) serializer.Response

type UserLoginService

type UserLoginService struct {
	UserService
	CaptchaCode string `form:"captcha_code" json:"captcha_code" binding:"required,len=4"`
}

func (*UserLoginService) Login

func (service *UserLoginService) Login(ctx *gin.Context) *serializer.Response

type UserRegisterService

type UserRegisterService struct {
	UserService
	NickName    string `form:"nick_name" json:"nick_name" binding:"required,min=5,max=8"`
	RePassword  string `form:"re_password" json:"re_password" binding:"required,eqfield=Password"`
	CaptchaCode string `form:"captcha_code" json:"captcha_code" binding:"required,len=4"`
}

func (*UserRegisterService) Register

func (service *UserRegisterService) Register(ctx *gin.Context) *serializer.Response

type UserService

type UserService struct {
	UserName string `form:"user_name" json:"user_name" binding:"required,min=5,max=12"`
	Password string `form:"password" json:"password" binding:"required,min=5,max=12"`
	Key      string `form:"key" json:"key" binding:"required,len=16"` // 密码加密存储秘钥(必须)
}

func (*UserService) Post

func (service *UserService) Post(ctx context.Context, uId uint, file multipart.File, fileSize int64) serializer.Response

type UserUpdateService

type UserUpdateService struct {
	UserService
	NickName    string `form:"nick_name" json:"nick_name" binding:"required,min=5,max=8"`
	CaptchaCode string `form:"captcha_code" json:"captcha_code" binding:"required,len=4"`
}

func (*UserUpdateService) Update

func (service *UserUpdateService) Update(ctx context.Context, uId uint) serializer.Response

Jump to

Keyboard shortcuts

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