fix
This commit is contained in:
26
model/gmodel/fs_feishu_webhook_log_gen.go
Normal file
26
model/gmodel/fs_feishu_webhook_log_gen.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
// fs_feishu_webhook_log 飞书webhook记录表
|
||||
type FsFeishuWebhookLog struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||
AppId *string `gorm:"default:'';" json:"app_id"` // app_id
|
||||
EventId *string `gorm:"index;default:'';" json:"event_id"` // 事件唯一id
|
||||
EventType *string `gorm:"default:'';" json:"event_type"` // 事件名
|
||||
HttpHeader *string `gorm:"default:'';" json:"http_header"` // http响应头信息
|
||||
HttpBody *string `gorm:"default:'';" json:"http_body"` // http body信息
|
||||
MsgCtime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"msg_ctime"` //
|
||||
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
||||
}
|
||||
type FsFeishuWebhookLogModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewFsFeishuWebhookLogModel(db *gorm.DB) *FsFeishuWebhookLogModel {
|
||||
return &FsFeishuWebhookLogModel{db: db, name: "fs_feishu_webhook_log"}
|
||||
}
|
||||
7
model/gmodel/fs_feishu_webhook_log_logic.go
Normal file
7
model/gmodel/fs_feishu_webhook_log_logic.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package gmodel
|
||||
|
||||
// TODO: 使用model的属性做你想做的
|
||||
|
||||
func (w *FsFeishuWebhookLogModel) Create(data *FsFeishuWebhookLog) error {
|
||||
return w.db.Model(&FsFeishuWebhookLog{}).Create(&data).Error
|
||||
}
|
||||
@@ -50,6 +50,7 @@ type AllModelsGen struct {
|
||||
FsFactoryShipTmp *FsFactoryShipTmpModel // fs_factory_ship_tmp
|
||||
FsFaq *FsFaqModel // fs_faq 常见问题
|
||||
FsFeishuConfig *FsFeishuConfigModel // fs_feishu_config 飞书app配置表
|
||||
FsFeishuWebhookLog *FsFeishuWebhookLogModel // fs_feishu_webhook_log 飞书webhook记录表
|
||||
FsFont *FsFontModel // fs_font 字体配置
|
||||
FsGerent *FsGerentModel // fs_gerent 管理员表
|
||||
FsGuest *FsGuestModel // fs_guest 游客表
|
||||
@@ -169,6 +170,7 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
||||
FsFactoryShipTmp: NewFsFactoryShipTmpModel(gdb),
|
||||
FsFaq: NewFsFaqModel(gdb),
|
||||
FsFeishuConfig: NewFsFeishuConfigModel(gdb),
|
||||
FsFeishuWebhookLog: NewFsFeishuWebhookLogModel(gdb),
|
||||
FsFont: NewFsFontModel(gdb),
|
||||
FsGerent: NewFsGerentModel(gdb),
|
||||
FsGuest: NewFsGuestModel(gdb),
|
||||
|
||||
Reference in New Issue
Block a user