Documentation
¶
Index ¶
- Variables
- func ConvertToAssignmentCreateResponse(domainAssignments []*domain.Assignment) *business.AssignmentCreateResponse
- func ConvertToBusinessFormAssignment(domainAssignments []*domain.Assignment) *business.FormAssignment
- func ConvertToBusinessGroupAssignment(domainAssignments []*domain.Assignment) *business.GroupAssignment
- func ConvertToDomainAssignments(assignment *business.FormAssignment) []*domain.Assignment
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAssignmentCreateDeadlineExceeded = errors.New("assignment create deadline exceeded") ErrDuplicateAssignmentsFound = errors.New("found duplicate assignments") )
View Source
var (
ErrAssignmentFindByFormIDDeadlineExceeded = errors.New("assignment find by form id deadline exceeded")
)
View Source
var (
ErrAssignmentFindByGroupIDDeadlineExceeded = errors.New("assignment find by group id deadline exceeded")
)
Functions ¶
func ConvertToAssignmentCreateResponse ¶
func ConvertToAssignmentCreateResponse(domainAssignments []*domain.Assignment) *business.AssignmentCreateResponse
func ConvertToBusinessFormAssignment ¶
func ConvertToBusinessFormAssignment(domainAssignments []*domain.Assignment) *business.FormAssignment
func ConvertToBusinessGroupAssignment ¶
func ConvertToBusinessGroupAssignment(domainAssignments []*domain.Assignment) *business.GroupAssignment
func ConvertToDomainAssignments ¶
func ConvertToDomainAssignments(assignment *business.FormAssignment) []*domain.Assignment
Types ¶
type Service ¶
type Service interface {
Create(ctx context.Context, assignment *business.FormAssignment) (*business.AssignmentCreateResponse, error)
FindByFormID(ctx context.Context, formID uuid.UUID) (*business.FormAssignment, error)
FindByGroupID(ctx context.Context, groupID uuid.UUID) (*business.GroupAssignment, error)
}
Click to show internal directories.
Click to hide internal directories.