调整
This commit is contained in:
parent
a405a89567
commit
9d2d569107
34
model/gmodel/fs_message_log_gen.go
Normal file
34
model/gmodel/fs_message_log_gen.go
Normal file
|
@ -0,0 +1,34 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_message_log 消息记录表
|
||||
type FsMessageLog struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||
Type *string `gorm:"default:'';" json:"type"` //
|
||||
Channel *string `gorm:"default:'';" json:"channel"` // 发送途径:sm=短信 email=邮件 feishu=飞书
|
||||
Module *string `gorm:"default:'';" json:"module"` //
|
||||
Source *string `gorm:"default:'';" json:"source"` //
|
||||
Sender *string `gorm:"default:'';" json:"sender"` //
|
||||
Receiver *string `gorm:"default:'';" json:"receiver"` //
|
||||
TemplateSn *string `gorm:"default:'';" json:"template_sn"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` //
|
||||
Content *[]byte `gorm:"default:'';" json:"content"` //
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态:0=未发送 1=已发送
|
||||
Metadata *[]byte `gorm:"default:'';" json:"metadata"` //
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除
|
||||
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
||||
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
||||
}
|
||||
type FsMessageLogModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewFsMessageLogModel(db *gorm.DB) *FsMessageLogModel {
|
||||
return &FsMessageLogModel{db: db, name: "fs_message_log"}
|
||||
}
|
2
model/gmodel/fs_message_log_logic.go
Normal file
2
model/gmodel/fs_message_log_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
|||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
|
@ -58,6 +58,7 @@ type AllModelsGen struct {
|
|||
FsMapLibrary *FsMapLibraryModel // fs_map_library 贴图库
|
||||
FsMenu *FsMenuModel // fs_menu 后台菜单
|
||||
FsMerchantCategory *FsMerchantCategoryModel // fs_merchant_category 商户类型表
|
||||
FsMessageLog *FsMessageLogModel // fs_message_log 消息记录表
|
||||
FsMigration *FsMigrationModel // fs_migration 版本库
|
||||
FsOrder *FsOrderModel // fs_order 订单表
|
||||
FsOrderAffiliateOld *FsOrderAffiliateOldModel // fs_order_affiliate_old 订单附属表-流程控制时间等
|
||||
|
@ -177,6 +178,7 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
|||
FsMapLibrary: NewFsMapLibraryModel(gdb),
|
||||
FsMenu: NewFsMenuModel(gdb),
|
||||
FsMerchantCategory: NewFsMerchantCategoryModel(gdb),
|
||||
FsMessageLog: NewFsMessageLogModel(gdb),
|
||||
FsMigration: NewFsMigrationModel(gdb),
|
||||
FsOrder: NewFsOrderModel(gdb),
|
||||
FsOrderAffiliateOld: NewFsOrderAffiliateOldModel(gdb),
|
||||
|
|
Loading…
Reference in New Issue
Block a user