model

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 59

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	Code      int    `json:"code,omitempty"`
	Message   string `json:"message,omitempty"`
	RequestID string `json:"request_id,omitempty"`
}

func (BaseResponse) Error

func (r BaseResponse) Error() string

func (BaseResponse) IsError

func (r BaseResponse) IsError() bool

type FloatRange

type FloatRange struct {
	Min float64
	Max float64
}

type Geolocation

type Geolocation struct {
	Radius       int64   `json:"radius,omitempty"`        // 半径
	Name         string  `json:"name,omitempty"`          // 地点名称
	Long         float64 `json:"long,omitempty"`          // 经度
	Lat          float64 `json:"lat,omitempty"`           // 纬度
	City         string  `json:"city,omitempty"`          // 城市名
	StreetNumber string  `json:"street_number,omitempty"` // 街道号
	Street       string  `json:"street,omitempty"`        // 街道名
	District     string  `json:"district,omitempty"`      // 区域名
	Province     string  `json:"province,omitempty"`      // 省份名
}

type GetRequest

type GetRequest interface {
	Encode() string
}

type PageInfo

type PageInfo struct {
	Page        int   `json:"page,omitempty"`
	PageSize    int   `json:"page_size,omitempty"`
	TotalNumber int64 `json:"total_number,omitempty"`
	TotalPage   int   `json:"total_page,omitempty"`
}

type PostRequest

type PostRequest interface {
	Encode() []byte
}

type Response

type Response interface {
	IsError() bool
	Error() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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