2023-06-19 01:53:35 +00:00
|
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"gorm.io/gorm"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// fs_email_template 邮件模板表(暂未使用)
|
|
|
|
|
type FsEmailTemplate struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
|
|
|
|
Type *int64 `gorm:"default:0;" json:"type"` // 模板类型
|
|
|
|
|
Name *string `gorm:"default:'';" json:"name"` // 模板名称
|
|
|
|
|
Title *string `gorm:"default:'';" json:"title"` // 模板标题
|
|
|
|
|
ReplaceFields *string `gorm:"default:'';" json:"replace_fields"` //
|
|
|
|
|
Content *string `gorm:"default:'';" json:"content"` // 模板内容
|
|
|
|
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态值(0:禁用,1:启用)
|
|
|
|
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
2023-06-16 11:04:13 +00:00
|
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
|
type FsEmailTemplateModel struct {
|
|
|
|
|
db *gorm.DB
|
|
|
|
|
name string
|
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
2023-07-20 02:13:18 +00:00
|
|
|
|
func NewFsEmailTemplateModel(db *gorm.DB) *FsEmailTemplateModel {
|
|
|
|
|
return &FsEmailTemplateModel{db: db, name: "fs_email_template"}
|
|
|
|
|
}
|