yinbentan
2024-07-12 cdf1e74e60dd3bd214081577f25805ffee921b83
docs/swagger.yaml
@@ -20,16 +20,13 @@
    enum:
    - 1
    - 2
    - 3
    type: integer
    x-enum-comments:
      AllCar: 全车结束
      LeftHalfCar: 左半车
      RightHalfCar: 右半车
    x-enum-varnames:
    - LeftHalfCar
    - RightHalfCar
    - AllCar
  constvar.CheckItem:
    enum:
    - 1
@@ -130,6 +127,17 @@
    - WorkerStatusRest
    - WorkerStatusHoliday
    - WorkerStatusOvertime
  constvar.WorkshopType:
    enum:
    - 1
    - 2
    type: integer
    x-enum-comments:
      Group: 分组信息
      Workshop: 车间信息
    x-enum-varnames:
    - Workshop
    - Group
  gorm.DeletedAt:
    properties:
      time:
@@ -363,7 +371,10 @@
      id:
        type: integer
      market:
        description: 庄口
        description: 庄口名称
        type: string
      marketNumber:
        description: 庄口编号
        type: string
      number:
        description: 编号
@@ -387,8 +398,10 @@
        description: 车组
        type: integer
      workshopName:
        description: 车间名称
        type: string
      workshopNumber:
        description: 车间编号
        type: string
    type: object
  models.FinenessRoundingItem:
@@ -521,6 +534,8 @@
    properties:
      addPeople:
        type: string
      deletedAt:
        $ref: '#/definitions/gorm.DeletedAt'
      employmentTime:
        type: string
      groupNumber:
@@ -586,11 +601,13 @@
  models.WorkshopManage:
    properties:
      carFlag:
        $ref: '#/definitions/constvar.CarFlag'
        type: integer
      createdAt:
        type: string
      deletedAt:
        $ref: '#/definitions/gorm.DeletedAt'
      endCarHalf:
        $ref: '#/definitions/constvar.CarFlag'
      endCarNumber:
        type: integer
      groupNumber:
@@ -599,8 +616,16 @@
        type: integer
      notes:
        type: string
      parentID:
        type: string
      startCarHalf:
        $ref: '#/definitions/constvar.CarFlag'
      startCarNumber:
        type: integer
      type:
        allOf:
        - $ref: '#/definitions/constvar.WorkshopType'
        description: 类型(1车间、2分组)
      updatedAt:
        type: string
      workshopName:
@@ -848,6 +873,46 @@
    - workshopGroup
    - workshopName
    type: object
  request.AddWorkshopManage:
    properties:
      carFlag:
        type: integer
      createdAt:
        type: string
      deletedAt:
        $ref: '#/definitions/gorm.DeletedAt'
      details:
        description: 车间信息
        items:
          $ref: '#/definitions/models.WorkshopManage'
        type: array
      endCarHalf:
        $ref: '#/definitions/constvar.CarFlag'
      endCarNumber:
        type: integer
      groupNumber:
        type: integer
      id:
        type: integer
      notes:
        type: string
      parentID:
        type: string
      startCarHalf:
        $ref: '#/definitions/constvar.CarFlag'
      startCarNumber:
        type: integer
      type:
        allOf:
        - $ref: '#/definitions/constvar.WorkshopType'
        description: 类型(1车间、2分组)
      updatedAt:
        type: string
      workshopName:
        type: string
      workshopNumber:
        type: string
    type: object
  request.ChangeYieldRegister:
    properties:
      createTime:
@@ -985,6 +1050,9 @@
        type: string
      workshopName:
        description: 车间名称
        type: string
      workshopNumber:
        description: 车间编号
        type: string
    type: object
  request.GetYieldRegisterList:
@@ -1151,6 +1219,17 @@
        type: string
      workerId:
        description: 工人ID
        type: string
    type: object
  request.UpdateSalaryReportForms:
    properties:
      amount:
        type: number
      month:
        type: string
      salaryTypeId:
        type: integer
      workerId:
        type: string
    type: object
  request.UpdateWorkerPositionRequest:
@@ -1498,6 +1577,46 @@
      workerId:
        type: string
      workerName:
        type: string
    type: object
  response.WorkshopManage:
    properties:
      carFlag:
        type: integer
      createdAt:
        type: string
      deletedAt:
        $ref: '#/definitions/gorm.DeletedAt'
      details:
        description: 车间信息
        items:
          $ref: '#/definitions/models.WorkshopManage'
        type: array
      endCarHalf:
        $ref: '#/definitions/constvar.CarFlag'
      endCarNumber:
        type: integer
      groupNumber:
        type: integer
      id:
        type: integer
      notes:
        type: string
      parentID:
        type: string
      startCarHalf:
        $ref: '#/definitions/constvar.CarFlag'
      startCarNumber:
        type: integer
      type:
        allOf:
        - $ref: '#/definitions/constvar.WorkshopType'
        description: 类型(1车间、2分组)
      updatedAt:
        type: string
      workshopName:
        type: string
      workshopNumber:
        type: string
    type: object
  util.Response:
@@ -2032,7 +2151,31 @@
                    $ref: '#/definitions/response.SalaryReportForms'
                  type: array
              type: object
      summary: 薪资报表
      summary: 获取薪资报表
      tags:
      - 报表管理
  /api-jl/v1/forms/updateSalaryReportForms:
    post:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalaryReportForms'
      - 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/createMentorInfo:
@@ -2410,6 +2553,34 @@
      summary: 删除字典
      tags:
      - 系统设置/字典
  /api-jl/v1/system/getAutoCode:
    get:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 类型
        in: query
        name: type
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/util.Response'
            - properties:
                data:
                  additionalProperties: true
                  type: object
              type: object
      summary: 获取自动编码
      tags:
      - 系统设置/字典
  /api-jl/v1/system/getCarAndLevel:
    post:
      parameters:
@@ -2599,7 +2770,7 @@
            - properties:
                data:
                  items:
                    $ref: '#/definitions/models.WorkshopManage'
                    $ref: '#/definitions/response.WorkshopManage'
                  type: array
              type: object
      summary: 获取车间管理列表
@@ -2646,17 +2817,17 @@
  /api-jl/v1/system/saveWorkshopManage:
    post:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/models.WorkshopManage'
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddWorkshopManage'
      produces:
      - application/json
      responses: