zhangqian
2023-11-09 9852e9aa54408c29e05dbcd603a10ffc09acd40b
docs/swagger.yaml
@@ -113,11 +113,13 @@
  constvar.PlcStartAddressValueType:
    enum:
    - string
    - int
    - int16
    - int32
    type: string
    x-enum-varnames:
    - PlcStartAddressValueTypeString
    - PlcStartAddressValueTypeInt
    - PlcStartAddressValueTypeInt16
    - PlcStartAddressValueTypeInt32
  constvar.ProblemCode:
    enum:
    - service
@@ -454,6 +456,12 @@
      updatedAt:
        type: string
    type: object
  request.DeviceConfig:
    properties:
      needSetProcessParams:
        description: 是否需要设置工艺参数
        type: boolean
    type: object
  request.GetProductProgress:
    properties:
      channel:
@@ -541,6 +549,13 @@
      updatedAt:
        type: string
    type: object
  response.Device:
    properties:
      deviceID:
        type: string
      deviceName:
        type: string
    type: object
  response.DeviceListResponse:
    properties:
      clusterNodeQuantity:
@@ -552,10 +567,10 @@
      currentDeviceID:
        description: 当前选定的生产设备
        type: string
      deviceIDList:
      deviceList:
        description: 生产设备id列表
        items:
          type: string
          $ref: '#/definitions/response.Device'
        type: array
      systemDeviceID:
        description: 工控机设备ID
@@ -753,6 +768,25 @@
      summary: 更新plc配置
      tags:
      - Config
  /v1/device/config:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.DeviceConfig'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 设置设备一些配置
      tags:
      - 设备
  /v1/device/list:
    get:
      produces:
@@ -990,9 +1024,6 @@
  /v1/task/get:
    get:
      parameters:
      - in: query
        name: deviceID
        type: string
      - description: 页码
        in: query
        name: page