27 lines
1.1 KiB
Go
27 lines
1.1 KiB
Go
package message
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/plugin/soft_delete"
|
|
)
|
|
|
|
var (
|
|
PlatFeige = "feige" // 飞鸽
|
|
PlatFeigeIntel = "feige-intel" // 飞鸽国际
|
|
)
|
|
|
|
// TemplateMessageEntity 模版实体列表
|
|
type TemplateMessageEntity struct {
|
|
ID uint32 `gorm:"primarykey"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at;type:int(11)" json:"deletedAt"`
|
|
Title string `gorm:"column:title;type:varchar(50) not null;default:'';comment:标题"`
|
|
TemplateId uint `gorm:"column:template_id;type:varchar(20) not null;default: ;comment:模版id,可以重复"`
|
|
HuYiTemplateId uint `gorm:"column:huyi_template_id;type:varchar(20) not null;default: ;comment:模版id,可以重复"`
|
|
Remark string `gorm:"column:remark;type:varchar(50) not null;default:'';comment:备注id"`
|
|
Status uint32 `gorm:"column:status;type:tinyint(2) not null;default:1;comment:状态"`
|
|
Plat string `gorm:"column:plat;type:varchar(20) not null; default:'';comment:平台"`
|
|
}
|