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
Click to show internal directories.
Click to hide internal directories.