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 DepartmentJsonResult

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

func (*DepartmentJsonResult) Fail

func (*DepartmentJsonResult) FailCodeMsg

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

func (*DepartmentJsonResult) FailMessage

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

func (*DepartmentJsonResult) String

func (result *DepartmentJsonResult) String() string

func (*DepartmentJsonResult) Success

func (result *DepartmentJsonResult) Success() *DepartmentJsonResult

func (*DepartmentJsonResult) SuccessData

func (result *DepartmentJsonResult) SuccessData(data model.Department) *DepartmentJsonResult

func (*DepartmentJsonResult) SuccessMessage

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

func (*DepartmentJsonResult) ToString

func (result *DepartmentJsonResult) ToString() string

type DepartmentPageResult

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

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

func (*DepartmentPageResult) Fail

func (*DepartmentPageResult) FailCodeMsg

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

func (*DepartmentPageResult) FailMessage

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

func (*DepartmentPageResult) GetData

func (result *DepartmentPageResult) GetData() []model.Department

func (*DepartmentPageResult) SetData

func (result *DepartmentPageResult) SetData(s []model.Department)

func (*DepartmentPageResult) String

func (result *DepartmentPageResult) String() string

func (*DepartmentPageResult) Success

func (result *DepartmentPageResult) Success() *DepartmentPageResult

func (*DepartmentPageResult) SuccessData

func (result *DepartmentPageResult) SuccessData(data []model.Department) *DepartmentPageResult

func (*DepartmentPageResult) SuccessMessage

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

func (*DepartmentPageResult) ToString

func (result *DepartmentPageResult) ToString() string

type DepartmentParam

type DepartmentParam 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.Department
}

type DepartmentQueryParam

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

func (*DepartmentQueryParam) Ini

func (param *DepartmentQueryParam) Ini()

func (*DepartmentQueryParam) String

func (param *DepartmentQueryParam) String() string

func (*DepartmentQueryParam) ToString

func (param *DepartmentQueryParam) ToString() string

Jump to

Keyboard shortcuts

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