ZeroBot-Plugin/plugin/plugin_cpstory/model.go
2022-02-25 22:06:30 +08:00

18 lines
290 B
Go

package cpstory
import sql "github.com/FloatTech/sqlite"
type cpstory struct {
ID int64 `db:"id"`
Gong string `db:"gong"`
Shou string `db:"shou"`
Story string `db:"story"`
}
var db = &sql.Sqlite{}
func getRandomCpStory() (cs cpstory) {
_ = db.Pick("cp_story", &cs)
return
}