gitee.com/woood2/luca@v1.0.4/internal/errcode/restful.go (about) 1 package errcode 2 3 import "github.com/pkg/errors" 4 5 var ( 6 ServerErr = errors.New("系统繁忙,请稍后再试") 7 ) 8 9 var RestfulErrCode = map[error]string{ 10 ServerErr: "ServerErr", 11 } 12 13 func init() { 14 for k, v := range BusinessErrCode { 15 RestfulErrCode[k] = v 16 } 17 }