From 35a0385bcfa6e6a95af056d784635deeb7e11624 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com>
Date: Mon, 16 Aug 2021 15:05:55 +0800
Subject: [PATCH] 'commit'
---
dsSzxy/.idea/workspace.xml | 6 ---
.../FileReleateController.go | 39 ++++++++++++++++---
2 files changed, 34 insertions(+), 11 deletions(-)
diff --git a/dsSzxy/.idea/workspace.xml b/dsSzxy/.idea/workspace.xml
index 027f1500..024f2452 100644
--- a/dsSzxy/.idea/workspace.xml
+++ b/dsSzxy/.idea/workspace.xml
@@ -7,12 +7,6 @@
-
-
-
-
-
-
diff --git a/dsSzxy/Business/FileRelate/FileRelateController/FileReleateController.go b/dsSzxy/Business/FileRelate/FileRelateController/FileReleateController.go
index 4c660f99..78088dec 100644
--- a/dsSzxy/Business/FileRelate/FileRelateController/FileReleateController.go
+++ b/dsSzxy/Business/FileRelate/FileRelateController/FileReleateController.go
@@ -363,9 +363,18 @@ func delNodeFile(c *gin.Context) {
}
}
-/**
-功能:获取指定结点下的文件列表
-*/
+// @Summary 获取指定结点下的文件列表
+// @Description 获取指定结点下的文件列表
+// @Tags 文件系统管理
+// @Accept application/x-www-form-urlencoded
+// @Produce json
+// @Param identity_id formData string true "上传人身份ID"
+// @Param person_id formData string true "上传人ID"
+// @Param node_id formData string true "结点ID"
+// @Success 200 {object} Model.Res
+// @X-IntRangeLimit [{"identity_id":"5"},{"person_id":"1,999999999999"}]
+// @X-EmptyLimit ["node_id"]
+// @Router /dsSzxy/fileRelate/GetFileList [get]
func GetFileList(c *gin.Context) {
identityId := CommonUtil.ConvertStringToInt32(c.PostForm("identity_id"))
personId := CommonUtil.ConvertStringToInt32(c.PostForm("person_id"))
@@ -379,7 +388,16 @@ func GetFileList(c *gin.Context) {
})
}
-//获取指定树型结构下的子目录(同步)
+// @Summary 获取指定树型结构下的子目录(同步)
+// @Description 获取指定树型结构下的子目录(同步)
+// @Tags 文件系统管理
+// @Accept application/x-www-form-urlencoded
+// @Produce json
+// @Param identity_id formData string true "上传人身份ID"
+// @Param person_id formData string true "上传人ID"
+// @Success 200 {object} Model.Res
+// @X-IntRangeLimit [{"identity_id":"5"},{"person_id":"1,999999999999"}]
+// @Router /dsSzxy/fileRelate/GetSyncTree [get]
func GetSyncTree(c *gin.Context) {
identityId := CommonUtil.ConvertStringToInt32(c.PostForm("identity_id"))
personId := CommonUtil.ConvertStringToInt32(c.PostForm("person_id"))
@@ -390,7 +408,18 @@ func GetSyncTree(c *gin.Context) {
})
}
-//获取指定树型结构下的子目录(异步)
+// @Summary 获取指定树型结构下的子目录(异步)
+// @Description 获取指定树型结构下的子目录(异步)
+// @Tags 文件系统管理
+// @Accept application/x-www-form-urlencoded
+// @Produce json
+// @Param identity_id formData string true "上传人身份ID"
+// @Param person_id formData string true "上传人ID"
+// @Param node_id formData string true "结点ID"
+// @Success 200 {object} Model.Res
+// @X-IntRangeLimit [{"identity_id":"5"},{"person_id":"1,999999999999"}]
+// @X-EmptyLimit ["node_id"]
+// @Router /dsSzxy/fileRelate/GetAsyncTree [get]
func GetAsyncTree(c *gin.Context) {
identityId := CommonUtil.ConvertStringToInt32(c.PostForm("identity_id"))
personId := CommonUtil.ConvertStringToInt32(c.PostForm("person_id"))