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"
|
|
|
|
)
|
2024-07-11 08:37:39 +00:00
|
|
|
|
|
|
|
type TgRedisTask struct {
|
|
|
|
Name string
|
|
|
|
QuizID int32
|
|
|
|
AccountID string
|
|
|
|
}
|