valera/internal/db/chat.go

24 lines
399 B
Go
Raw Normal View History

2023-03-12 19:38:48 +00:00
package db
const (
2023-04-05 18:18:25 +00:00
UserStateNone = UserState("")
UserStateGo = UserState("Go")
UserStateEat = UserState("Eat")
UserStatePause = UserState("Pause")
2023-03-12 19:38:48 +00:00
)
type UserState string
type Chat struct {
ChatID int64 `bson:"chat_id"`
}
type ChatInfo struct {
ChatID int64 `bson:"chat_id"`
Status string `bson:"status"`
}
func (c *ChatInfo) GetStatus() UserState {
return UserState(c.Status)
}