ソースを参照

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

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"`
+//}