feat 测试

This commit is contained in:
timerzz 2024-09-06 10:53:53 +08:00
parent c617344e33
commit 15e36c1180

View File

@ -53,7 +53,7 @@ func (a *articleApi) Update(article v2.Article, selects ...string) error {
if len(selects) > 0 { if len(selects) > 0 {
selects = []string{"Remark", "Exclude"} selects = []string{"Remark", "Exclude"}
} }
return a.db.Model(&article).Select(selects).Omit(clause.Associations).Updates(article).Error return a.db.Model(&article).Debug().Select(selects).Omit(clause.Associations).Updates(article).Error
} }
// ******************Find和List // ******************Find和List