service

package
v0.0.96 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 4 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) CreateOrderByString added in v0.0.92

func (service *BaseServiceImpl) CreateOrderByString(orderByAttrs []string, validOrderByAttrs []string, orderByAttrAndDBCloum map[string][]string) (string, error)

CreateOrderByString get order by string

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