Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRoleReq ¶
type AddRoleReq struct { Role InternalRole `json:"role"` PermissionIDs []InternalRolePermission `json:"permissions"` }
type AuthenticatorResponse ¶
type InternalRole ¶
type InternalRole struct { *Role Status constants.RoleStatus `json:"status" db:"status"` }
type InternalRolePermission ¶
type InternalRolePermission struct { RoleID int64 `json:"role_id" db:"role_id"` PermissionID int64 `json:"permission_id" db:"permission_id"` Status constants.RolePermissionStatus `json:"status" db:"status"` }
type Permission ¶
type RefreshToken ¶
type RegisterReq ¶
type RolePermission ¶
type RolePermission struct { *Role Permissions []*Permission }
type User ¶
type User struct { ID int64 `json:"id" db:"id"` AuthID string `json:"auth_id" db:"auth_id"` Password []byte `json:"-" db:"password"` Status constants.UserStatus `json:"status" db:"status"` }
type UserAccess ¶
type UserAccess struct { RoleID int64 `json:"role_id" db:"role_id"` UserID int64 `json:"user_id" db:"user_id"` Name string `json:"name" db:"name"` Status constants.UserAccessStatus `json:"status" db:"status"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.