2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
2023-09-25 03:16:55 +00:00
|
|
|
"time"
|
2023-06-16 11:04:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// fs_change_code 忘记密码code表
|
|
|
|
type FsChangeCode struct {
|
2023-09-25 03:16:55 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
|
|
|
Email *string `gorm:"default:'';" json:"email"` //
|
|
|
|
Code *string `gorm:"default:'';" json:"code"` //
|
|
|
|
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
|
|
|
IsUse *int64 `gorm:"default:0;" json:"is_use"` // 是否使用 1已使用 0未使用
|
|
|
|
Metadata *[]byte `gorm:"default:'';" json:"metadata"` //
|
|
|
|
Module *string `gorm:"default:'logo';" json:"module"` //
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsChangeCodeModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
func NewFsChangeCodeModel(db *gorm.DB) *FsChangeCodeModel {
|
|
|
|
return &FsChangeCodeModel{db: db, name: "fs_change_code"}
|
|
|
|
}
|