service

package
v1.1.183 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 7 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

type ExtractTenantID added in v1.1.14

type ExtractTenantID interface {
	GetTenantIDAsUUID(params map[string]string, token *microappSecurity.JwtToken, tenantID string) (uuid.UUID, error)
	GetTenantIDAsString(params map[string]string, token *microappSecurity.JwtToken) (string, error)
}

ExtractTenantID service to get tenant ID from token/current

func GetTenantIDFromToken added in v1.1.14

func GetTenantIDFromToken() ExtractTenantID

GetTenantIDFromToken extracts tenantId from params and validates it with token

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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