Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Games = ttl.NewCache[string, *AnswerResq](time.Minute * 15)
Functions ¶
Types ¶
type AnswerResq ¶
type AnswerResq struct {
TopicResp //题目
Text string `json:"text"` //ans
//结合mod使用
// "update": "", // A: 没有更新
// "update": "1", // B: 表示接下来轮到的玩家需要飞的字
// "update": "4", // C: 用到的可消除字
// "update": "0,4", // D: 左边和右边用到的字
Update string `json:"update"`
HistorySet []string `json:"-"`
History []fhl.CorrectAnswer `json:"-"`
HistoryText []string `json:"history"`
NextOne fhl.Side `json:"user"` //下一个该谁回答,默认0开始,也可以根据history%2推算
Reason string `json:"reason"` //游戏消息
}
Click to show internal directories.
Click to hide internal directories.