Versions in this module Expand all Collapse all v0 v0.0.2 Apr 7, 2024 v0.0.1 Apr 5, 2024 v0.0.0 Apr 5, 2024 Changes in this version + const CODE_FAIL + const CODE_NOFOUND_RECORD + const CODE_REQUEST_BAD + const CODE_SERVER_ERR + const CODE_SUCCESS + const CURRENT + const PAGE_SIZE + type BaseEntity struct + Proxy func() *BaseProxy + func NewBaseEntity() *BaseEntity + func (entity *BaseEntity) Clone() interface{} + func (entity *BaseEntity) FromJson(body []byte) interface{} + func (entity *BaseEntity) InitProxy(some interface{}) + func (entity *BaseEntity) Log() + func (entity *BaseEntity) String() string + func (entity *BaseEntity) ToJson() string + func (entity *BaseEntity) ToPrettyString() string + func (entity *BaseEntity) ToString() string + func (this *BaseEntity) Id2Str(id int64) string + func (this *BaseEntity) ValueFrom(from interface{}) + type BaseProxy struct + Some interface{} + func NewBaseProxy(some interface{}) *BaseProxy + func (Proxy *BaseProxy) ValueFrom(from interface{}) + func (proxy *BaseProxy) Clone() interface{} + func (proxy *BaseProxy) FromJson(body []byte) interface{} + func (proxy *BaseProxy) Log() + func (proxy *BaseProxy) String() string + func (proxy *BaseProxy) ToJson() string + func (proxy *BaseProxy) ToPrettyString() string + func (proxy *BaseProxy) ToString() string + func (proxy *BaseProxy) ValueOf(another interface{}) + type IchubError struct + Code int + Msg string + func NewIchubError(code int, msg string) *IchubError + func NewIchubErrorServer() *IchubError + func (ce *IchubError) Error() string + type IchubResult struct + Code int + Data interface{} + Msg string + func IchubResultOf(resp *req.Resp) *IchubResult + func NewIchubResult() *IchubResult + func ParseIchubResult(body string) *IchubResult + func (p *IchubResult) GetData() interface{} + func (p *IchubResult) SetData(s interface{}) + func (result *IchubResult) Check(suite suite.Suite, keyVal string) + func (result *IchubResult) CheckCode(suite suite.Suite, code int) + func (result *IchubResult) CheckValueByKey(key string, expect interface{}) bool + func (result *IchubResult) Checks(suite suite.Suite, keyVals string) + func (result *IchubResult) CodeMsg(code int, msg string) *IchubResult + func (result *IchubResult) DataIfMapParams() *IchubResultParams + func (result *IchubResult) Fail() *IchubResult + func (result *IchubResult) FailMessage(msg string) *IchubResult + func (result *IchubResult) FromJson(body []byte) (*IchubResult, error) + func (result *IchubResult) Log() + func (result *IchubResult) Success() *IchubResult + func (result *IchubResult) SuccessData(data interface{}) *IchubResult + func (result *IchubResult) SuccessMessage(msg string, data interface{}) *IchubResult + func (result *IchubResult) ToString() string + func (result *IchubResult) ValueByKey(key string) interface{} + func (this *IchubResult) DbResultTo(out interface{}) + func (this *IchubResult) EsResultTo(out interface{}) + func (this *IchubResult) GetDbResult() map[string]interface{} + func (this *IchubResult) GetEsResult() map[string]interface{} + func (this *IchubResult) To(out interface{}) + type IchubResultParam struct + func NewIchubResultParam(value interface{}) *IchubResultParam + func (p *IchubResultParam) CheckType(i interface{}) string + func (p *IchubResultParam) CheckTypeParam() string + func (p *IchubResultParam) From(value interface{}) *IchubResultParam + func (p *IchubResultParam) IfBool() bool + func (p *IchubResultParam) IfByte() bool + func (p *IchubResultParam) IfFloat32() bool + func (p *IchubResultParam) IfFloat64() bool + func (p *IchubResultParam) IfInt() bool + func (p *IchubResultParam) IfInt16() bool + func (p *IchubResultParam) IfInt32() bool + func (p *IchubResultParam) IfInt64() bool + func (p *IchubResultParam) IfInt8() bool + func (p *IchubResultParam) IfStr() bool + func (p *IchubResultParam) IfString() bool + func (p *IchubResultParam) IfUInt16() bool + func (p *IchubResultParam) IfUInt32() bool + func (p *IchubResultParam) IfUInt64() bool + func (p *IchubResultParam) IfUInt8() bool + func (p *IchubResultParam) SetValue(value interface{}) + func (p *IchubResultParam) String() string + func (p *IchubResultParam) ToBool() (ivalue bool) + func (p *IchubResultParam) ToByte() byte + func (p *IchubResultParam) ToBytes() []byte + func (p *IchubResultParam) ToFloat32() (ivalue float32) + func (p *IchubResultParam) ToFloat64() (ivalue float64) + func (p *IchubResultParam) ToInt() int + func (p *IchubResultParam) ToInt16() (ivalue int16) + func (p *IchubResultParam) ToInt32() (ivalue int32) + func (p *IchubResultParam) ToInt64() (ivalue int64) + func (p *IchubResultParam) ToInt8() (ivalue int8) + func (p *IchubResultParam) ToString() string + func (p *IchubResultParam) ToUIn8() uint8 + func (p *IchubResultParam) ToUInt() uint + func (p *IchubResultParam) ToUInt16() (ivalue uint16) + func (p *IchubResultParam) ToUInt32() (ivalue uint32) + func (p *IchubResultParam) ToUInt64() (ivalue uint64) + func (p *IchubResultParam) Value() interface{} + type IchubResultParams struct + Params map[string]interface{} + func NewIchubResultParams() *IchubResultParams + func (p *IchubResultParams) GetMap(key string) map[string]interface{} + func (p *IchubResultParams) GetParam(key string) *IchubResultParam + func (p *IchubResultParams) GetParams(key string) *IchubResultParams + func (p *IchubResultParams) SetParam(key string, value interface{}) + func (this *IchubResultParams) ValueOf(m map[string]interface{}) *IchubResultParams + type IchubResults struct + Code int + Data []IchubResult + Msg string + func IchubResultsFromJson(body []byte) (*IchubResults, error) + func IchubResultsOf(resp *req.Resp) *IchubResults + func NewIchubResults() *IchubResults + func ParseIchubResults(body string) *IchubResults + func (results *IchubResults) Check(suite suite.Suite, exp, real interface{}) + func (results *IchubResults) CheckCode(suite suite.Suite, code int) + func (results *IchubResults) Clone() *IchubResults + func (results *IchubResults) CodeMsg(code int, msg string) *IchubResults + func (results *IchubResults) Fail() *IchubResults + func (results *IchubResults) FailCode(code int, msg string) *IchubResults + func (results *IchubResults) FailMessage(msg string) *IchubResults + func (results *IchubResults) FromJson(body []byte) (*IchubResults, error) + func (results *IchubResults) GetData() []IchubResult + func (results *IchubResults) Log() + func (results *IchubResults) SetData(data []IchubResult) + func (results *IchubResults) String() string + func (results *IchubResults) Success() *IchubResults + func (results *IchubResults) SuccessData(data []IchubResult) *IchubResults + func (results *IchubResults) SuccessMessage(msg string, data []IchubResult) *IchubResults + func (results *IchubResults) ToString() string + func (results *IchubResults) ValueOfData(index int) IchubResult + type JsonResult struct + Code int + Data string + Msg string + func NewJsonResult() *JsonResult + func (p *JsonResult) GetData() string + func (p *JsonResult) SetData(s string) + func (result *JsonResult) Fail() *JsonResult + func (result *JsonResult) FailMessage(msg string) *JsonResult + func (result *JsonResult) String() string + func (result *JsonResult) Success() *JsonResult + func (result *JsonResult) SuccessData(data string) *JsonResult + func (result *JsonResult) SuccessMessage(msg string, data string) *JsonResult + func (result *JsonResult) ToString() string + type PageParam struct + Count int + Current int32 + PageSize int32 + Total int32 + func (pageParam *PageParam) String() string + func (pageParam *PageParam) ToString() string + type PageResult struct + Data []interface{} + Page PageParam + func (pageResult *PageResult) String() string + func (pageResult *PageResult) ToString() string + type QueryParam struct + Current int + EsQuery bool + FuzzyQuery bool + OrderBys *string + PageSize int + Param basemodel.ParamBase + func (param *QueryParam) String() string + func (param *QueryParam) ToString() string