Documentation ¶
Index ¶
- type BaseResponse
- type CreateOrganizationRequest
- type DeleteOrganizationRequest
- type ErrorResponse
- type GetManyOrganizationRequest
- type GetOrganizationRequest
- type GetUserRequest
- type JwtClaims
- type JwtUser
- type OrganizationResponse
- type PageMeta
- type PageRequest
- type PageResponse
- type Response
- type RoleResponse
- type UpdateOrganizationRequest
- type UserResponse
- type ValidationErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type DeleteOrganizationRequest ¶
type DeleteOrganizationRequest struct {
ID uint `param:"id" validate:"required"`
}
type ErrorResponse ¶
type ErrorResponse struct { Error string `json:"error"` ValidationErrors []*ValidationErrorResponse `json:"validation_errors"` }
func NewErrorResponse ¶
func NewErrorResponse(err error, validationErrors []*ValidationErrorResponse) *ErrorResponse
type GetManyOrganizationRequest ¶
type GetManyOrganizationRequest struct {
PageRequest
}
type GetOrganizationRequest ¶
type GetOrganizationRequest struct {
ID uint `param:"id" validate:"required"`
}
type GetUserRequest ¶
type GetUserRequest struct { }
type JwtClaims ¶
type JwtClaims struct { jwt.StandardClaims User JwtUser `json:"user"` }
type OrganizationResponse ¶
type OrganizationResponse struct { BaseResponse Name string `json:"name,omitempty"` Description *string `json:"description"` }
type PageRequest ¶
type PageResponse ¶
type PageResponse struct { Data any `json:"data,omitempty"` PageMeta *PageMeta `json:"meta,omitempty"` }
func NewPageResponse ¶
func NewPageResponse(data any, metadata *PageMeta) *PageResponse
type RoleResponse ¶
type RoleResponse struct { BaseResponse Name string `json:"name"` }
type UserResponse ¶
type UserResponse struct { BaseResponse Name string `json:"name"` Email string `json:"email"` Role *RoleResponse `json:"role"` Organizations []*OrganizationResponse `json:"organizations"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.