Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UNKNOWN_ERROR = ApiErrorMsg{"UNKNOWN_ERROR", "远程服务调用失败,未知异常!"} PARAM_ERROR_CODE = ApiErrorMsg{"API_PARAM_ILLEGAL", "api参数不合法"} DB_TEMP_ADD_FAILED = ApiErrorMsg{"DB_TEMP_ADD_FAILED", "数据新增失败, 请稍后重试"} ASSIGNEE_NOT_EXIST = ApiErrorMsg{"ASSIGNEE_NOT_EXIST", "分配的用户不存在"} RECORD_NOT_EXIST = ApiErrorMsg{"RECORD_NOT_EXIST", "记录不存在"} PERMISSION_DENIED = ApiErrorMsg{"PERMISSION_DENIED", "没有权限"} )
Functions ¶
Types ¶
type ApiErrorMsg ¶
type ApiErrorMsg struct {
ErrorCode, ErrorMsg string
}
type ApiErrorResult ¶
type ApiErrorResult struct {
ApiResultCommon
ErrorCode string `json:"errorCode"`
ErrorMsg string `json:"errorMsg"`
}
func NewApiErrorResult ¶
func NewApiErrorResult(errorCode, errorMsg string) ApiErrorResult
type ApiResultCommon ¶
Click to show internal directories.
Click to hide internal directories.