fusenapi/model/gmodel/fs_email_template_gen.go

26 lines
1.1 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package gmodel
import (
"gorm.io/gorm"
)
// fs_email_template 邮件模板表(暂未使用)
type FsEmailTemplate struct {
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"` //
}
type FsEmailTemplateModel struct {
db *gorm.DB
name string
}
func NewFsEmailTemplateModel(db *gorm.DB) *FsEmailTemplateModel {
return &FsEmailTemplateModel{db: db, name: "fs_email_template"}
}