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 TableName1JsonResult

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

func (*TableName1JsonResult) Fail

func (*TableName1JsonResult) FailCodeMsg

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

func (*TableName1JsonResult) FailMessage

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

func (*TableName1JsonResult) String

func (result *TableName1JsonResult) String() string

func (*TableName1JsonResult) Success

func (result *TableName1JsonResult) Success() *TableName1JsonResult

func (*TableName1JsonResult) SuccessData

func (result *TableName1JsonResult) SuccessData(data model.TableName1) *TableName1JsonResult

func (*TableName1JsonResult) SuccessMessage

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

func (*TableName1JsonResult) ToString

func (result *TableName1JsonResult) ToString() string

type TableName1PageResult

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

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

func (*TableName1PageResult) Fail

func (*TableName1PageResult) FailCodeMsg

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

func (*TableName1PageResult) FailMessage

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

func (*TableName1PageResult) GetData

func (result *TableName1PageResult) GetData() []model.TableName1

func (*TableName1PageResult) SetData

func (result *TableName1PageResult) SetData(s []model.TableName1)

func (*TableName1PageResult) String

func (result *TableName1PageResult) String() string

func (*TableName1PageResult) Success

func (result *TableName1PageResult) Success() *TableName1PageResult

func (*TableName1PageResult) SuccessData

func (result *TableName1PageResult) SuccessData(data []model.TableName1) *TableName1PageResult

func (*TableName1PageResult) SuccessMessage

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

func (*TableName1PageResult) ToString

func (result *TableName1PageResult) ToString() string

type TableName1Param

type TableName1Param 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.TableName1
}

type TableName1QueryParam

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

func (*TableName1QueryParam) Ini

func (param *TableName1QueryParam) Ini()

func (*TableName1QueryParam) String

func (param *TableName1QueryParam) String() string

func (*TableName1QueryParam) ToString

func (param *TableName1QueryParam) ToString() string

Jump to

Keyboard shortcuts

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