25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

92 lines
2.6 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPA.KitChen.GroupMeal.Application.Service.Device.PushDto.ProductFunction
  7. {
  8. public class ProductFunctionDto
  9. {
  10. public string Id { get; set; }
  11. /// <summary>
  12. /// 功能名称
  13. /// </summary>
  14. public string Name { get; set; }
  15. public string DeviceVersionKey { get; set; }
  16. /// <summary>
  17. /// 功能类型 0属性1服务2事件
  18. /// </summary>
  19. public string Type { get; set; }
  20. /// <summary>
  21. /// 数据类型
  22. /// </summary>
  23. public string DataType { get; set; }
  24. /// <summary>
  25. /// 取值范围
  26. /// </summary>
  27. public string DataRange { get; set; }
  28. /// <summary>
  29. /// 单位
  30. /// </summary>
  31. public string Unit { get; set; }
  32. /// <summary>
  33. /// 步长
  34. /// </summary>
  35. public decimal StepSize { get; set; }
  36. /// <summary>
  37. /// 枚举值
  38. /// </summary>
  39. public string EnumValue { get; set; }
  40. /// <summary>
  41. /// 数据长度
  42. /// </summary>
  43. public string DataLength { get; set; }
  44. /// <summary>
  45. /// 数据类型bool的描述
  46. /// </summary>
  47. public string BoolLabel { get; set; }
  48. /// <summary>
  49. /// 读写类型0读写 1只读
  50. /// </summary>
  51. public int ReadWrite { get; set; }
  52. /// <summary>
  53. /// 描述
  54. /// </summary>
  55. public string Description { get; set; }
  56. public string ProductId { get; set; }
  57. public string DataJson { get; set; }
  58. public bool IsDefault { get; set; }
  59. public List<ProductFunctionAction> ProductFunctionValue { get; set; }
  60. }
  61. public class ProductFunctionAction
  62. {
  63. public string Id { get; set; }
  64. /// <summary>
  65. /// 功能id
  66. /// </summary>
  67. public string ProductFunctionId { get; set; }
  68. /// <summary>
  69. /// 动作名称
  70. /// </summary>
  71. public string ActionName { get; set; }
  72. /// <summary>
  73. /// 类型 (1 输入框 2下拉框)
  74. /// </summary>
  75. public string ActionType { get; set; }
  76. /// <summary>
  77. /// 类型值(jsong格式)
  78. /// </summary>
  79. public string ActionValue { get; set; }
  80. /// <summary>
  81. /// 单位
  82. /// </summary>
  83. public string Unit { get; set; }
  84. /// <summary>
  85. /// 排序
  86. /// </summary>
  87. public int Sort { get; set; }
  88. public bool IsDefault { get; set; }
  89. }
  90. }