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