2023-03-12 19:38:48 +00:00
|
|
|
package db
|
|
|
|
|
|
|
|
const (
|
2023-04-09 08:48:31 +00:00
|
|
|
UserStateNone = UserState("")
|
|
|
|
UserStateGo = UserState("Go")
|
|
|
|
UserStateEat = UserState("Eat")
|
|
|
|
UserStatePause = UserState("Pause")
|
|
|
|
UserStateWeight = UserState("Weight")
|
2023-03-12 19:38:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type UserState string
|
|
|
|
|
|
|
|
type Chat struct {
|
|
|
|
ChatID int64 `bson:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChatInfo struct {
|
2023-04-09 07:47:38 +00:00
|
|
|
ChatID int64 `bson:"chat_id"`
|
|
|
|
Status string `bson:"status"`
|
|
|
|
Username string `bson:"username"`
|
2023-03-12 19:38:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *ChatInfo) GetStatus() UserState {
|
|
|
|
return UserState(c.Status)
|
|
|
|
}
|