feat: add custom webhook message
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
@@ -21,6 +21,10 @@ type InsEmailConfig struct {
|
||||
type InsDtalkConfig struct {
|
||||
}
|
||||
|
||||
// InsCustomConfig 实例里面的自定义config
|
||||
type InsCustomConfig struct {
|
||||
}
|
||||
|
||||
// ManyAddTaskIns 批量添加实例
|
||||
func ManyAddTaskIns(taskIns []SendTasksIns) error {
|
||||
tx := db.Begin()
|
||||
|
||||
Reference in New Issue
Block a user