From f4a3813202da0450f3444bef6cbb141141302680 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 19 四月 2024 16:35:28 +0800
Subject: [PATCH] 考勤导入

---
 docs/swagger.yaml |  122 +++++++++++++
 docs/docs.go      |  188 ++++++++++++++++++++
 docs/swagger.json |  188 ++++++++++++++++++++
 3 files changed, 489 insertions(+), 9 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 46adac4..fa943c2 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -16,6 +16,114 @@
     "host": "{{.Host}}",
     "basePath": "{{.BasePath}}",
     "paths": {
+        "/api-jl/v1/attendance/attendanceInput": {
+            "post": {
+                "produces": [
+                    "application/xlsx"
+                ],
+                "tags": [
+                    "鑰冨嫟绠$悊"
+                ],
+                "summary": "鑰冨嫟瀵煎叆",
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-jl/v1/attendance/deleteAttendanceInfo": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鑰冨嫟绠$悊"
+                ],
+                "summary": "鍒犻櫎鑰冨嫟淇℃伅",
+                "parameters": [
+                    {
+                        "description": "鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.DeleteAttendanceInfo"
+                        }
+                    },
+                    {
+                        "type": "string",
+                        "description": "token",
+                        "name": "Authorization",
+                        "in": "header",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-jl/v1/attendance/getAttendanceList": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鑰冨嫟绠$悊"
+                ],
+                "summary": "鑾峰彇鑰冨嫟鍒楄〃",
+                "parameters": [
+                    {
+                        "description": "鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.GetAttendanceList"
+                        }
+                    },
+                    {
+                        "type": "string",
+                        "description": "token",
+                        "name": "Authorization",
+                        "in": "header",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/util.ResponseList"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/models.AttendanceManage"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
         "/api-jl/v1/fineness/changeYieldRegister": {
             "post": {
                 "produces": [
@@ -678,7 +786,7 @@
                     {
                         "type": "string",
                         "description": "id",
-                        "name": "number",
+                        "name": "id",
                         "in": "path",
                         "required": true
                     },
@@ -1573,7 +1681,7 @@
                     {
                         "type": "string",
                         "description": "id",
-                        "name": "number",
+                        "name": "id",
                         "in": "path",
                         "required": true
                     },
@@ -1608,7 +1716,7 @@
                     {
                         "type": "string",
                         "description": "id",
-                        "name": "number",
+                        "name": "id",
                         "in": "path",
                         "required": true
                     },
@@ -1936,6 +2044,53 @@
                 "valid": {
                     "description": "Valid is true if Time is not NULL",
                     "type": "boolean"
+                }
+            }
+        },
+        "models.AttendanceManage": {
+            "type": "object",
+            "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"
                 }
             }
         },
@@ -2801,6 +2956,17 @@
                 }
             }
         },
+        "request.DeleteAttendanceInfo": {
+            "type": "object",
+            "properties": {
+                "ids": {
+                    "type": "array",
+                    "items": {
+                        "type": "integer"
+                    }
+                }
+            }
+        },
         "request.DynamicsRank": {
             "type": "object",
             "properties": {
@@ -2839,6 +3005,22 @@
                 }
             }
         },
+        "request.GetAttendanceList": {
+            "type": "object",
+            "properties": {
+                "keyword": {
+                    "type": "string"
+                },
+                "page": {
+                    "description": "椤电爜",
+                    "type": "integer"
+                },
+                "pageSize": {
+                    "description": "姣忛〉澶у皬",
+                    "type": "integer"
+                }
+            }
+        },
         "request.GetMentorList": {
             "type": "object",
             "properties": {
diff --git a/docs/swagger.json b/docs/swagger.json
index 5adcd81..d5a3066 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -4,6 +4,114 @@
         "contact": {}
     },
     "paths": {
+        "/api-jl/v1/attendance/attendanceInput": {
+            "post": {
+                "produces": [
+                    "application/xlsx"
+                ],
+                "tags": [
+                    "鑰冨嫟绠$悊"
+                ],
+                "summary": "鑰冨嫟瀵煎叆",
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-jl/v1/attendance/deleteAttendanceInfo": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鑰冨嫟绠$悊"
+                ],
+                "summary": "鍒犻櫎鑰冨嫟淇℃伅",
+                "parameters": [
+                    {
+                        "description": "鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.DeleteAttendanceInfo"
+                        }
+                    },
+                    {
+                        "type": "string",
+                        "description": "token",
+                        "name": "Authorization",
+                        "in": "header",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-jl/v1/attendance/getAttendanceList": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鑰冨嫟绠$悊"
+                ],
+                "summary": "鑾峰彇鑰冨嫟鍒楄〃",
+                "parameters": [
+                    {
+                        "description": "鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.GetAttendanceList"
+                        }
+                    },
+                    {
+                        "type": "string",
+                        "description": "token",
+                        "name": "Authorization",
+                        "in": "header",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/util.ResponseList"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/models.AttendanceManage"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
         "/api-jl/v1/fineness/changeYieldRegister": {
             "post": {
                 "produces": [
@@ -666,7 +774,7 @@
                     {
                         "type": "string",
                         "description": "id",
-                        "name": "number",
+                        "name": "id",
                         "in": "path",
                         "required": true
                     },
@@ -1561,7 +1669,7 @@
                     {
                         "type": "string",
                         "description": "id",
-                        "name": "number",
+                        "name": "id",
                         "in": "path",
                         "required": true
                     },
@@ -1596,7 +1704,7 @@
                     {
                         "type": "string",
                         "description": "id",
-                        "name": "number",
+                        "name": "id",
                         "in": "path",
                         "required": true
                     },
@@ -1924,6 +2032,53 @@
                 "valid": {
                     "description": "Valid is true if Time is not NULL",
                     "type": "boolean"
+                }
+            }
+        },
+        "models.AttendanceManage": {
+            "type": "object",
+            "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"
                 }
             }
         },
@@ -2789,6 +2944,17 @@
                 }
             }
         },
+        "request.DeleteAttendanceInfo": {
+            "type": "object",
+            "properties": {
+                "ids": {
+                    "type": "array",
+                    "items": {
+                        "type": "integer"
+                    }
+                }
+            }
+        },
         "request.DynamicsRank": {
             "type": "object",
             "properties": {
@@ -2827,6 +2993,22 @@
                 }
             }
         },
+        "request.GetAttendanceList": {
+            "type": "object",
+            "properties": {
+                "keyword": {
+                    "type": "string"
+                },
+                "page": {
+                    "description": "椤电爜",
+                    "type": "integer"
+                },
+                "pageSize": {
+                    "description": "姣忛〉澶у皬",
+                    "type": "integer"
+                }
+            }
+        },
         "request.GetMentorList": {
             "type": "object",
             "properties": {
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index baf4f85..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:
@@ -690,6 +721,13 @@
         description: 杞﹂棿缂栫爜
         type: string
     type: object
+  request.DeleteAttendanceInfo:
+    properties:
+      ids:
+        items:
+          type: integer
+        type: array
+    type: object
   request.DynamicsRank:
     properties:
       rankName:
@@ -716,6 +754,17 @@
       sum:
         description: 鍚堣
         type: number
+    type: object
+  request.GetAttendanceList:
+    properties:
+      keyword:
+        type: string
+      page:
+        description: 椤电爜
+        type: integer
+      pageSize:
+        description: 姣忛〉澶у皬
+        type: integer
     type: object
   request.GetMentorList:
     properties:
@@ -1111,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:
@@ -1512,7 +1628,7 @@
       parameters:
       - description: id
         in: path
-        name: number
+        name: id
         required: true
         type: string
       - description: token
@@ -2066,7 +2182,7 @@
       parameters:
       - description: id
         in: path
-        name: number
+        name: id
         required: true
         type: string
       - description: token
@@ -2089,7 +2205,7 @@
       parameters:
       - description: id
         in: path
-        name: number
+        name: id
         required: true
         type: string
       - description: token

--
Gitblit v1.8.0