Documentation
¶
Index ¶
- type ContentRepo
- type IndexRepo
- func (ir *IndexRepo) CreateIndex(ctx context.Context, index *domain.Index) error
- func (ir *IndexRepo) DeleteIndex(ctx context.Context, id int32) error
- func (ir *IndexRepo) ListIndex(ctx context.Context, page, pageSize int) ([]*domain.Index, error)
- func (ir *IndexRepo) UpdateIndex(ctx context.Context, id int32, index *domain.Index) (int32, error)
- type Repo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentRepo ¶
type ContentRepo struct {
// contains filtered or unexported fields
}
func NewContentRepo ¶
func NewContentRepo(repo *Repo, logger log.Logger) *ContentRepo
func (*ContentRepo) CreateContent ¶
func (*ContentRepo) GetContent ¶
func (*ContentRepo) UpdateContent ¶
type IndexRepo ¶
type IndexRepo struct {
// contains filtered or unexported fields
}
func (*IndexRepo) CreateIndex ¶
TODO: 事务
func (*IndexRepo) DeleteIndex ¶
Click to show internal directories.
Click to hide internal directories.