adRepo

package
v0.0.0-...-09378e2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdRepo

type AdRepo struct {
}

func New

func New() *AdRepo

func (*AdRepo) Count

func (r *AdRepo) Count(ctx context.Context, qe repository.Querier) (int, error)

func (*AdRepo) Create

func (r *AdRepo) Create(ctx context.Context, qe repository.Querier, adv *entity.Adv) (*entity.AdvResp, error)

func (*AdRepo) Delete

func (r *AdRepo) Delete(ctx context.Context, qe repository.Querier, id int) error

func (*AdRepo) Get

func (*AdRepo) GetByID

func (r *AdRepo) GetByID(ctx context.Context, qe repository.Querier, id int) (*entity.AdvResp, error)

func (*AdRepo) GetWithFilter

func (r *AdRepo) GetWithFilter(ctx context.Context, qe repository.Querier, params repository.AdvFilterParams) ([]*entity.AdvResp, error)

func (*AdRepo) Update

func (r *AdRepo) Update(ctx context.Context, qe repository.Querier, id int, adv *entity.AdvUpdate) (*entity.AdvResp, error)

Jump to

Keyboard shortcuts

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