From 9d88c7c467f8d93af4aab9ba0b6d6c01c2ffc546 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期四, 20 八月 2020 20:35:30 +0800 Subject: [PATCH] add get buckets contrl --- 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