code_gen.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Code generated by lance DO NOT EDIT
  2. // Package const code comment msg
  3. package codex
  4. import (
  5. "gogs.baozhida.cn/Cold_Logistic_libs/pkg/contrib/core/code"
  6. )
  7. func init() {
  8. code.RegisterCode(ErrSystemSrv, 500, "系统错误")
  9. code.RegisterCode(ErrAccountQueryFailed, 500, "账号查询失败")
  10. code.RegisterCode(ErrPlaceOrderFailed, 500, "下单失败")
  11. code.RegisterCode(ErrParamValidate, 400, "TmpMsg")
  12. code.RegisterCode(ErrBindJSON, 400, "不合规的JSON数据类型定义")
  13. code.RegisterCode(ErrInvalidAuthHeader, 401, "Invalid authorization header.")
  14. code.RegisterCode(ErrSignatureInvalid, 401, "未登录(Signature is invalid)")
  15. code.RegisterCode(ErrLoginInvalid, 401, "账号不存在或密码错误")
  16. code.RegisterCode(ErrLogoutInvalid, 500, "登出错误")
  17. code.RegisterCode(ErrFindAccountInvalid, 401, "ErrFindAccountInvalid")
  18. code.RegisterCode(ErrCaptchaInvalid, 401, "验证码错误")
  19. code.RegisterCode(ErrClientIp, 403, "Client Ip Must Be LocalHost")
  20. code.RegisterCode(ErrXRequestIdHeader, 400, "Invalid X-Request-Id header.")
  21. code.RegisterCode(ErrLoginFailed, 400, "TmpMsg")
  22. code.RegisterCode(ErrOperationForbideen, 403, "无权访问!")
  23. code.RegisterCode(ErrResourceNotFound, 400, "资源不存在")
  24. code.RegisterCode(ErrOperationFailed, 500, "操作失败")
  25. code.RegisterCode(ErrOpPermissionFailed, 500, "权限验证失败")
  26. code.RegisterCode(ErrNameExisted, 400, "该名称重复")
  27. code.RegisterCode(ErrQueryFailed, 500, "查询失败")
  28. code.RegisterCode(ErrSaveFailed, 500, "保存失败")
  29. code.RegisterCode(ErrDeletedFailed, 500, "删除失败")
  30. code.RegisterCode(ErrGetUploadKeyFailed, 500, "获取上传秘钥失败")
  31. code.RegisterCode(ErrFileTitleNotMatch, 400, "文件标题不匹配")
  32. code.RegisterCode(ErrUrlExpires, 403, "链接已过期")
  33. code.RegisterCode(ErrUrlInvalid, 403, "TmpMsg")
  34. code.RegisterCode(ErrNoDataPermission, 403, "TmpMsg")
  35. }