feat: add custom webhook message

This commit is contained in:
engigu
2024-01-07 00:25:35 +08:00
parent e4a1b16e78
commit cf77fac836
18 changed files with 180 additions and 22 deletions
+3 -1
View File
@@ -49,7 +49,9 @@ func Setup() {
return setting.DatabaseSetting.TablePrefix + defaultTableName
}
//db.LogMode(true)
if setting.DatabaseSetting.SqlDebug == "enable" {
db.LogMode(true)
}
db.SingularTable(true)
db.Callback().Create().Replace("gorm:update_time_stamp", updateTimeStampForCreateCallback)
db.Callback().Update().Replace("gorm:update_time_stamp", updateTimeStampForUpdateCallback)
+4
View File
@@ -21,6 +21,10 @@ type InsEmailConfig struct {
type InsDtalkConfig struct {
}
// InsCustomConfig 实例里面的自定义config
type InsCustomConfig struct {
}
// ManyAddTaskIns 批量添加实例
func ManyAddTaskIns(taskIns []SendTasksIns) error {
tx := db.Begin()