common/model/tg.go

29 lines
462 B
Go
Raw Permalink Normal View History

2024-06-27 19:30:57 +00:00
package model
import "time"
type TgAccount struct {
ID int64
ApiID int32
ApiHash string
PhoneNumber string
2024-06-27 19:40:42 +00:00
Password string
2024-06-27 19:30:57 +00:00
Status TgAccountStatus
Deleted bool
CreatedAt time.Time
}
type TgAccountStatus string
const (
ActiveTg TgAccountStatus = "active"
InactiveTg TgAccountStatus = "inactive"
BanTg TgAccountStatus = "ban"
)
type TgRedisTask struct {
Name string
QuizID int32
AccountID string
}