package
0.0.0-20240730104631-8144993f038f
Repository: https://github.com/netkitcloud/sdk-go.git
Documentation: pkg.go.dev
# Functions
#title NewError #description 创建接口标准返回错误 #author rong 2022/03/04 #param code int 错误码
message string 错误信息
#return *Error 接口标准错误指针.
#title NewResponse #description 返回错误的JSON信息 #author feng 2022/02/27 09:16 #param err interface 错误响应类 #return *ApiResponse interface 标准返回类.
#title NewResponseData #description 返回错误信息并包含data的JSON信息,一般用于展示列表和详情 #author feng 2022/02/28 #param err interface 错误响应类
data interface{} 展示的json数据
#return *ApiResponse interface 标准返回类.
#title NewResponseMessage #description 返回错误的JSON信息,自带错误提示msg包含具体错误信息, #author feng 2022/02/27 09:16 #param err interface 错误响应类
message string 具体错误信息
#return *ApiResponse interface 标准返回类.
#title ResponseSuccess #description 返回成功JSON信息 #author feng 2022/02/27 09:16 #return *ApiResponse interface 标准返回类.
# Variables
No description provided by the author
通用错误码.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
初始化客户端失败.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author