Versions in this module Expand all Collapse all v1 v1.0.0 Nov 30, 2024 Changes in this version + var ErrAssignmentCreateDeadlineExceeded = errors.New("assignment create deadline exceeded") + var ErrAssignmentFindByFormIDDeadlineExceeded = errors.New("assignment find by form id deadline exceeded") + var ErrAssignmentFindByGroupIDDeadlineExceeded = errors.New("assignment find by group id deadline exceeded") + var ErrDuplicateAssignmentsFound = errors.New("found duplicate assignments") + 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 interface + Create func(ctx context.Context, assignment *business.FormAssignment) (*business.AssignmentCreateResponse, error) + FindByFormID func(ctx context.Context, formID uuid.UUID) (*business.FormAssignment, error) + FindByGroupID func(ctx context.Context, groupID uuid.UUID) (*business.GroupAssignment, error) + func New(cfg *config.Config, log *slog.Logger, repository repository) Service