AttributeUnti.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Common
  7. {
  8. /// <summary>
  9. /// 接口名称
  10. /// </summary>
  11. public class MarkAttribute : Attribute
  12. {
  13. private string _name;
  14. public MarkAttribute(string name)
  15. {
  16. this._name = name;
  17. }
  18. public string Name
  19. {
  20. get { return _name; }
  21. }
  22. }
  23. public class Key : Attribute
  24. {
  25. private string _name;
  26. public Key(string name)
  27. {
  28. this._name = name;
  29. }
  30. public string Name
  31. {
  32. get { return _name; }
  33. }
  34. }
  35. public class OtherAttribute : Attribute
  36. {
  37. private string _name;
  38. public OtherAttribute(string name)
  39. {
  40. this._name = name;
  41. }
  42. public string Name
  43. {
  44. get { return _name; }
  45. }
  46. }
  47. /// <summary>
  48. /// 用于webapi数据是否加密
  49. /// </summary>
  50. public class Jm : Attribute{ }
  51. /// <summary>
  52. /// 用于webapi数据是否验证
  53. /// </summary>
  54. public class Yz : Attribute { }
  55. }