12345678910111213141516171819202122232425 |
- package Product
- // 网关
- type ProductPushMode struct {
- Id int `json:"Id"`
- T_name string `json:"T_name"` // 协议名称 Mqtt
- }
- var ProductPushModeList []ProductPushMode
- func init() {
- ProductPushModeList = append(ProductPushModeList, ProductPushMode{Id: 1, T_name: "HTTP"})
- ProductPushModeList = append(ProductPushModeList, ProductPushMode{Id: 2, T_name: "NATS"})
- ProductPushModeList = append(ProductPushModeList, ProductPushMode{Id: 3, T_name: "MQTT"})
- }
- /*
- 1:HTTP
- 2:NATS
- 3:MQTT
- */
|