BusStatusCode.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Enums
  8. {
  9. /// <summary>
  10. /// 业务状态码
  11. /// </summary>
  12. public enum BusStatusCode:int
  13. {
  14. [Description("操作成功")]
  15. Success = 200,//添加成功
  16. [Description("操作失败")]
  17. Failed = 201,//添加失败
  18. [Description("添加失败")]
  19. AddFailed = 202,//添加失败
  20. [Description("修改失败")]
  21. UpdateFailed = 203,//修改失败
  22. [Description("删除失败")]
  23. DeleteFailed = 204,//删除失败
  24. [Description("请检查端口值是否正确!“portType”:1:WEB;2:ANDROID;3:IOS;")]
  25. PortTypeError = 205,//端口类型错误
  26. [Description("集合没有数据,请传入数据")]
  27. ItemsNotFound = 206,//没有找到数据
  28. [Description("DiId值错误")]
  29. DiIdValueError = 207,//DiId值错误
  30. [Description("UserId值错误")]
  31. UserIdValueError = 208,//UserId值错误
  32. }
  33. }