mqtt.d.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. declare namespace Mqtt {
  2. interface Auth {
  3. /** id */
  4. id: number;
  5. /** 字段名 */
  6. client_id: string | null;
  7. mount_point: string | null;
  8. user_name: string | null;
  9. password: string;
  10. pasture_id: number | null;
  11. pasture_name: string | null;
  12. topic_ids: string | null;
  13. access: number | null;
  14. publish_acl: string | null;
  15. subscribe_acl: string | null;
  16. is_show: number | null;
  17. created_at_format: string | null;
  18. updated_at_format: string | null;
  19. }
  20. interface User {
  21. /** id */
  22. id: number;
  23. /** 字段名 */
  24. user_name: string | null;
  25. password: string;
  26. client_id: string | null;
  27. pasture_id: number | null;
  28. topic_ids: string | null;
  29. is_show: number | null;
  30. access: number | null;
  31. created_at_format: string | null;
  32. updated_at_format: string | null;
  33. }
  34. interface Topic {
  35. /** id */
  36. id: number;
  37. category_id: number | null;
  38. category_name: string | null;
  39. /** 字段名 */
  40. topic_name: string | null;
  41. topic_template: string | null;
  42. created_at_format: string | null;
  43. updated_at_format: string | null;
  44. is_show: number | null;
  45. }
  46. interface Pasture {
  47. /** id */
  48. id: number;
  49. /** 字段名 */
  50. name: string | null;
  51. short_name: string | null;
  52. address: string | null;
  53. is_group: number | null;
  54. is_show: number | null;
  55. group_id: number | null;
  56. created_at_format: string | null;
  57. updated_at_format: string | null;
  58. }
  59. interface Category {
  60. /** id */
  61. id: number;
  62. /** 分类名称 */
  63. name: string | null;
  64. is_show: number | null;
  65. created_at_format: string | null;
  66. updated_at_format: string | null;
  67. }
  68. }