From fa441753409d0e83f8fb3c9d00ee1abae2ec98dd Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期三, 04 十二月 2019 18:57:58 +0800 Subject: [PATCH] fix --- controllers/fileAnalysis.go | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/controllers/fileAnalysis.go b/controllers/fileAnalysis.go index 9009f14..0bf98dd 100644 --- a/controllers/fileAnalysis.go +++ b/controllers/fileAnalysis.go @@ -38,7 +38,7 @@ type SortVo struct { Id string `json:"id" binding:"required"` - Direct int `json:"direct" binding:"required" example:"1:鍚戜笂锛�2锛氬悜涓�"` + Direct int `json:"direct" binding:"required"` } type FileStatusVo struct { @@ -46,13 +46,19 @@ Status int `json:"status" binding:"required"` } +const ( + File_Img_Id_Pre = "img_" + File_Video_Id_Pre = "video_" + File_Audio_Id_Pre = "audio_" +) + // @Security ApiKeyAuth // @Summary 寮�鍚垨鏆傚仠鏂囦欢鍒嗘瀽 // @Description 寮�鍚垨鏆傚仠鏂囦欢鍒嗘瀽 // @Accept json // @Produce json // @Tags 鏈湴鏂囦欢 -// Param reqBody body controllers.FileStatusVo true "寮�鍚殏鍋滃弬鏁�,鏆傚仠status=0锛屽紑鍚痵tatus=1" +// @Param reqBody body controllers.FileStatusVo true "寮�鍚殏鍋滃弬鏁�,鏆傚仠status=0锛屽紑鍚痵tatus=1" // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}" // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}" // @Router /data/api-v/fileAnalysis/updateStatus [post] @@ -78,7 +84,7 @@ // @Accept json // @Produce json // @Tags 鏈湴鏂囦欢 -// Param reqBody body controllers.IdArrVo true "鍒犻櫎鏂囦欢id鍒楄〃" +// @Param reqBody body controllers.IdArrVo true "鍒犻櫎鏂囦欢id鍒楄〃" // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}" // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}" // @Router /data/api-v/fileAnalysis/delete [post] @@ -109,7 +115,7 @@ // @Accept json // @Produce json // @Tags 鏈湴鏂囦欢 -// Param reqBody body controllers.SortVo true "鎺掑簭鍙傛暟,鍚戜笂direct=1锛屽悜涓媎irect=2" +// @Param reqBody body controllers.SortVo true "鎺掑簭鍙傛暟,鍚戜笂direct=1锛屽悜涓媎irect=2" // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}" // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}" // @Router /data/api-v/fileAnalysis/sortFile [post] -- Gitblit v1.8.0