16 lines
573 B
Go
16 lines
573 B
Go
package handler
|
|
|
|
import (
|
|
"context"
|
|
"eslogad-be/internal/contract"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type RepositoryAttachmentService interface {
|
|
CreateAttachment(ctx context.Context, req *contract.CreateRepositoryAttachmentRequest) (*contract.RepositoryAttachmentsResponse, error)
|
|
DeleteAttachment(ctx context.Context, id uuid.UUID) error
|
|
GetById(ctx context.Context, id uuid.UUID) (*contract.RepositoryAttachmentsResponse, error)
|
|
ListAttachment(ctx context.Context, req *contract.ListRepositoryAttachmentsRequest) (*contract.ListRepositoryAttachmentsResponse, error)
|
|
}
|