mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
✏️ 迁移到 utils/sql
This commit is contained in:
parent
1c0d2b2f95
commit
c824b2e0b4
@ -7,7 +7,7 @@ type book struct {
|
|||||||
|
|
||||||
// 暂时随机选择一个书评
|
// 暂时随机选择一个书评
|
||||||
func getBookReviewByKeyword(keyword string) (b book) {
|
func getBookReviewByKeyword(keyword string) (b book) {
|
||||||
db.Find("bookreview", &b, "where book_review LIKE %"+keyword+"%")
|
db.Find("bookreview", &b, "where bookreview LIKE %"+keyword+"%")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user