浏览代码

修改更新脚本接口返回的数据体

maker 2 年之前
父节点
当前提交
13260a37ac
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      api/v1/task/task_conf.go
  2. 3 3
      model/task/response/upload_file.go

+ 1 - 1
api/v1/task/task_conf.go

@@ -58,7 +58,7 @@ func (b *TaskConfApi) DownloadFile(c *gin.Context) {
 		global.GVA_LOG.Error("查询失败!", zap.Error(err))
 		response.FailWithMessage("查询失败,无对应脚本", c)
 	} else {
-		response.OkWithDetailed(taskRes.DownloadInfoResponse{downloadFile}, "查询成功", c)
+		response.OkWithDetailed(downloadFile, "查询成功", c)
 	}
 
 }

+ 3 - 3
model/task/response/upload_file.go

@@ -16,6 +16,6 @@ type InfoResponse struct {
 	File UploadFileResponse `json:"file"`
 }
 
-type DownloadInfoResponse struct {
-	Info DownloadFile `json:"info"`
-}
+//type DownloadInfoResponse struct {
+//	Info DownloadFile `json:"info"`
+//}