schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: GPL-3.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPError

type HTTPError struct {
	Error HTTPErrorItem `json:"error"` // Error item
}

HTTPError - HTTP response error

type HTTPErrorItem

type HTTPErrorItem struct {
	Code    int    `json:"code"`    // Error code
	Message string `json:"message"` // Error message
}

HTTPErrorItem HTTP response error item

type HTTPList

type HTTPList struct {
	List       interface{}     `json:"list"`
	Pagination *HTTPPagination `json:"pagination,omitempty"`
}

HTTPList - HTTP response list data

type HTTPPagination

type HTTPPagination struct {
	Total    int `json:"total"`
	Current  int `json:"current"`
	PageSize int `json:"pageSize"`
}

HTTPPagination - HTTP paging data

type HTTPStatus

type HTTPStatus struct {
	Status string `json:"status"` // status(OK)
}

HTTPStatus - HTTP response status

type HTTPStatusText

type HTTPStatusText string

HTTPStatusText - Define HTTP status text

const (
	OKStatusText HTTPStatusText = "OK"
)

Define HTTP status text constants

func (HTTPStatusText) String

func (t HTTPStatusText) String() string

type PaginationParam

type PaginationParam struct {
	PageIndex int // Page index
	PageSize  int // Page size
}

PaginationParam - Paging query condition

type PaginationResult

type PaginationResult struct {
	Total int // Total number of data
}

PaginationResult - Paging query results

Jump to

Keyboard shortcuts

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