repo

package
v0.0.0-...-4ad21cf Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareFilter

func PrepareFilter(filters []entity.Filter) squirrel.And

func PrepareGetListQuery

func PrepareGetListQuery(selectQuery squirrel.SelectBuilder, filterRequest entity.GetListFilter) (query squirrel.SelectBuilder, where squirrel.And)

Types

type BusinessAttachmentRepo

type BusinessAttachmentRepo struct {
	// contains filtered or unexported fields
}

func NewBusinessAttachmentRepo

func NewBusinessAttachmentRepo(pg *postgres.Postgres, config *config.Config, logger *logger.Logger) *BusinessAttachmentRepo

New -.

func (*BusinessAttachmentRepo) Create

func (*BusinessAttachmentRepo) Delete

func (r *BusinessAttachmentRepo) Delete(ctx context.Context, req entity.Id) error

func (*BusinessAttachmentRepo) GetList

func (*BusinessAttachmentRepo) GetSingle

type BusinessCategoryRepo

type BusinessCategoryRepo struct {
	// contains filtered or unexported fields
}

func NewBusinessCategoryRepo

func NewBusinessCategoryRepo(pg *postgres.Postgres, config *config.Config, logger *logger.Logger) *BusinessCategoryRepo

New -.

func (*BusinessCategoryRepo) Create

func (*BusinessCategoryRepo) Delete

func (r *BusinessCategoryRepo) Delete(ctx context.Context, req entity.Id) error

func (*BusinessCategoryRepo) GetList

func (*BusinessCategoryRepo) GetSingle

func (*BusinessCategoryRepo) Update

type BusinessRepo

type BusinessRepo struct {
	// contains filtered or unexported fields
}

func NewBusinessRepo

func NewBusinessRepo(pg *postgres.Postgres, config *config.Config, logger *logger.Logger) *BusinessRepo

New -.

func (*BusinessRepo) Create

func (*BusinessRepo) Delete

func (r *BusinessRepo) Delete(ctx context.Context, req entity.Id) error

func (*BusinessRepo) GetList

func (*BusinessRepo) GetSingle

func (*BusinessRepo) Update

func (*BusinessRepo) UpdateField

type ReviewAttachmentRepo

type ReviewAttachmentRepo struct {
	// contains filtered or unexported fields
}

func NewReviewAttachmentRepo

func NewReviewAttachmentRepo(pg *postgres.Postgres, config *config.Config, logger *logger.Logger) *ReviewAttachmentRepo

New -.

func (*ReviewAttachmentRepo) Create

func (*ReviewAttachmentRepo) Delete

func (r *ReviewAttachmentRepo) Delete(ctx context.Context, req entity.Id) error

func (*ReviewAttachmentRepo) GetList

func (*ReviewAttachmentRepo) GetSingle

func (*ReviewAttachmentRepo) MultipleUpsert

type ReviewRepo

type ReviewRepo struct {
	// contains filtered or unexported fields
}

func NewReviewRepo

func NewReviewRepo(pg *postgres.Postgres, config *config.Config, logger *logger.Logger) *ReviewRepo

New -.

func (*ReviewRepo) Create

func (r *ReviewRepo) Create(ctx context.Context, req entity.Review) (entity.Review, error)

func (*ReviewRepo) Delete

func (r *ReviewRepo) Delete(ctx context.Context, req entity.Id) error

func (*ReviewRepo) GetList

func (*ReviewRepo) GetSingle

func (r *ReviewRepo) GetSingle(ctx context.Context, req entity.Id) (entity.Review, error)

func (*ReviewRepo) Update

func (r *ReviewRepo) Update(ctx context.Context, req entity.Review) (entity.Review, error)

type SessionRepo

type SessionRepo struct {
	// contains filtered or unexported fields
}

func NewSessionRepo

func NewSessionRepo(pg *postgres.Postgres, config *config.Config, logger *logger.Logger) *SessionRepo

New -.

func (*SessionRepo) Create

func (r *SessionRepo) Create(ctx context.Context, req entity.Session) (entity.Session, error)

func (*SessionRepo) Delete

func (r *SessionRepo) Delete(ctx context.Context, req entity.Id) error

func (*SessionRepo) GetList

func (*SessionRepo) GetSingle

func (r *SessionRepo) GetSingle(ctx context.Context, req entity.Id) (entity.Session, error)

func (*SessionRepo) Update

func (r *SessionRepo) Update(ctx context.Context, req entity.Session) (entity.Session, error)

func (*SessionRepo) UpdateField

type UserRepo

type UserRepo struct {
	// contains filtered or unexported fields
}

func NewUserRepo

func NewUserRepo(pg *postgres.Postgres, config *config.Config, logger *logger.Logger) *UserRepo

New -.

func (*UserRepo) Create

func (r *UserRepo) Create(ctx context.Context, req entity.User) (entity.User, error)

func (*UserRepo) Delete

func (r *UserRepo) Delete(ctx context.Context, req entity.Id) error

func (*UserRepo) GetList

func (r *UserRepo) GetList(ctx context.Context, req entity.GetListFilter) (entity.UserList, error)

func (*UserRepo) GetSingle

func (r *UserRepo) GetSingle(ctx context.Context, req entity.UserSingleRequest) (entity.User, error)

func (*UserRepo) Update

func (r *UserRepo) Update(ctx context.Context, req entity.User) (entity.User, error)

func (*UserRepo) UpdateField

Jump to

Keyboard shortcuts

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