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