ProductPushMode.go 504 B

12345678910111213141516171819202122232425
  1. package Product
  2. // 网关
  3. type ProductPushMode struct {
  4. Id int `json:"Id"`
  5. T_name string `json:"T_name"` // 协议名称 Mqtt
  6. }
  7. var ProductPushModeList []ProductPushMode
  8. func init() {
  9. ProductPushModeList = append(ProductPushModeList, ProductPushMode{Id: 1, T_name: "HTTP"})
  10. ProductPushModeList = append(ProductPushModeList, ProductPushMode{Id: 2, T_name: "NATS"})
  11. ProductPushModeList = append(ProductPushModeList, ProductPushMode{Id: 3, T_name: "MQTT"})
  12. }
  13. /*
  14. 1:HTTP
  15. 2:NATS
  16. 3:MQTT
  17. */