Files
valera/internal/db/chat.go
T
VLADIMIR a35a5c8efc
continuous-integration/drone/push Build is passing
add weight
2023-04-09 15:48:31 +07:00

26 lines
481 B
Go

package db
const (
UserStateNone = UserState("")
UserStateGo = UserState("Go")
UserStateEat = UserState("Eat")
UserStatePause = UserState("Pause")
UserStateWeight = UserState("Weight")
)
type UserState string
type Chat struct {
ChatID int64 `bson:"chat_id"`
}
type ChatInfo struct {
ChatID int64 `bson:"chat_id"`
Status string `bson:"status"`
Username string `bson:"username"`
}
func (c *ChatInfo) GetStatus() UserState {
return UserState(c.Status)
}