|
@@ -11,7 +11,7 @@ type ForumChartEdbMapping struct {
|
|
|
ID int `gorm:"column:id;primaryKey" description:"主键"`
|
|
|
ChartInfoId int
|
|
|
EdbInfoIds string
|
|
|
- CreatedTime time.Time
|
|
|
+ CreateTime time.Time
|
|
|
ModifyTime time.Time
|
|
|
}
|
|
|
|
|
@@ -26,7 +26,7 @@ func GetForumEdbInfoIdsByChartInfoId(chartInfoId int) (edbInfoIds string, err er
|
|
|
// 新增
|
|
|
func AddForumChartEdbMapping(chartInfoId int, edbInfoIds string) (err error) {
|
|
|
o := global.DbMap[utils.DbNameIndex]
|
|
|
- sql := `INSERT INTO forum_chart_edb_mapping (chart_info_id, edb_info_ids, created_time, modify_time) VALUES (?, ?, ?, ?)`
|
|
|
+ sql := `INSERT INTO forum_chart_edb_mapping (chart_info_id, edb_info_ids, create_time, modify_time) VALUES (?, ?, ?, ?)`
|
|
|
err = o.Exec(sql, chartInfoId, edbInfoIds, time.Now(), time.Now()).Error
|
|
|
return
|
|
|
}
|