package
Version:
v3.0.27
Opens a new window with list of versions in this module.
Published: Jan 11, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Group struct {
ID string `json:"id"`
Name string `json:"name"`
Children []*Group `json:"children"`
}
type Permission struct {
ID int64 `json:"id"`
Name string `json:"name"`
GuardName string `json:"guardName"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Pivot *Pivot `json:"pivot"`
}
type Pivot struct {
ModelID int64 `json:"model_id,omitempty"`
RoleID int64 `json:"role_id,omitempty"`
ModelType string `json:"model_type,omitempty"`
PermissionID int64 `json:"permission_id,omitempty"`
}
type Response struct {
User *User `json:"user"`
}
type Role struct {
ID string `json:"id"`
Name string `json:"name"`
Children []*Role `json:"children"`
}
type User struct {
ID int64 `json:"id"`
Roles []*Role `json:"roles"`
Groups []*Group `json:"groups"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.