dto

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PositionJsonResult

type PositionJsonResult struct {
	Code int32           `json:"code"`
	Msg  string          `json:"msg"`
	Data *model.Position `json:"data"`
}

func (*PositionJsonResult) Fail

func (result *PositionJsonResult) Fail() *PositionJsonResult

func (*PositionJsonResult) FailCodeMsg

func (result *PositionJsonResult) FailCodeMsg(code int32, msg string) *PositionJsonResult

func (*PositionJsonResult) FailMessage

func (result *PositionJsonResult) FailMessage(msg string) *PositionJsonResult

func (*PositionJsonResult) String

func (result *PositionJsonResult) String() string

func (*PositionJsonResult) Success

func (result *PositionJsonResult) Success() *PositionJsonResult

func (*PositionJsonResult) SuccessData

func (result *PositionJsonResult) SuccessData(data model.Position) *PositionJsonResult

func (*PositionJsonResult) SuccessMessage

func (result *PositionJsonResult) SuccessMessage(msg string) *PositionJsonResult

func (*PositionJsonResult) ToString

func (result *PositionJsonResult) ToString() string

type PositionPageResult

type PositionPageResult struct {
	Code int32  `json:"code"`
	Msg  string `json:"msg"`

	Page basedto.PageParam `json:"page"`
	Data []model.Position  `json:"data"`
}

func (*PositionPageResult) Fail

func (result *PositionPageResult) Fail() *PositionPageResult

func (*PositionPageResult) FailCodeMsg

func (result *PositionPageResult) FailCodeMsg(code int32, msg string) *PositionPageResult

func (*PositionPageResult) FailMessage

func (result *PositionPageResult) FailMessage(msg string) *PositionPageResult

func (*PositionPageResult) GetData

func (result *PositionPageResult) GetData() []model.Position

func (*PositionPageResult) SetData

func (result *PositionPageResult) SetData(s []model.Position)

func (*PositionPageResult) String

func (result *PositionPageResult) String() string

func (*PositionPageResult) Success

func (result *PositionPageResult) Success() *PositionPageResult

func (*PositionPageResult) SuccessData

func (result *PositionPageResult) SuccessData(data []model.Position) *PositionPageResult

func (*PositionPageResult) SuccessMessage

func (result *PositionPageResult) SuccessMessage(msg string) *PositionPageResult

func (*PositionPageResult) ToString

func (result *PositionPageResult) ToString() string

type PositionParam

type PositionParam struct {
	DateRanges   map[string][]int64  `json:"date_ranges,string"`
	IntRanges    map[string][]int64  `json:"int_ranges,string"`
	StringRanges map[string][]string `json:"string_ranges"`
	InRanges     map[string]string   `json:"in_ranges"`

	model.Position
}

type PositionQueryParam

type PositionQueryParam struct {
	Current    int32  `json:"current"`
	PageSize   int32  `json:"page_size"`
	OrderBys   string `json:"order_bys"`
	FuzzyQuery bool   `json:"fuzzy_query"`
	EsQuery    bool   `json:"es_query"`

	Param *PositionParam `json:"param"`
}

func (*PositionQueryParam) Ini

func (param *PositionQueryParam) Ini()

func (*PositionQueryParam) String

func (param *PositionQueryParam) String() string

func (*PositionQueryParam) ToString

func (param *PositionQueryParam) ToString() string

Jump to

Keyboard shortcuts

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