zhangqian
2024-04-19 61bebbdb99d6c1ca95236cc567a9718bc5f5b1eb
docs/swagger.yaml
@@ -305,6 +305,32 @@
        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:
      id:
@@ -634,6 +660,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:
@@ -679,9 +717,20 @@
        description: 合计
        type: number
    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 +741,7 @@
    type: object
  request.GetWorkTypeList:
    properties:
      keyWord:
      keyword:
        type: string
      page:
        description: 页码
@@ -703,7 +752,7 @@
    type: object
  request.GetWorkerList:
    properties:
      keyWord:
      keyword:
        type: string
      page:
        description: 页码
@@ -817,6 +866,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:
@@ -1342,6 +1405,108 @@
      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: