document

package
v1.15.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package document implements the document subdomain of the support module. Only the module facade (internal/module/support) may reach it.

Index

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 (s *Service) BatchDelete(ctx context.Context, req *dto.BatchDeleteDocumentRequest) error

func (*Service) Create

func (s *Service) Create(ctx context.Context, req *dto.CreateDocumentRequest) error

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, req *dto.DeleteDocumentRequest) error

func (*Service) GetDetail

func (s *Service) GetDetail(ctx context.Context, req *dto.GetDocumentDetailRequest) (*dto.Document, error)

func (*Service) List

func (*Service) QueryDetail

func (s *Service) QueryDetail(ctx context.Context, req *dto.QueryDocumentDetailRequest) (*dto.Document, error)

func (*Service) QueryList

func (s *Service) QueryList(ctx context.Context) (*dto.QueryDocumentListResponse, error)

func (*Service) Update

func (s *Service) Update(ctx context.Context, req *dto.UpdateDocumentRequest) error

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL