zhangzengfei
2024-06-06 0b932b8af021e1f97a27c85d823f828fbf854a39
config/config.go
@@ -47,14 +47,12 @@
   ReportServer   string `mapstructure:"report-server"`
   ReportInterval int    `mapstructure:"report-interval"`
   RetryInterval  int    `mapstructure:"retry-interval"`
   Enable bool `mapstructure:"enable"`
}
type image struct {
   CutFaceImage bool    `mapstructure:"cut-face-image"`
   OriginWidth  float64 `mapstructure:"origin-width"`
   OriginHeight float64 `mapstructure:"origin-height"`
   Enlarge      int  `mapstructure:"enlarge"`
}
// 梯控设备
@@ -128,5 +126,9 @@
      ClientConf.Proto = "http"
   }
   if ImageConf.Enlarge == 0 {
      ImageConf.Enlarge = 100
   }
   logger.SetLogLevel(LogConf.Level)
}