From 632bef19cd6229014644e4394d43e95c6707d773 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 22 四月 2024 11:49:36 +0800
Subject: [PATCH] 机台信息增删改查接口

---
 docs/swagger.yaml |  219 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 218 insertions(+), 1 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index fe55a41..2e0c19d 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -357,7 +357,7 @@
       worker:
         allOf:
         - $ref: '#/definitions/models.Worker'
-        description: 宸ヤ汉ID
+        description: 宸ヤ汉
       workerId:
         description: 宸ヤ汉ID
         type: string
@@ -473,6 +473,44 @@
       workType:
         type: string
       workTypeId:
+        type: integer
+    type: object
+  models.WorkerPosition:
+    properties:
+      createdAt:
+        type: string
+      creator:
+        type: string
+      deletedAt:
+        $ref: '#/definitions/gorm.DeletedAt'
+      endDate:
+        description: 缁撴潫鏃ユ湡
+        type: string
+      endWorkerPosition:
+        description: 缁撴潫杞﹀彿
+        type: integer
+      id:
+        type: integer
+      name:
+        description: 杞﹂棿
+        type: string
+      startDate:
+        description: 寮�濮嬫棩鏈�
+        type: string
+      startWorkerPosition:
+        description: 寮�濮嬭溅鍙�
+        type: integer
+      updatedAt:
+        type: string
+      worker:
+        allOf:
+        - $ref: '#/definitions/models.Worker'
+        description: 宸ヤ汉
+      workerId:
+        description: 宸ヤ汉ID
+        type: string
+      workshopGroup:
+        description: 杞︾粍
         type: integer
     type: object
   models.WorkshopManage:
@@ -703,6 +741,38 @@
         description: 宸ヤ汉ID
         type: string
     type: object
+  request.AddWorkPositionRequest:
+    properties:
+      endDate:
+        description: 缁撴潫鏃ユ湡
+        type: string
+      endWorkerPosition:
+        description: 缁撴潫杞﹀彿
+        type: integer
+      startDate:
+        description: 寮�濮嬫棩鏈�
+        type: string
+      startWorkerPosition:
+        description: 寮�濮嬭溅鍙�
+        type: integer
+      workerId:
+        description: 宸ヤ汉ID
+        type: string
+      workshop:
+        description: 杞﹂棿
+        type: string
+      workshopGroup:
+        description: 杞︾粍
+        type: integer
+    required:
+    - endDate
+    - endWorkerPosition
+    - startDate
+    - startWorkerPosition
+    - workerId
+    - workshop
+    - workshopGroup
+    type: object
   request.ChangeYieldRegister:
     properties:
       createTime:
@@ -800,6 +870,17 @@
         type: integer
     type: object
   request.GetWorkerList:
+    properties:
+      keyword:
+        type: string
+      page:
+        description: 椤电爜
+        type: integer
+      pageSize:
+        description: 姣忛〉澶у皬
+        type: integer
+    type: object
+  request.GetWorkerPositionList:
     properties:
       keyword:
         type: string
@@ -930,6 +1011,40 @@
       workerId:
         description: 宸ヤ汉ID
         type: string
+    type: object
+  request.UpdateWorkerPositionRequest:
+    properties:
+      endDate:
+        description: 缁撴潫鏃ユ湡
+        type: string
+      endWorkerPosition:
+        description: 缁撴潫杞﹀彿
+        type: integer
+      id:
+        type: integer
+      startDate:
+        description: 寮�濮嬫棩鏈�
+        type: string
+      startWorkerPosition:
+        description: 寮�濮嬭溅鍙�
+        type: integer
+      workerId:
+        description: 宸ヤ汉ID
+        type: string
+      workshop:
+        description: 杞﹂棿
+        type: string
+      workshopGroup:
+        description: 杞︾粍
+        type: integer
+    required:
+    - endDate
+    - endWorkerPosition
+    - startDate
+    - startWorkerPosition
+    - workerId
+    - workshop
+    - workshopGroup
     type: object
   request.YieldRegisterCircleInfo:
     properties:
@@ -2333,4 +2448,106 @@
       summary: 鏇存柊浜哄憳淇℃伅
       tags:
       - 鍛樺伐绠$悊/鍛樺伐淇℃伅
+  /api-jl/v1/workerPosition/createWorkerPositionInfo:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddWorkPositionRequest'
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 鍒涘缓鏈哄彴淇℃伅
+      tags:
+      - 鏈哄彴绠$悊
+  /api-jl/v1/workerPosition/deleteWorkerPositionInfo/{id}:
+    delete:
+      parameters:
+      - description: id
+        in: path
+        name: id
+        required: true
+        type: string
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 鍒犻櫎鏈哄彴淇℃伅
+      tags:
+      - 鏈哄彴绠$悊
+  /api-jl/v1/workerPosition/getWorkerPositionList:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.GetWorkerPositionList'
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/util.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/models.WorkerPosition'
+                  type: array
+              type: object
+      summary: 鑾峰彇鏈哄彴淇℃伅鍒楄〃
+      tags:
+      - 鏈哄彴绠$悊
+  /api-jl/v1/workerPosition/updateWorkerPositionInfo:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.UpdateWorkerPositionRequest'
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 鏇存柊鏈哄彴淇℃伅
+      tags:
+      - 鏈哄彴绠$悊
 swagger: "2.0"

--
Gitblit v1.8.0