Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct {
AccessToken string `json:"access_token"`
}
type CustomClaims ¶
type Permission ¶
type Service ¶
type Service struct { Model Name string `gorm:"unique"` Code uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();unique"` Accounts []Account `gorm:"many2many:service_accounts;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"` Permissions []Permission `gorm:"constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"` }
type User ¶
type User struct { Model Code uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();unique"` Name string `gorm:"size:32;unique" json:"name"` Password []byte `gorm:"size:60" json:"password"` TGName string `gorm:"size:128" json:"tg_name"` TGID uint64 `gorm:"unique" json:"tg_id"` TGUserName string `gorm:"size:32;unique" json:"tg_user_name"` //Access access.Access `json:"access"` ParentID uint32 `gorm:"default:null"` Parent *User AccountID uint32 Account Account Blocked bool Permissions []Permission `gorm:"many2many:user_permissions;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"` }
Click to show internal directories.
Click to hide internal directories.