enterprise/common/config/error.go

16 lines
447 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package config
import "github.com/gogap/errors"
// 这里是框架统一错误码业务错误码以业务编号开头放到业务common目录下
var (
// 系统错误码
ErrOK = errors.T(0, "操作成功")
ErrPriv = errors.T(196, "没有权限")
ErrDb = errors.T(197, "数据库错误")
ErrRemote = errors.T(198, "第三方错误")
ErrInternal = errors.T(199, "内部错误")
ErrParam = errors.T(400, "参数错误")
)