Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Permission ¶
type Permission []models.Permission
Permission provides methods for you to manage array data more easily.
func (Permission) GuardNames ¶
func (u Permission) GuardNames() (guards []string)
GuardNames returns an array of the permission array's guard names. @return []string
func (Permission) IDs ¶
func (u Permission) IDs() (IDs []uint)
IDs returns an array of the permission array's ids. @return []uint
func (Permission) Len ¶
func (u Permission) Len() (length int64)
Len returns the number of elements of the array. @return int64
func (Permission) Names ¶
func (u Permission) Names() (names []string)
Names returns an array of the permission array's names. @return []string
func (Permission) Origin ¶
func (u Permission) Origin() []models.Permission
Origin convert the collection to permission array. @return []models.Permission
type Role ¶
Role provides methods for you to manage array data more easily.
func (Role) GuardNames ¶
GuardNames returns an array of the permission array's guard names. @return []string
func (Role) Permissions ¶
func (u Role) Permissions() (permissions Permission)
Permissions returns uniquely the permissions of the roles in the role collection. @return Permission