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 NationJsonResult

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

func (*NationJsonResult) Fail

func (result *NationJsonResult) Fail() *NationJsonResult

func (*NationJsonResult) FailCodeMsg

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

func (*NationJsonResult) FailMessage

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

func (*NationJsonResult) String

func (result *NationJsonResult) String() string

func (*NationJsonResult) Success

func (result *NationJsonResult) Success() *NationJsonResult

func (*NationJsonResult) SuccessData

func (result *NationJsonResult) SuccessData(data model.Nation) *NationJsonResult

func (*NationJsonResult) SuccessMessage

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

func (*NationJsonResult) ToString

func (result *NationJsonResult) ToString() string

type NationPageResult

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

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

func (*NationPageResult) Fail

func (result *NationPageResult) Fail() *NationPageResult

func (*NationPageResult) FailCodeMsg

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

func (*NationPageResult) FailMessage

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

func (*NationPageResult) GetData

func (result *NationPageResult) GetData() []model.Nation

func (*NationPageResult) SetData

func (result *NationPageResult) SetData(s []model.Nation)

func (*NationPageResult) String

func (result *NationPageResult) String() string

func (*NationPageResult) Success

func (result *NationPageResult) Success() *NationPageResult

func (*NationPageResult) SuccessData

func (result *NationPageResult) SuccessData(data []model.Nation) *NationPageResult

func (*NationPageResult) SuccessMessage

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

func (*NationPageResult) ToString

func (result *NationPageResult) ToString() string

type NationParam

type NationParam 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.Nation
}

type NationQueryParam

type NationQueryParam 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 *NationParam `json:"param"`
}

func (*NationQueryParam) Ini

func (param *NationQueryParam) Ini()

func (*NationQueryParam) String

func (param *NationQueryParam) String() string

func (*NationQueryParam) ToString

func (param *NationQueryParam) ToString() string

Jump to

Keyboard shortcuts

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