Documentation ¶
Index ¶
- type NationJsonResult
- func (result *NationJsonResult) Fail() *NationJsonResult
- func (result *NationJsonResult) FailCodeMsg(code int32, msg string) *NationJsonResult
- func (result *NationJsonResult) FailMessage(msg string) *NationJsonResult
- func (result *NationJsonResult) String() string
- func (result *NationJsonResult) Success() *NationJsonResult
- func (result *NationJsonResult) SuccessData(data model.Nation) *NationJsonResult
- func (result *NationJsonResult) SuccessMessage(msg string) *NationJsonResult
- func (result *NationJsonResult) ToString() string
- type NationPageResult
- func (result *NationPageResult) Fail() *NationPageResult
- func (result *NationPageResult) FailCodeMsg(code int32, msg string) *NationPageResult
- func (result *NationPageResult) FailMessage(msg string) *NationPageResult
- func (result *NationPageResult) GetData() []model.Nation
- func (result *NationPageResult) SetData(s []model.Nation)
- func (result *NationPageResult) String() string
- func (result *NationPageResult) Success() *NationPageResult
- func (result *NationPageResult) SuccessData(data []model.Nation) *NationPageResult
- func (result *NationPageResult) SuccessMessage(msg string) *NationPageResult
- func (result *NationPageResult) ToString() string
- type NationParam
- type NationQueryParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NationJsonResult ¶
type NationJsonResult struct { Code int32 `json:"code"` Msg string `json:"msg"` Data *model.Nation `json:"data"` }
func (*NationJsonResult) Fail ¶
func (result *NationJsonResult) Fail() *NationJsonResult
func (*NationJsonResult) FailCodeMsg ¶
func (result *NationJsonResult) FailCodeMsg(code int32, msg string) *NationJsonResult
func (*NationJsonResult) FailMessage ¶
func (result *NationJsonResult) FailMessage(msg string) *NationJsonResult
func (*NationJsonResult) String ¶
func (result *NationJsonResult) String() string
func (*NationJsonResult) Success ¶
func (result *NationJsonResult) Success() *NationJsonResult
func (*NationJsonResult) SuccessData ¶
func (result *NationJsonResult) SuccessData(data model.Nation) *NationJsonResult
func (*NationJsonResult) SuccessMessage ¶
func (result *NationJsonResult) SuccessMessage(msg string) *NationJsonResult
func (*NationJsonResult) ToString ¶
func (result *NationJsonResult) ToString() string
type NationPageResult ¶
type NationPageResult struct { Code int32 `json:"code"` Msg string `json:"msg"` Page basedto.PageParam `json:"page"` Data []model.Nation `json:"data"` }
func (*NationPageResult) Fail ¶
func (result *NationPageResult) Fail() *NationPageResult
func (*NationPageResult) FailCodeMsg ¶
func (result *NationPageResult) FailCodeMsg(code int32, msg string) *NationPageResult
func (*NationPageResult) FailMessage ¶
func (result *NationPageResult) FailMessage(msg string) *NationPageResult
func (*NationPageResult) GetData ¶
func (result *NationPageResult) GetData() []model.Nation
func (*NationPageResult) SetData ¶
func (result *NationPageResult) SetData(s []model.Nation)
func (*NationPageResult) String ¶
func (result *NationPageResult) String() string
func (*NationPageResult) Success ¶
func (result *NationPageResult) Success() *NationPageResult
func (*NationPageResult) SuccessData ¶
func (result *NationPageResult) SuccessData(data []model.Nation) *NationPageResult
func (*NationPageResult) SuccessMessage ¶
func (result *NationPageResult) SuccessMessage(msg string) *NationPageResult
func (*NationPageResult) ToString ¶
func (result *NationPageResult) ToString() string
type NationParam ¶
type NationQueryParam ¶
type NationQueryParam 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 *NationParam `json:"param"` }
func (*NationQueryParam) Ini ¶
func (param *NationQueryParam) Ini()
func (*NationQueryParam) String ¶
func (param *NationQueryParam) String() string
func (*NationQueryParam) ToString ¶
func (param *NationQueryParam) ToString() string
Click to show internal directories.
Click to hide internal directories.