service

package
v0.0.0-...-6149473 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserLoginService

type UserLoginService struct {
	Email      string `json:"email" binding:"required,email"`
	PassWord   string `json:"password" binding:"required,len=8"  gorm:"column:password"`
	RePassWord string `json:"repassword" binding:"required,len=8"  gorm:"column:password"`
}

func (*UserLoginService) Login

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

type UserRegisterService

type UserRegisterService struct {
	NickName string `json:"nickname" binding:"required"  gorm:"column:nickname"`
	PassWord string `json:"password" binding:"required,len=8"  gorm:"column:password"`
	Age      uint32 `json:"age" binding:"required,gte=1,lte=120"`
	Sex      uint8  `json:"sex"`
	Email    string `json:"email" binding:"required,email"`
}

func (*UserRegisterService) Register

func (service *UserRegisterService) Register() serializer.Response

func (UserRegisterService) TableName

func (UserRegisterService) TableName() string

Jump to

Keyboard shortcuts

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