Documentation ¶
Index ¶
- type APIError
- type AuthDataDTO
- type AuthRequestDTO
- type AuthResponseDTO
- type BaseSearchRequestDto
- type CreatePermissionDTO
- type CreateResourceDTO
- type CreateRoleDTO
- type CreateUserDTO
- type OTPRequestDTO
- type PaginationInfo
- type PermissionDTO
- type PermissionsDTO
- type RefreshRequestDTO
- type RefreshResponseDTO
- type ResourceDTO
- type ResourceGroupDTO
- type ResourcesDTO
- type RoleDTO
- type RolesDTO
- type SearchPermissionDTO
- type SearchResourceDTO
- type SearchRoleDTO
- type SearchUserDTO
- type UpdatePermissionDTO
- type UpdateResourceDTO
- type UpdateRoleDTO
- type UpdateUserDTO
- type UserDTO
- type UsersDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthDataDTO ¶
type AuthRequestDTO ¶
type AuthResponseDTO ¶
type BaseSearchRequestDto ¶
type CreatePermissionDTO ¶
type CreateResourceDTO ¶
type CreateRoleDTO ¶
type CreateUserDTO ¶
type CreateUserDTO struct { Email string `json:"email"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Phone string `json:"phone,omitempty"` IsActive bool `json:"is_active"` Is2fa bool `json:"is_2fa"` RoleID uint64 `json:"role_id"` Password string `json:"password"` Token2fa string }
type OTPRequestDTO ¶
type PaginationInfo ¶
type PermissionDTO ¶
type PermissionsDTO ¶
type PermissionsDTO struct { Pagination string `json:"-"` Items []PermissionDTO }
type RefreshRequestDTO ¶
type RefreshRequestDTO struct {
RefreshToken string `json:"refresh_token"`
}
type RefreshResponseDTO ¶
type RefreshResponseDTO struct {
AccessToken string `json:"access_token"`
}
type ResourceDTO ¶
type ResourceGroupDTO ¶
type ResourceGroupDTO struct { Name string `json:"name"` Resources []ResourceDTO `json:"resources"` }
type ResourcesDTO ¶
type ResourcesDTO struct {
Items []ResourceGroupDTO
}
type SearchPermissionDTO ¶
type SearchPermissionDTO struct { BaseSearchRequestDto RoleID uint64 ResourceID *uint64 `form:"resource_id"` }
type SearchResourceDTO ¶
type SearchResourceDTO struct { BaseSearchRequestDto ID *uint64 `form:"id"` Name *string `form:"name"` UriMask *string `form:"uri_mask"` IsActive *bool `form:"is_active"` }
type SearchRoleDTO ¶
type SearchRoleDTO struct { BaseSearchRequestDto ID *uint64 `form:"id"` Name *string `form:"name"` Slug *string `form:"slug"` IsPermitted *bool `form:"is_permitted"` }
type SearchUserDTO ¶
type UpdatePermissionDTO ¶
type UpdateResourceDTO ¶
type UpdateRoleDTO ¶
type UpdateUserDTO ¶
type UpdateUserDTO struct { ID uint64 Email *string `json:"email,omitempty"` FirstName *string `json:"first_name,omitempty"` LastName *string `json:"last_name,omitempty"` Phone *string `json:"phone,omitempty"` IsActive *bool `json:"is_active,omitempty"` Is2fa *bool `json:"is_2fa,omitempty"` RoleID *uint64 `json:"role_id,omitempty"` LastLoginAt *time.Time Password *string }
type UserDTO ¶
type UserDTO struct { ID uint64 `json:"id"` CreatedAt string `json:"created_at"` Email string `json:"email"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Phone string `json:"phone"` IsActive bool `json:"is_active"` Is2fa bool `json:"is_2fa"` RoleID uint64 `json:"role_id"` }
Click to show internal directories.
Click to hide internal directories.