From 439b8cf9619e6deb6b42182d0f43cc1252fc9d2a Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期一, 15 四月 2024 11:09:41 +0800
Subject: [PATCH] 获取aps人员列表

---
 controllers/operation.go |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/controllers/operation.go b/controllers/operation.go
index 63cfdad..216c091 100644
--- a/controllers/operation.go
+++ b/controllers/operation.go
@@ -1130,3 +1130,21 @@
 	}
 	util.ResponseFormatListWithPage(c, code.Success, records, int(total), params.Page, params.PageSize)
 }
+
+// GetPersonnelList
+// @Tags      鍏ュ簱/鍑哄簱
+// @Summary   鑾峰彇浜哄憳鍒楄〃
+// @Produce   application/json
+// @Param     object  body  request.OperationCondition true  "鍙傛暟"
+// @Success   200 {object} util.ResponseList{data=[]inventory_order.WorkerInfo} "鎴愬姛"
+// @Router    /api-wms/v1/operation/getPersonnelList [get]
+func (slf OperationController) GetPersonnelList(c *gin.Context) {
+	cli := inventory_order.NewInventoryOrderServiceClient(init_client.ApsConn)
+	list, err := cli.GetWorkerList(context.Background(), &inventory_order.GetWorkerListRequest{})
+	if err != nil {
+		util.ResponseFormat(c, code.RequestParamError, "鍐呴儴閿欒")
+		logx.Error("grpc璋冪敤澶辫触, GetPersonnelList err : " + err.Error())
+		return
+	}
+	util.ResponseFormat(c, code.Success, list.List)
+}

--
Gitblit v1.8.0