Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserPermission ¶
Types ¶
type Permission ¶
type Permission struct { ID uint `json:"id" gorm:"PRIMARY_KEY;AUTO_INCREMENT"` Name string `json:"name" gorm:"Type:varchar(100);NOT NULL"` DisplayName string `json:"displayName"` Desc string `json:"desc"` Status string `json:"status"` }
func (Permission) TableName ¶
func (Permission) TableName() string
type Role ¶
type RolePermission ¶
type RolePermission struct { PermissionId uint `gorm:"primary_key"` RoleId uint `gorm:"primary_key"` }
func (RolePermission) TableName ¶
func (RolePermission) TableName() string
Click to show internal directories.
Click to hide internal directories.