2023-12-03 03:47:23 +08:00
|
|
|
package schemas
|
|
|
|
|
|
|
|
type TgSession struct {
|
|
|
|
Sesssion string `json:"session"`
|
|
|
|
UserID int64 `json:"userId"`
|
|
|
|
Bot bool `json:"bot"`
|
|
|
|
UserName string `json:"userName"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
IsPremium bool `json:"isPremium"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Session struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
UserName string `json:"userName"`
|
2024-06-15 02:00:14 +08:00
|
|
|
UserId int64 `json:"userId"`
|
2023-12-03 03:47:23 +08:00
|
|
|
IsPremium bool `json:"isPremium"`
|
|
|
|
Hash string `json:"hash"`
|
|
|
|
Expires string `json:"expires"`
|
|
|
|
}
|
2024-06-11 00:16:41 +08:00
|
|
|
type SessionOut struct {
|
|
|
|
Hash string `json:"hash"`
|
|
|
|
CreatedAt string `json:"createdAt"`
|
|
|
|
Location string `json:"location,omitempty"`
|
|
|
|
OfficialApp bool `json:"officialApp,omitempty"`
|
|
|
|
AppName string `json:"appName,omitempty"`
|
|
|
|
Valid bool `json:"valid"`
|
|
|
|
Current bool `json:"current"`
|
|
|
|
}
|