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.
 
 

145 lines
3.7 KiB

  1. using Furion.FriendlyException;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace BPA.KitChen.GroupMeal.Application.Service.AExternalPlatform.Enum
  9. {
  10. /// <summary>
  11. /// 系统错误码
  12. /// </summary>
  13. [ErrorCodeType]
  14. [Description("系统错误码")]
  15. public enum ErrorCodeEnum
  16. {
  17. /// <summary>
  18. /// 用户没有注册
  19. /// </summary>
  20. [ErrorCodeItemMetadata("用户没有注册")]
  21. Code1000,
  22. /// <summary>
  23. /// 操作错误
  24. /// </summary>
  25. [ErrorCodeItemMetadata("操作错误")]
  26. Code1001,
  27. /// <summary>
  28. /// 重复添加
  29. /// </summary>
  30. [ErrorCodeItemMetadata("重复添加")]
  31. Code1002,
  32. /// <summary>
  33. /// 操作数据不存在
  34. /// </summary>
  35. [ErrorCodeItemMetadata("操作数据不存在")]
  36. Code1003,
  37. /// <summary>
  38. /// key不正确
  39. /// </summary>
  40. [ErrorCodeItemMetadata("key不正确")]
  41. Code1004,
  42. /// <summary>
  43. /// 签名错误
  44. /// </summary>
  45. [ErrorCodeItemMetadata("签名错误")]
  46. Code1005,
  47. /// <summary>
  48. /// 签名错误
  49. /// </summary>
  50. [ErrorCodeItemMetadata("签名过期")]
  51. Code1006,
  52. /// <summary>
  53. /// 系统异常
  54. /// </summary>
  55. [ErrorCodeItemMetadata("系统异常")]
  56. Code1007,
  57. /// <summary>
  58. /// 商品不存在
  59. /// </summary>
  60. [ErrorCodeItemMetadata("商品不存在")]
  61. Code1008,
  62. /// <summary>
  63. /// 场景id不能为空
  64. /// </summary>
  65. [ErrorCodeItemMetadata("场景id不能为空")]
  66. Code1009,
  67. /// <summary>
  68. /// 产品不存在
  69. /// </summary>
  70. [ErrorCodeItemMetadata("产品不存在")]
  71. Code10010,
  72. /// <summary>
  73. /// 产品版本不存在
  74. /// </summary>
  75. [ErrorCodeItemMetadata("产品版本不存在")]
  76. Code10011,
  77. /// <summary>
  78. /// 设备不存在
  79. /// </summary>
  80. [ErrorCodeItemMetadata("设备不存在")]
  81. Code10012,
  82. /// <summary>
  83. /// 产品标签不存在
  84. /// </summary>
  85. [ErrorCodeItemMetadata("产品标签不存在")]
  86. Code10013,
  87. /// <summary>
  88. /// 授权过期
  89. /// </summary>
  90. [ErrorCodeItemMetadata("授权过期")]
  91. Code10014,
  92. /// <summary>
  93. /// 配方不存在
  94. /// </summary>
  95. [ErrorCodeItemMetadata("配方不存在")]
  96. Code10015,
  97. /// <summary>
  98. /// 下发错误
  99. /// </summary>
  100. [ErrorCodeItemMetadata("操作成功,下发错误")]
  101. Code10016,
  102. /// <summary>
  103. /// 名称或编码重复
  104. /// </summary>
  105. [ErrorCodeItemMetadata("名称或编码重复")]
  106. Code10017,
  107. /// <summary>
  108. /// 模板名称不能重复
  109. /// </summary>
  110. [ErrorCodeItemMetadata("模板名称不能重复")]
  111. Code10018,
  112. /// <summary>
  113. /// 设备id不能为空
  114. /// </summary>
  115. [ErrorCodeItemMetadata("设备id不能为空")]
  116. Code10019,
  117. /// <summary>
  118. /// 模板名称不能为空
  119. /// </summary>
  120. [ErrorCodeItemMetadata("模板名称不能为空")]
  121. Code10020,
  122. /// <summary>
  123. /// 获取场景数据失败
  124. /// </summary>
  125. [ErrorCodeItemMetadata("获取场景数据失败")]
  126. Code10021,
  127. /// <summary>
  128. /// 场景不存在
  129. /// </summary>
  130. [ErrorCodeItemMetadata("场景不存在")]
  131. Code10022,
  132. }
  133. }