httplib

package
v0.0.0-...-61829c1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetServiceName

func SetServiceName(name string)

Types

type Bool

type Bool = enumeration.Bool

deprecated

type CreateTimeRange

type CreateTimeRange struct {
	// 创建起始时间
	CreateStartTime timelib.MySQLTimestamp `name:"createStartTime,omitempty" in:"query"`
	// 创建终止时间
	CreateEndTime timelib.MySQLTimestamp `name:"createEndTime,omitempty" in:"query"`
}

func (CreateTimeRange) ValidateCreateEndTime

func (createTimeRange CreateTimeRange) ValidateCreateEndTime() string

type ErrorField

type ErrorField = status_error.ErrorField

deprecated

type GeneralError

type GeneralError = status_error.StatusError

deprecated

type Pager

type Pager struct {
	// 分页大小
	// 默认为 10,-1 为查询所有
	Size int32 `name:"size" in:"query" default:"10"  validate:"@int32[-1,50]"`
	// 分页偏移
	// 默认为 0
	Offset int32 `name:"offset,omitempty" in:"query" validate:"@int32[0,]"`
}

type Uint64List

type Uint64List []uint64

func (Uint64List) MarshalJSON

func (list Uint64List) MarshalJSON() ([]byte, error)

func (*Uint64List) UnmarshalJSON

func (list *Uint64List) UnmarshalJSON(data []byte) (err error)

type UpdateTimeRange

type UpdateTimeRange struct {
	// 更新起始时间
	UpdateStartTime timelib.MySQLTimestamp `name:"updateStartTime" in:"query" default:"" `
	// 更新终止时间
	UpdateEndTime timelib.MySQLTimestamp `name:"updateEndTime" in:"query" default:""`
}

func (UpdateTimeRange) ValidateUpdateEndTime

func (updateTimeRange UpdateTimeRange) ValidateUpdateEndTime() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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