From 789d38603d73dabe8ae5f79c1a35a8d84c130b00 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 04 三月 2020 18:20:47 +0800
Subject: [PATCH] update protomsg
---
controllers/fileAnalysisSetting.go | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/controllers/fileAnalysisSetting.go b/controllers/fileAnalysisSetting.go
index 11c4f59..35aedc7 100644
--- a/controllers/fileAnalysisSetting.go
+++ b/controllers/fileAnalysisSetting.go
@@ -11,6 +11,7 @@
}
+// @Security ApiKeyAuth
// @Summary 鑾峰彇鏈湴鏂囦欢寮�鍏宠缃�
// @Description 鑾峰彇鏈湴鏂囦欢寮�鍏宠缃�
// @Produce json
@@ -22,7 +23,13 @@
var api dbapi.FileAnalysisApi
setting, err := api.GetFileAnalysisSet()
if err == nil {
- util.ResponseFormat(c,code.Success, setting)
+ util.ResponseFormat(c,code.Success, map[string]interface{}{
+ "videoEnable": setting.VideoEnable,
+ "fileDirectory": setting.FileDirectory,
+ "videoChannelCount": setting.VideoChannelCount,
+ "imgChannelCount": setting.ImgChannelCount,
+ "audioChannelCount": setting.AudioChannelCount,
+ })
} else {
util.ResponseFormat(c,code.ComError, setting)
}
@@ -32,6 +39,7 @@
Enable bool `json:"enable"`
}
+// @Security ApiKeyAuth
// @Summary 鍒囨崲鏈湴鏂囦欢鍒嗘瀽寮�鍏�
// @Description 鍒囨崲鏈湴鏂囦欢鍒嗘瀽寮�鍏�
// @Accept json
--
Gitblit v1.8.0