✏️ 迁移到 utils/sql

This commit is contained in:
fumiama 2021-12-08 17:30:16 +08:00
parent 1c0d2b2f95
commit c824b2e0b4

View File

@ -7,7 +7,7 @@ type book struct {
// 暂时随机选择一个书评
func getBookReviewByKeyword(keyword string) (b book) {
db.Find("bookreview", &b, "where book_review LIKE %"+keyword+"%")
db.Find("bookreview", &b, "where bookreview LIKE %"+keyword+"%")
return
}