You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
503 B

4 years ago
package e
type Error struct {
Status int
Message string
}
func New(status int, msg string) *Error {
return &Error{
Status: status,
Message: msg,
}
}
const (
DB = "数据库异常"
Internal = "服务器内部错误"
4 years ago
NeedLogin = "你需要登录"
4 years ago
NoEditorPermission = "只有编辑角色才能执行此操作"
ParamInvalid = "请求参数不正确"
NotFound = "目标不存在"
NoPermission = "你没有权限执行此操作"
)