liujiandao
2024-04-19 f4a3813202da0450f3444bef6cbb141141302680
考勤导入
3个文件已修改
498 ■■■■■ 已修改文件
docs/docs.go 188 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 188 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 122 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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": {
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": {
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