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 EmployeeJsonResult

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

func (*EmployeeJsonResult) Fail

func (result *EmployeeJsonResult) Fail() *EmployeeJsonResult

func (*EmployeeJsonResult) FailCodeMsg

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

func (*EmployeeJsonResult) FailMessage

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

func (*EmployeeJsonResult) String

func (result *EmployeeJsonResult) String() string

func (*EmployeeJsonResult) Success

func (result *EmployeeJsonResult) Success() *EmployeeJsonResult

func (*EmployeeJsonResult) SuccessData

func (result *EmployeeJsonResult) SuccessData(data model.Employee) *EmployeeJsonResult

func (*EmployeeJsonResult) SuccessMessage

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

func (*EmployeeJsonResult) ToString

func (result *EmployeeJsonResult) ToString() string

type EmployeePageResult

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

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

func (*EmployeePageResult) Fail

func (result *EmployeePageResult) Fail() *EmployeePageResult

func (*EmployeePageResult) FailCodeMsg

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

func (*EmployeePageResult) FailMessage

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

func (*EmployeePageResult) GetData

func (result *EmployeePageResult) GetData() []model.Employee

func (*EmployeePageResult) SetData

func (result *EmployeePageResult) SetData(s []model.Employee)

func (*EmployeePageResult) String

func (result *EmployeePageResult) String() string

func (*EmployeePageResult) Success

func (result *EmployeePageResult) Success() *EmployeePageResult

func (*EmployeePageResult) SuccessData

func (result *EmployeePageResult) SuccessData(data []model.Employee) *EmployeePageResult

func (*EmployeePageResult) SuccessMessage

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

func (*EmployeePageResult) ToString

func (result *EmployeePageResult) ToString() string

type EmployeeParam

type EmployeeParam 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.Employee
}

type EmployeeQueryParam

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

func (*EmployeeQueryParam) Ini

func (param *EmployeeQueryParam) Ini()

func (*EmployeeQueryParam) String

func (param *EmployeeQueryParam) String() string

func (*EmployeeQueryParam) ToString

func (param *EmployeeQueryParam) ToString() string

Jump to

Keyboard shortcuts

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