|
@@ -98,8 +98,8 @@ var errCodeMap = map[int]string{
|
|
}
|
|
}
|
|
type SerError int
|
|
type SerError int
|
|
|
|
|
|
-func (e SerError) String() string {
|
|
|
|
- if v, er := errCodeMap[int(e)]; er {
|
|
|
|
|
|
+func GetMsg(code int) string {
|
|
|
|
+ if v, er := errCodeMap[code]; er {
|
|
return v
|
|
return v
|
|
}
|
|
}
|
|
return "未找到错误码,请检查错误码"
|
|
return "未找到错误码,请检查错误码"
|