package plugin_book_review type book struct { BookReview string `db:"book_review"` } // 暂时随机选择一个书评 func getBookReviewByKeyword(keyword string) (b book) { db.Find("book_review", &b, "where book_review LIKE %"+keyword+"%") return } func getRandomBookReview() (b book) { db.Pick("book_review", &b) return }