@@ -109,7 +109,7 @@ func InitCloudConfig() {
// refreshCloudConfig 更新业务配置
func refreshCloudConfig() {
// 获取文件的目录
- util.CreateParentDir(LocalConfig.CloudConfigLocalPath)
+ _ = util.CreateParentDir(LocalConfig.CloudConfigLocalPath)
// 3 ------- 获取 yaml 字符串 -------
var content []byte
cloudConfigObjectKey := LocalConfig.OssBasePrefix + LocalConfig.EquipmentNo + "/" + LocalConfig.CloudConfigFilename
@@ -163,5 +163,4 @@ func checkCloudConfig(check cloudConfig) bool {
os.Exit(-1)
}
return true
-
@@ -28,6 +28,9 @@ func Page(c *gin.Context) {
return
var result []entity.Record
+
+ // todo 查询数据库
for i := 0; i < param.PageSize; i++ {
result = append(result, entity.Record{
Team: "team" + util.NewShortUUID(),
@@ -1,2 +1,2 @@
-insert into device_monitor(total_cpu_usage, total_memory_usage, top10_process,device_number,soc_ip)
-values (?,?,?,?,?)
+insert into device_monitor(total_cpu_usage, total_memory_usage, top10_process,device_number,soc_ip,report_time)
+values (?,?,?,?,?,?)