mqtt.d.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. declare namespace Mqtt {
  2. interface Auth {
  3. id: number;
  4. client_id: string | null;
  5. mount_point: string | null;
  6. user_name: string;
  7. password: string;
  8. pasture_id: number | null;
  9. pasture_name: string | null;
  10. pub_topic_id: number | null;
  11. sub_topic_id: number | null;
  12. access: number | null;
  13. publish_acl: string | null;
  14. subscribe_acl: string | null;
  15. created_at_format: string | null;
  16. updated_at_format: string | null;
  17. pub_topic_ids: [] | null;
  18. sub_topic_ids: [] | null;
  19. key: number;
  20. }
  21. interface AuthData {
  22. page: number;
  23. page_size: number;
  24. list: Auth[];
  25. count: number;
  26. }
  27. interface SearchAuth {
  28. pasture_name: string;
  29. user_name: string;
  30. pub_topic_name: string;
  31. sub_topic_name: string;
  32. }
  33. interface User {
  34. id: number;
  35. user_name: string | null;
  36. password: string;
  37. client_id: string | null;
  38. pasture_id: number | null;
  39. topic_ids: string | null;
  40. is_show: number | null;
  41. access: number | null;
  42. created_at_format: string | null;
  43. updated_at_format: string | null;
  44. }
  45. interface Topic {
  46. id: number;
  47. pasture_id: number | null;
  48. pasture_name: string | null;
  49. topic_name: string | null;
  50. topic_template: string | null;
  51. access: number | null;
  52. is_show: number | null;
  53. created_at_format: string | null;
  54. updated_at_format: string | null;
  55. key: number;
  56. }
  57. interface TopicData {
  58. page: number;
  59. page_size: number;
  60. list: Topic[];
  61. count: number;
  62. }
  63. interface Pasture {
  64. id: number;
  65. pasture_name: string | null;
  66. short_name: string | null;
  67. is_show: number | null;
  68. created_at_format: string | null;
  69. updated_at_format: string | null;
  70. key: number;
  71. }
  72. interface PastureData {
  73. page: number;
  74. page_size: number;
  75. list: Pasture[];
  76. count: number;
  77. }
  78. interface Category {
  79. id: number;
  80. name: string | null;
  81. is_show: number | null;
  82. created_at_format: string | null;
  83. updated_at_format: string | null;
  84. }
  85. }