service

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 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 added in v0.0.99

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

type DataCryptor added in v1.0.15

type DataCryptor interface {
	Encrypt(data string, salt string) (string, error)
	Decrypt(data string, salt string) (string, error)
}

DataCryptor encrypts/decrypts data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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