zhangqian
2024-04-28 067650e77790adeb5222b7736649cb5b6b016162
docs/swagger.yaml
@@ -67,6 +67,17 @@
    - DictTypeWorkshop
    - DictTypeColor
    - DictTypeSpec
  constvar.FileTemplateCategory:
    enum:
    - 1
    - 2
    type: integer
    x-enum-comments:
      FileTemplateCategory_Output: 出库
      FileTemplateCategory_Selfmade: 入库-自制
    x-enum-varnames:
    - FileTemplateCategory_Selfmade
    - FileTemplateCategory_Output
  constvar.MiniDictType:
    enum:
    - 1
@@ -535,9 +546,6 @@
        type: integer
      id:
        type: integer
      name:
        description: 车间
        type: string
      startDate:
        description: 开始日期
        type: string
@@ -553,9 +561,15 @@
      workerId:
        description: 工人ID
        type: string
      workshop:
        description: 车间编号
        type: string
      workshopGroup:
        description: 车组
        type: integer
      workshopName:
        description: 车间名称
        type: string
    type: object
  models.WorkshopManage:
    properties:
@@ -803,11 +817,14 @@
        description: 工人ID
        type: string
      workshop:
        description: 车间
        description: 车间编号
        type: string
      workshopGroup:
        description: 车组
        type: integer
      workshopName:
        description: 车间名称
        type: string
    required:
    - endDate
    - endWorkerPosition
@@ -816,6 +833,7 @@
    - workerId
    - workshop
    - workshopGroup
    - workshopName
    type: object
  request.ChangeYieldRegister:
    properties:
@@ -883,6 +901,8 @@
    type: object
  request.GetAttendanceStatistic:
    properties:
      keyword:
        type: string
      month:
        description: 月份
        type: string
@@ -1031,6 +1051,48 @@
          $ref: '#/definitions/request.RankStandard'
        type: array
    type: object
  request.TemplateCategoryRequest:
    properties:
      category:
        $ref: '#/definitions/constvar.FileTemplateCategory'
    type: object
  request.UpdateAttendance:
    properties:
      classes:
        description: 班次
        type: string
      classesEndTime:
        description: 班次下班时间
        type: string
      classesStartTime:
        description: 班次开始时间
        type: string
      date:
        description: 日期
        type: string
      endWorkTime:
        description: 下班打卡时间
        type: string
      overTimeDuration:
        description: 加班时长
        type: number
      startWorkTime:
        description: 上班打卡时间
        type: string
      status:
        allOf:
        - $ref: '#/definitions/constvar.AttendanceStatus'
        description: 状态
      workTypeId:
        description: 工种id
        type: integer
      workerId:
        description: 人员id
        type: string
      workerName:
        description: 人员姓名
        type: string
    type: object
  request.UpdateDict:
    properties:
      dictType:
@@ -1083,11 +1145,14 @@
        description: 工人ID
        type: string
      workshop:
        description: 车间
        description: 车间编号
        type: string
      workshopGroup:
        description: 车组
        type: integer
      workshopName:
        description: 车间名称
        type: string
    required:
    - endDate
    - endWorkerPosition
@@ -1096,6 +1161,7 @@
    - workerId
    - workshop
    - workshopGroup
    - workshopName
    type: object
  request.YieldRegisterCircleInfo:
    properties:
@@ -1243,13 +1309,31 @@
    type: object
  response.AttendanceDetail:
    properties:
      classes:
        description: 班次
        type: string
      classesEndTime:
        description: 班次下班时间
        type: string
      classesStartTime:
        description: 班次开始时间
        type: string
      date:
        description: 日期
        type: integer
      endWorkTime:
        description: 下班打卡时间
        type: string
      startWorkTime:
        description: 上班打卡时间
        type: string
      status:
        allOf:
        - $ref: '#/definitions/constvar.AttendanceStatus'
        description: 状态
      weekDay:
        description: 星期
        type: string
    type: object
  response.AttendanceList:
    properties:
@@ -1283,6 +1367,9 @@
      workType:
        description: 工种
        type: string
      workTypeId:
        description: 工种id
        type: integer
      workerId:
        description: 人员id
        type: string
@@ -1489,6 +1576,25 @@
      summary: 获取考勤统计
      tags:
      - 考勤管理
  /api-jl/v1/attendance/getTemplate:
    post:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.TemplateCategoryRequest'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 获取模版列表
      tags:
      - 考勤管理
  /api-jl/v1/attendance/saveAttendanceRule:
    post:
      parameters:
@@ -1513,6 +1619,30 @@
      summary: 保存加班规则
      tags:
      - 考勤管理
  /api-jl/v1/attendance/updateAttendance:
    post:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateAttendance'
      - 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/fineness/changeYieldRegister:
    post:
      parameters: