From 1003bcc738159a9dd0dbc0934279ed94a1a72535 Mon Sep 17 00:00:00 2001
From: yinbentan <yinbentan@live.com>
Date: 星期五, 28 六月 2024 16:31:30 +0800
Subject: [PATCH] swagger信息重新生产

---
 controllers/department.go |   52 ++++++++++++++++++++++++++++------------------------
 1 files changed, 28 insertions(+), 24 deletions(-)

diff --git a/controllers/department.go b/controllers/department.go
index e214a58..9cb0f8c 100644
--- a/controllers/department.go
+++ b/controllers/department.go
@@ -16,12 +16,13 @@
 type DepartmentController struct{}
 
 // Add
-// @Tags      閮ㄩ棬淇℃伅
-// @Summary   娣诲姞閮ㄩ棬淇℃伅
-// @Produce   application/json
-// @Param     object  body  request.AddDepartment true  "閮ㄩ棬淇℃伅淇℃伅"
-// @Success   200 {object} util.Response "鎴愬姛"
-// @Router    /api-s/v1/organize/department [post]
+//
+//	@Tags		閮ㄩ棬淇℃伅
+//	@Summary	娣诲姞閮ㄩ棬淇℃伅
+//	@Produce	application/json
+//	@Param		object	body		request.AddDepartment	true	"閮ㄩ棬淇℃伅淇℃伅"
+//	@Success	200		{object}	util.Response			"鎴愬姛"
+//	@Router		/api-wms/v1/organize/department [post]
 func (slf DepartmentController) Add(c *gin.Context) {
 	var reqParams request.AddDepartment
 	var params models.Department
@@ -47,12 +48,13 @@
 }
 
 // Update
-// @Tags      閮ㄩ棬淇℃伅
-// @Summary   缂栬緫閮ㄩ棬淇℃伅
-// @Produce   application/json
-// @Param     object  body request.UpdateDepartment true  "閮ㄩ棬淇℃伅淇℃伅"
-// @Success   200 {object} util.Response "鎴愬姛"
-// @Router    /api-s/v1/organize/department/{id} [put]
+//
+//	@Tags		閮ㄩ棬淇℃伅
+//	@Summary	缂栬緫閮ㄩ棬淇℃伅
+//	@Produce	application/json
+//	@Param		object	body		request.UpdateDepartment	true	"閮ㄩ棬淇℃伅淇℃伅"
+//	@Success	200		{object}	util.Response				"鎴愬姛"
+//	@Router		/api-wms/v1/organize/department/{id} [put]
 func (slf DepartmentController) Update(c *gin.Context) {
 	idStr := c.Param("id")
 	if idStr == "0" || idStr == "" {
@@ -136,12 +138,13 @@
 }
 
 // List
-// @Tags      閮ㄩ棬淇℃伅
-// @Summary   鏌ヨ閮ㄩ棬淇℃伅鍒楄〃
-// @Produce   application/json
-// @Param     object  query    request.GetDepartmentList true  "鏌ヨ鍙傛暟"
-// @Success   200   {object}  util.ResponseList{data=[]models.Department}  "鎴愬姛"
-// @Router    /api-s/v1/organize/department [get]
+//
+//	@Tags		閮ㄩ棬淇℃伅
+//	@Summary	鏌ヨ閮ㄩ棬淇℃伅鍒楄〃
+//	@Produce	application/json
+//	@Param		object	query		request.GetDepartmentList					true	"鏌ヨ鍙傛暟"
+//	@Success	200		{object}	util.ResponseList{data=[]models.Department}	"鎴愬姛"
+//	@Router		/api-wms/v1/organize/department [get]
 func (slf DepartmentController) List(c *gin.Context) {
 	var params request.GetDepartmentList
 	if err := c.ShouldBindQuery(&params); err != nil {
@@ -177,12 +180,13 @@
 }
 
 // Delete
-// @Tags      閮ㄩ棬淇℃伅
-// @Summary   缂栬緫閮ㄩ棬淇℃伅
-// @Produce   application/json
-// @Param     object  body request.UpdateDepartment true  "閮ㄩ棬淇℃伅淇℃伅"
-// @Success   200 {object} util.Response "鎴愬姛"
-// @Router    /api-s/v1/organize/department/{id} [delete]
+//
+//	@Tags		閮ㄩ棬淇℃伅
+//	@Summary	缂栬緫閮ㄩ棬淇℃伅
+//	@Produce	application/json
+//	@Param		object	body		request.UpdateDepartment	true	"閮ㄩ棬淇℃伅淇℃伅"
+//	@Success	200		{object}	util.Response				"鎴愬姛"
+//	@Router		/api-wms/v1/organize/department/{id} [delete]
 func (slf DepartmentController) Delete(c *gin.Context) {
 	idStr := c.Param("id")
 	if idStr == "0" || idStr == "" {

--
Gitblit v1.8.0