sms

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB() error

func SendVerifyCode

func SendVerifyCode(group, key, phone, code, outid string) error

SendVerifyCode 发送验证码

Types

type SmsSend

type SmsSend struct {
	gorm.Model

	Phone      string `gorm:"type:varchar(20);not null;comment:手机号"`
	VerifyCode string `gorm:"type:varchar(10);not null;comment:验证码"`

	ErrMsg string `gorm:"type:varchar(100);comment:错误信息"`

	OutId string `gorm:"type:varchar(100);comment:外部流水扩展字段"`
}

func (SmsSend) TableName

func (SmsSend) TableName() string

Jump to

Keyboard shortcuts

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