service

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseService

type BaseService interface {
	GetPaginationParams(queryParams map[string][]string) (int, int)
	CreateOrderByString(orderBy []string, validOrderByAttrs []string, orderByAttrAndDBCloum map[string][]string) (string, error)
}

BaseService base service interface

type BaseServiceImpl

type BaseServiceImpl struct{}

BaseServiceImpl base service implementation

func (*BaseServiceImpl) GetByIDForTenant

func (service *BaseServiceImpl) GetByIDForTenant(uow *repository.UnitOfWork, out interface{}, ID string, tenantID uuid.UUID, preloads []string) error

GetByIDForTenant gets object by id and tenantid

func (*BaseServiceImpl) GetPaginationParams

func (service *BaseServiceImpl) GetPaginationParams(queryParams map[string][]string) (int, int)

GetPaginationParams gets limit and offset from the query params

Jump to

Keyboard shortcuts

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