feat: 完善平台总后台模块
This commit is contained in:
14
backend/api/internal/models/ntf_template.go
Normal file
14
backend/api/internal/models/ntf_template.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package models
|
||||
|
||||
import "git.apinb.com/bsm-sdk/core/database"
|
||||
|
||||
// NtfTemplate 对应 ntf_template,保存通知模板。
|
||||
type NtfTemplate struct {
|
||||
Entity
|
||||
TemplateCode string `gorm:"column:template_code;type:varchar(64);not null;uniqueIndex" json:"template_code"`
|
||||
Channel string `gorm:"column:channel;type:varchar(32);not null" json:"channel"`
|
||||
Content string `gorm:"column:content;type:text;not null" json:"content"`
|
||||
}
|
||||
|
||||
func init() { database.AppendMigrate(&NtfTemplate{}) }
|
||||
func (table *NtfTemplate) TableName() string { return "ntf_template" }
|
||||
Reference in New Issue
Block a user