error.go 527 Bytes
package common

// 错误码分类:1xx(参数错误);2xx(内部错误)
const (
	OK                   = "0"
	BugInfoBindFailed    = "107001"
	BugINfoRespNull      = "107002"
	BugInfoInternalNet   = "207001"
	BugInfoInternalError = "207002"
)

var Errors = make(map[string]string)

func init() {
	Errors[OK] = "success"
	Errors[BugInfoInternalError] = "服务内部错误: "
	Errors[BugInfoBindFailed] = "参数解析错误: "
	Errors[BugInfoInternalNet] = "服务器网络错误"
	Errors[BugINfoRespNull] = "查询错误"
}