error.go 578 Bytes
package common

// 错误码分类:1xx(参数错误);2xx(操作错误); 3xx(外部依赖错误); 4xx(内部错误)
const (
	OK                   = "0"
	BugInfoBindFailed    = "108001"
	BugInfoClientNull    = "108002"
	BugInfoTaskRepeat	 = "108003"
	BugInfoInternalError = "208001"
)

var Errors = make(map[string]string)

func init() {
	Errors[OK] = "success"
	Errors[BugInfoInternalError] = "内部错误: "
	Errors[BugInfoBindFailed] = "参数解析错误: "
	Errors[BugInfoClientNull] = "查询结果为空"
	Errors[BugInfoTaskRepeat] = "外部错误 重复使用: "
}