25 lines
616 B
Go
25 lines
616 B
Go
|
package response
|
||
|
|
||
|
type EntResponse struct {
|
||
|
ErrorCode int `json:"error_code"`
|
||
|
Reason string `json:"reason"`
|
||
|
Result interface{} `json:"result"`
|
||
|
}
|
||
|
|
||
|
var EntRepsStatusCodeMap = map[int]string{
|
||
|
0: "请求成功",
|
||
|
300000: "经查无结果",
|
||
|
300001: "请求失败",
|
||
|
300002: "账号失效",
|
||
|
300003: "账号过期",
|
||
|
300004: "访问频率过快",
|
||
|
300005: "无权限访问此api",
|
||
|
300006: "余额不足",
|
||
|
300007: "剩余次数不足",
|
||
|
300008: "缺少必要参数",
|
||
|
300009: "账号信息有误",
|
||
|
300010: "URL不存在",
|
||
|
300011: "此IP无权限访问此api",
|
||
|
300012: "报告生成中",
|
||
|
}
|