From 6c8fc638919e5bf778f47f4d2be188717b7de23b Mon Sep 17 00:00:00 2001
From: lishihai <dslsh@dscom>
Date: 星期六, 29 六月 2024 17:51:54 +0800
Subject: [PATCH] 概述->业务类型->按仓库Ids筛选->BUG REPORT
---
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(¶ms); 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