utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken added in v1.3.0

func GenerateToken(tenantId string) string

GenerateToken is only used for testing purpose!!

func GetTenantID added in v1.3.0

func GetTenantID(ss string) string

func ParsePaginationQuery

func ParsePaginationQuery(c *gin.Context) (dto.CommonQuery, error)

func ToPaginationResult added in v1.3.0

func ToPaginationResult(results interface{}, resultLength, cnt, skip, limit int) dto.PaginationResult

Types

type TokenClaims added in v1.3.0

type TokenClaims struct {
	jwt.StandardClaims
	TenantID string
}

Jump to

Keyboard shortcuts

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