code

package
v0.0.0-...-6e4d488 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(req *Request) (uint, error)

func Party

func Party() module.WebModule

Party 用户

func SendCode

func SendCode(ctx iris.Context)

发送手机验证码

Types

type OaPhoneCode

type OaPhoneCode struct {
	gorm.Model
	Mobile string `gorm:"type:varchar(20)" json:"mobile" validate:"required"`
	Code   string `gorm:"type:varchar(8)" json:"code"`
}

func Find

func Find(db *gorm.DB, mobile string, t ...int64) (OaPhoneCode, error)

查找验证码

func (*OaPhoneCode) Add

func (item *OaPhoneCode) Add(db *gorm.DB) (uint, error)

Add 添加

func (*OaPhoneCode) TableName

func (m *OaPhoneCode) TableName() string

表GORM模型的名称

type Request

type Request struct {
	Mobile string `json:"mobile"`
	Code   string `json:"code"`
}

func (*Request) Request

func (req *Request) Request(ctx iris.Context) error

Jump to

Keyboard shortcuts

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