maps-service/pkg/service/submissions.go

57 lines
1.5 KiB
Go
Raw Normal View History

2024-11-26 23:30:58 +00:00
package service
2024-11-26 23:28:48 +00:00
import (
"context"
"git.itzana.me/strafesnet/maps-service/pkg/api"
)
// POST /submissions
2024-11-26 23:30:58 +00:00
func (svc *Service) CreateSubmission(ctx context.Context) (*api.Submission, error) {
2024-11-26 23:28:48 +00:00
return nil, nil
}
// GetSubmission implements getSubmission operation.
//
// Retrieve map with ID.
//
// GET /submissions/{SubmissionID}
2024-11-26 23:30:58 +00:00
func (svc *Service) GetSubmission(ctx context.Context, params api.GetSubmissionParams) (*api.Submission, error) {
2024-11-26 23:28:48 +00:00
return nil, nil
}
// ListSubmissions implements listSubmissions operation.
//
// Get list of submissions.
//
// GET /submissions
2024-11-26 23:30:58 +00:00
func (svc *Service) ListSubmissions(ctx context.Context, params api.ListSubmissionsParams) ([]api.Submission, error) {
2024-11-26 23:28:48 +00:00
return nil, nil
}
// PatchSubmissionCompleted implements patchSubmissionCompleted operation.
//
// Retrieve map with ID.
//
// PATCH /submissions/{SubmissionID}/completed
2024-11-26 23:30:58 +00:00
func (svc *Service) PatchSubmissionCompleted(ctx context.Context, params api.PatchSubmissionCompletedParams) error {
2024-11-26 23:28:48 +00:00
return nil
}
// PatchSubmissionModel implements patchSubmissionModel operation.
//
// Update model following role restrictions.
//
// PATCH /submissions/{SubmissionID}/model
2024-11-26 23:30:58 +00:00
func (svc *Service) PatchSubmissionModel(ctx context.Context, params api.PatchSubmissionModelParams) error {
2024-11-26 23:28:48 +00:00
return nil
}
// PatchSubmissionStatus implements patchSubmissionStatus operation.
//
// Update status following role restrictions.
//
// PATCH /submissions/{SubmissionID}/status
2024-11-26 23:30:58 +00:00
func (svc *Service) PatchSubmissionStatus(ctx context.Context, params api.PatchSubmissionStatusParams) error {
2024-11-26 23:28:48 +00:00
return nil
}