From 8b88bcc370b0b2e22fbbf872c2c460fe2a208181 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 25 十一月 2023 16:44:23 +0800
Subject: [PATCH] 报工添加和列表查询接口

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

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 4f8b695..68b35f7 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -180,6 +180,16 @@
       msg:
         type: string
     type: object
+  contextx.ResponseList:
+    properties:
+      code:
+        type: integer
+      data: {}
+      msg:
+        type: string
+      total:
+        type: integer
+    type: object
   model.DevicePlc:
     properties:
       address:
@@ -434,6 +444,41 @@
       updatedAt:
         type: string
     type: object
+  model.ReportWork:
+    properties:
+      channel:
+        description: 閫氶亾
+        type: integer
+      createdAt:
+        type: string
+      deletedAt:
+        type: string
+      deviceId:
+        type: string
+      deviceName:
+        type: string
+      endTime:
+        type: integer
+      id:
+        type: integer
+      procedureId:
+        type: string
+      proceduresId:
+        description: procedures琛ㄧ殑id
+        type: integer
+      startTime:
+        type: integer
+      updatedAt:
+        type: string
+      workOrderId:
+        type: string
+      workerID:
+        description: 鎶ュ伐浜篿d
+        type: string
+      workerName:
+        description: 鎶ュ伐浜哄鍚�
+        type: string
+    type: object
   problem.CheckResult:
     properties:
       checkResult:
@@ -477,6 +522,36 @@
     - QueryTypeUnFinish
     - QueryTypeToday
     - QueryTypeFinished
+  request.ReportWork:
+    properties:
+      procedureId:
+        description: 宸ュ簭id
+        type: integer
+      reportAmount:
+        description: 鎶ュ伐鏁伴噺
+        type: integer
+      workerID:
+        description: 鎶ュ憡鑰卛d
+        type: string
+    required:
+    - procedureId
+    - reportAmount
+    - workerID
+    type: object
+  request.ReportWorkList:
+    properties:
+      page:
+        description: 椤电爜
+        type: integer
+      pageSize:
+        description: 姣忛〉澶у皬
+        type: integer
+      procedureId:
+        description: 宸ュ簭id
+        type: integer
+    required:
+    - procedureId
+    type: object
   request.SendProcessParams:
     properties:
       procedureId:
@@ -970,6 +1045,51 @@
       summary: 鑾峰彇宸ヨ壓妯″瀷鍒楄〃
       tags:
       - 宸ヨ壓妯″瀷
+  /v1/reportWork/list:
+    get:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.ReportWorkList'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/contextx.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/model.ReportWork'
+                  type: array
+              type: object
+      summary: 鎶ュ伐鍒楄〃
+      tags:
+      - 鎶ュ伐
+  /v1/reportWork/report:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.ReportWork'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 涓婃姤
+      tags:
+      - 鎶ュ伐
   /v1/system/problemList:
     get:
       produces:

--
Gitblit v1.8.0