| | |
| | | |
| | | 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 { |
| | |
| | | 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,开启status=1" |
| | | // @Param reqBody body controllers.FileStatusVo true "开启暂停参数,暂停status=0,开启status=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] |
| | |
| | | // @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] |
| | |
| | | // @Accept json |
| | | // @Produce json |
| | | // @Tags 本地文件 |
| | | // Param reqBody body controllers.SortVo true "排序参数,向上direct=1,向下direct=2" |
| | | // @Param reqBody body controllers.SortVo true "排序参数,向上direct=1,向下direct=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] |