Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Perm ¶
type Perm struct { Config `gorm:"-" json:"-"` PermId int64 `gorm:"column:perm_id;primaryKey" json:"perm_id,omitempty"` Name string `gorm:"column:name;default:''" json:"name,omitempty"` Path string `gorm:"column:path;default:''" json:"path,omitempty"` Level int32 `gorm:"column:level;default:0" json:"level,omitempty"` ParentId int64 `gorm:"column:parent_id;default:0" json:"parent_id,omitempty"` Status string `gorm:"column:status;default:'enable'" json:"status,omitempty"` }
type Query ¶
type Query struct { Config UserId int64 `json:"user_id,omitempty"` User User `json:"user,omitempty"` Roles []*Role `json:"roles,omitempty"` Perms []*Perm `json:"perms,omitempty"` }
func (*Query) GetAllByUser ¶
type Role ¶
type RolePerm ¶
type User ¶
type User struct { Config `gorm:"-" json:"-"` UserId int64 `gorm:"column:user_id;primaryKey" json:"user_id,omitempty"` Nick string `gorm:"column:nick;default:''" json:"nick,omitempty"` Phone string `gorm:"column:phone;default:''" json:"phone,omitempty"` Name string `gorm:"column:name;default:''" json:"name,omitempty"` Pass string `gorm:"column:pass;default:''" json:"pass,omitempty"` Status string `gorm:"column:status;default:'enable'" json:"status,omitempty"` }
Click to show internal directories.
Click to hide internal directories.