dto

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonQuery

type CommonQuery struct {
	PageQueryParams
	SortBy *string `form:"sortby"`
	Filter *string `form:"filter"`
}

type CreateDataModelDraftRequest

type CreateDataModelDraftRequest struct {
	Identifier string `json:"identifier" binding:"required"`
	Name       string `json:"name" binding:"required"`
	TenantID   string `json:"tenantId" binding:"required"`
}

type CreateTenantRequest added in v1.2.0

type CreateTenantRequest struct {
	Name string `json:"name" binding:"required"`
}

type ErrorResponse

type ErrorResponse struct {
	Message string
	Code    string
	Details interface{}
}

func ErrInvalidBody added in v1.3.0

func ErrInvalidBody(details interface{}) ErrorResponse

func ErrInvalidQuery added in v1.3.0

func ErrInvalidQuery(details interface{}) ErrorResponse

func ErrUnauthorized added in v1.3.0

func ErrUnauthorized(details interface{}) ErrorResponse

func NewErrorResponse

func NewErrorResponse(message, code string, details interface{}) ErrorResponse

type PageQueryParams

type PageQueryParams struct {
	Skip  int `form:"skip"`
	Limit int `form:"limit"`
}

type PaginationMetadata

type PaginationMetadata struct {
	Total   int  `json:"total"`
	Skip    int  `json:"skip"`
	Limit   int  `json:"limit"`
	HasNext bool `json:"hasNext"`
}

type PaginationResult

type PaginationResult struct {
	Results  interface{}        `json:"results"`
	Metadata PaginationMetadata `json:"metadata"`
}

Jump to

Keyboard shortcuts

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