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: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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