feat: 添加手动设置短信验证码功能及相关前端支持
Some checks failed
build quyun / Build (push) Failing after 1m26s

This commit is contained in:
2025-12-23 23:59:01 +08:00
parent d9737d4ee3
commit 6c9063a2c3
6 changed files with 154 additions and 18 deletions

View File

@@ -1,16 +0,0 @@
package models
import "time"
const TableNameSmsCodeSend = "sms_code_sends"
// SmsCodeSend mapped from table <sms_code_sends>
type SmsCodeSend struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" json:"id"`
Phone string `gorm:"column:phone;type:character varying(20);not null" json:"phone"`
Code string `gorm:"column:code;type:character varying(20);not null" json:"code"`
SentAt time.Time `gorm:"column:sent_at;type:timestamp without time zone;not null;default:now()" json:"sent_at"`
ExpiresAt time.Time `gorm:"column:expires_at;type:timestamp without time zone;not null" json:"expires_at"`
}
func (*SmsCodeSend) TableName() string { return TableNameSmsCodeSend }