Documentation
¶
Index ¶
- type ContentUsecase
- type IndexUsecase
- func (uc *IndexUsecase) Create(ctx context.Context, index *domain.Index) error
- func (uc *IndexUsecase) Delete(ctx context.Context, id int32) error
- func (uc *IndexUsecase) List(ctx context.Context, page, pageSize int) ([]*domain.Index, error)
- func (uc *IndexUsecase) Update(ctx context.Context, id int32, index *domain.Index) (int32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentUsecase ¶
type ContentUsecase struct {
// contains filtered or unexported fields
}
func NewContentUsecase ¶
func NewContentUsecase(repo domain.ContentRepo) *ContentUsecase
type IndexUsecase ¶
type IndexUsecase struct {
// contains filtered or unexported fields
}
func NewIndexUsecase ¶
func NewIndexUsecase(repo domain.IndexRepo) *IndexUsecase
Click to show internal directories.
Click to hide internal directories.