Documentation
¶
Index ¶
- type AdRepo
- type AdUC
- func (uc *AdUC) Create(ctx context.Context, adv *entity.Adv) (*entity.AdvResp, error)
- func (uc *AdUC) Delete(ctx context.Context, id int) error
- func (uc *AdUC) Get(ctx context.Context, params usecase.PageParams) (*entity.AdsResp, error)
- func (uc *AdUC) GetWithFilter(ctx context.Context, params usecase.AdvFilterParams) ([]*entity.AdvResp, error)
- func (uc *AdUC) Update(ctx context.Context, id int, adv *entity.AdvUpdate) (*entity.AdvResp, error)
- type Cache
- type DBXT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdRepo ¶
type AdRepo interface { Get(ctx context.Context, qe repository.Querier, params repository.PaginationParams) ([]*entity.AdvResp, error) GetWithFilter(ctx context.Context, qe repository.Querier, params repository.AdvFilterParams) ([]*entity.AdvResp, error) Create(ctx context.Context, qe repository.Querier, adv *entity.Adv) (*entity.AdvResp, error) Update(ctx context.Context, qe repository.Querier, id int, adv *entity.AdvUpdate) (*entity.AdvResp, error) Delete(ctx context.Context, qe repository.Querier, id int) error Count(ctx context.Context, qe repository.Querier) (int, error) }
type AdUC ¶
type AdUC struct {
// contains filtered or unexported fields
}
func (*AdUC) GetWithFilter ¶
type DBXT ¶
type DBXT interface { DB() repository.Querier InTransaction(ctx context.Context, fn repository.TransactionFunc) error }
Click to show internal directories.
Click to hide internal directories.