Documentation ¶
Index ¶
- type EmployeeJsonResult
- func (result *EmployeeJsonResult) Fail() *EmployeeJsonResult
- func (result *EmployeeJsonResult) FailCodeMsg(code int32, msg string) *EmployeeJsonResult
- func (result *EmployeeJsonResult) FailMessage(msg string) *EmployeeJsonResult
- func (result *EmployeeJsonResult) String() string
- func (result *EmployeeJsonResult) Success() *EmployeeJsonResult
- func (result *EmployeeJsonResult) SuccessData(data model.Employee) *EmployeeJsonResult
- func (result *EmployeeJsonResult) SuccessMessage(msg string) *EmployeeJsonResult
- func (result *EmployeeJsonResult) ToString() string
- type EmployeePageResult
- func (result *EmployeePageResult) Fail() *EmployeePageResult
- func (result *EmployeePageResult) FailCodeMsg(code int32, msg string) *EmployeePageResult
- func (result *EmployeePageResult) FailMessage(msg string) *EmployeePageResult
- func (result *EmployeePageResult) GetData() []model.Employee
- func (result *EmployeePageResult) SetData(s []model.Employee)
- func (result *EmployeePageResult) String() string
- func (result *EmployeePageResult) Success() *EmployeePageResult
- func (result *EmployeePageResult) SuccessData(data []model.Employee) *EmployeePageResult
- func (result *EmployeePageResult) SuccessMessage(msg string) *EmployeePageResult
- func (result *EmployeePageResult) ToString() string
- type EmployeeParam
- type EmployeeQueryParam
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 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
Click to show internal directories.
Click to hide internal directories.