[feat]网关子设备,直接上传,自动创建设备模型,无需手动创建

This commit is contained in:
PandaX
2023-10-17 11:14:18 +08:00
parent f26c5a2647
commit 55e399e5cb
23 changed files with 1457 additions and 74 deletions

View File

@@ -5,6 +5,8 @@ import "fmt"
type Server struct {
Port int `yaml:"port"`
GrpcPort int `yaml:"grpc-port"`
TcpPort int `yaml:"tcp-port"`
HttpPort int `yaml:"http-port"`
Model string `yaml:"model"`
Cors bool `yaml:"cors"`
Rate *Rate `yaml:"rate"`