mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
15 lines
246 B
Go
15 lines
246 B
Go
package omikuji
|
|
|
|
import "strconv"
|
|
|
|
type signature struct {
|
|
Id uint64 `db:"id"`
|
|
Text string `db:"text"`
|
|
}
|
|
|
|
// 返回一个解签
|
|
func getSignatureById(id int) (s signature) {
|
|
db.Find("signature", &s, "where id = "+strconv.Itoa(id))
|
|
return
|
|
}
|