From 0f8093693d0cd3b8da71abac95c617aa850f4819 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期一, 22 四月 2024 15:44:55 +0800
Subject: [PATCH] 考勤管理

---
 docs/swagger.yaml |  293 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 287 insertions(+), 6 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 7603dce..fe55a41 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -104,6 +104,37 @@
         description: Valid is true if Time is not NULL
         type: boolean
     type: object
+  models.AttendanceManage:
+    properties:
+      addPeople:
+        type: string
+      classes:
+        type: string
+      classesEndTime:
+        type: string
+      classesStartTime:
+        type: string
+      createTime:
+        type: string
+      createdAt:
+        type: string
+      date:
+        type: string
+      deletedAt:
+        $ref: '#/definitions/gorm.DeletedAt'
+      endWorkTime:
+        type: string
+      id:
+        type: integer
+      startWorkTime:
+        type: string
+      updatedAt:
+        type: string
+      workerId:
+        type: string
+      workerName:
+        type: string
+    type: object
   models.Dict:
     properties:
       createdAt:
@@ -304,6 +335,32 @@
       quantity:
         description: 鏁伴噺
         type: integer
+    type: object
+  models.Mentor:
+    properties:
+      createdAt:
+        type: string
+      creator:
+        type: string
+      days:
+        description: 澶╂暟
+        type: integer
+      deletedAt:
+        $ref: '#/definitions/gorm.DeletedAt'
+      id:
+        type: integer
+      month:
+        description: 鏈堜唤
+        type: string
+      updatedAt:
+        type: string
+      worker:
+        allOf:
+        - $ref: '#/definitions/models.Worker'
+        description: 宸ヤ汉ID
+      workerId:
+        description: 宸ヤ汉ID
+        type: string
     type: object
   models.MiniDict:
     properties:
@@ -634,6 +691,18 @@
         description: 杞︾粍
         type: integer
     type: object
+  request.AddMentorRequest:
+    properties:
+      days:
+        description: 澶╂暟
+        type: integer
+      month:
+        description: 鏈堜唤
+        type: string
+      workerId:
+        description: 宸ヤ汉ID
+        type: string
+    type: object
   request.ChangeYieldRegister:
     properties:
       createTime:
@@ -651,6 +720,13 @@
       workshopNumber:
         description: 杞﹂棿缂栫爜
         type: string
+    type: object
+  request.DeleteAttendanceInfo:
+    properties:
+      ids:
+        items:
+          type: integer
+        type: array
     type: object
   request.DynamicsRank:
     properties:
@@ -679,9 +755,31 @@
         description: 鍚堣
         type: number
     type: object
+  request.GetAttendanceList:
+    properties:
+      keyword:
+        type: string
+      page:
+        description: 椤电爜
+        type: integer
+      pageSize:
+        description: 姣忛〉澶у皬
+        type: integer
+    type: object
+  request.GetMentorList:
+    properties:
+      keyword:
+        type: string
+      page:
+        description: 椤电爜
+        type: integer
+      pageSize:
+        description: 姣忛〉澶у皬
+        type: integer
+    type: object
   request.GetSalaryPlanList:
     properties:
-      keyWord:
+      keyword:
         type: string
       page:
         description: 椤电爜
@@ -692,7 +790,7 @@
     type: object
   request.GetWorkTypeList:
     properties:
-      keyWord:
+      keyword:
         type: string
       page:
         description: 椤电爜
@@ -703,7 +801,7 @@
     type: object
   request.GetWorkerList:
     properties:
-      keyWord:
+      keyword:
         type: string
       page:
         description: 椤电爜
@@ -817,6 +915,20 @@
         type: string
       remark:
         description: 澶囨敞
+        type: string
+    type: object
+  request.UpdateMentorRequest:
+    properties:
+      days:
+        description: 澶╂暟
+        type: integer
+      id:
+        type: integer
+      month:
+        description: 鏈堜唤
+        type: string
+      workerId:
+        description: 宸ヤ汉ID
         type: string
     type: object
   request.YieldRegisterCircleInfo:
@@ -1048,6 +1160,73 @@
 info:
   contact: {}
 paths:
+  /api-jl/v1/attendance/attendanceInput:
+    post:
+      produces:
+      - application/xlsx
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 鑰冨嫟瀵煎叆
+      tags:
+      - 鑰冨嫟绠$悊
+  /api-jl/v1/attendance/deleteAttendanceInfo:
+    delete:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.DeleteAttendanceInfo'
+      - 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/attendance/getAttendanceList:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.GetAttendanceList'
+      - 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.AttendanceManage'
+                  type: array
+              type: object
+      summary: 鑾峰彇鑰冨嫟鍒楄〃
+      tags:
+      - 鑰冨嫟绠$悊
   /api-jl/v1/fineness/changeYieldRegister:
     post:
       parameters:
@@ -1342,12 +1521,114 @@
       summary: 淇濆瓨浜ч噺鐧昏琛�
       tags:
       - 鐢熶骇绠$悊/浜ч噺鐧昏琛�
+  /api-jl/v1/mentor/createMentorInfo:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddMentorRequest'
+      - 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/mentor/deleteMentorInfo/{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/mentor/getMentorList:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.GetMentorList'
+      - 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.Mentor'
+                  type: array
+              type: object
+      summary: 鑾峰彇甯﹀緬淇℃伅鍒楄〃
+      tags:
+      - 甯﹀緬绠$悊
+  /api-jl/v1/mentor/updateMentorInfo:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.UpdateMentorRequest'
+      - 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/salary/deleteSalaryPlanInfo/{id}:
     delete:
       parameters:
       - description: id
         in: path
-        name: number
+        name: id
         required: true
         type: string
       - description: token
@@ -1901,7 +2182,7 @@
       parameters:
       - description: id
         in: path
-        name: number
+        name: id
         required: true
         type: string
       - description: token
@@ -1924,7 +2205,7 @@
       parameters:
       - description: id
         in: path
-        name: number
+        name: id
         required: true
         type: string
       - description: token

--
Gitblit v1.8.0