Documentation ¶
Index ¶
- func MakePermissionFindByGroupEndpoint(s service.Service) endpoint.Endpoint
- func MakePermissionFindByUserEndpoint(s service.Service) endpoint.Endpoint
- func MakeUpdatePermissionEndpoint(s service.Service) endpoint.Endpoint
- type FindByGroupRequest
- type FindByGroupResponse
- type FindByUserRequest
- type FindByUserResponse
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakePermissionFindByGroupEndpoint ¶
MakePermissionFindByGroupEndpoint .
func MakePermissionFindByUserEndpoint ¶
MakeUserPermissionFindEndpoint .
Types ¶
type FindByGroupRequest ¶
type FindByGroupRequest struct { GroupID domain.UUID `json:"-"` TableName string `json:"table_name"` DatabaseName string `json:"database_name"` }
FindByGroupRequest request for add view
type FindByGroupResponse ¶
type FindByGroupResponse struct { Status string `json:"status"` Permissions []domain.Permission `json:"permissions"` }
FindByGroupResponse response for list view
type FindByUserRequest ¶
type FindByUserRequest struct { UserID domain.UUID `json:"-"` TableName string `json:"table_name"` DatabaseName string `json:"database_name"` }
FindByUserRequest request for add view
type FindByUserResponse ¶
type FindByUserResponse struct { Status string `json:"status"` Permissions []domain.Permission `json:"permissions"` }
FindByUserResponse response for list view
type UpdateRequest ¶
type UpdateRequest struct {
Permission *domain.Permission `json:"permission"`
}
UpdateRequest request for add view
type UpdateResponse ¶
type UpdateResponse struct { Status string `json:"status"` Permission *domain.Permission `json:"permission"` }
UpdateResponse response for list view
Click to show internal directories.
Click to hide internal directories.