Documentation
¶
Overview ¶
Package document implements the document subdomain of the support module. Only the module facade (internal/module/support) may reach it.
Index ¶
- type Service
- func (s *Service) BatchDelete(ctx context.Context, req *dto.BatchDeleteDocumentRequest) error
- func (s *Service) Create(ctx context.Context, req *dto.CreateDocumentRequest) error
- func (s *Service) Delete(ctx context.Context, req *dto.DeleteDocumentRequest) error
- func (s *Service) GetDetail(ctx context.Context, req *dto.GetDocumentDetailRequest) (*dto.Document, error)
- func (s *Service) List(ctx context.Context, req *dto.GetDocumentListRequest) (*dto.GetDocumentListResponse, error)
- func (s *Service) QueryDetail(ctx context.Context, req *dto.QueryDocumentDetailRequest) (*dto.Document, error)
- func (s *Service) QueryList(ctx context.Context) (*dto.QueryDocumentListResponse, error)
- func (s *Service) Update(ctx context.Context, req *dto.UpdateDocumentRequest) error
- type SubscriptionReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo repository.DocumentRepo, subs SubscriptionReader) *Service
func (*Service) BatchDelete ¶
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *dto.GetDocumentListRequest) (*dto.GetDocumentListResponse, error)
func (*Service) QueryDetail ¶
type SubscriptionReader ¶
type SubscriptionReader interface {
HasActiveSubscription(ctx context.Context, userID int64) (bool, error)
}
SubscriptionReader is the support module's port onto the subscription domain. The composition root satisfies it today by wrapping the legacy repository; the subscription module facade will implement it once that module exists (ADR-001).
Click to show internal directories.
Click to hide internal directories.