| | |
| | | msg: |
| | | type: string |
| | | type: object |
| | | model.DevicePlc: |
| | | properties: |
| | | address: |
| | | type: string |
| | | brand: |
| | | type: string |
| | | details: |
| | | items: |
| | | $ref: '#/definitions/model.DevicePlcAddress' |
| | | type: array |
| | | frequency: |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | isOpen: |
| | | type: boolean |
| | | method: |
| | | type: string |
| | | port: |
| | | type: integer |
| | | portName: |
| | | type: string |
| | | type: object |
| | | model.DevicePlcAddress: |
| | | properties: |
| | | fieldName: |
| | | description: 对应系统字段 |
| | | type: string |
| | | length: |
| | | description: 数据长度 |
| | | type: integer |
| | | startAddress: |
| | | description: 数据起始地址 |
| | | type: integer |
| | | type: |
| | | description: 数据类型 |
| | | type: string |
| | | type: object |
| | | model.NetConfig: |
| | | properties: |
| | | dns: |
| | |
| | | name: |
| | | type: string |
| | | type: object |
| | | request.UpdatePlc: |
| | | properties: |
| | | address: |
| | | type: string |
| | | brand: |
| | | type: string |
| | | details: |
| | | items: |
| | | $ref: '#/definitions/model.DevicePlcAddress' |
| | | type: array |
| | | frequency: |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | isOpen: |
| | | type: boolean |
| | | method: |
| | | type: string |
| | | port: |
| | | type: integer |
| | | portName: |
| | | type: string |
| | | type: object |
| | | request.UpdatePlcBrand: |
| | | properties: |
| | | id: |
| | |
| | | info: |
| | | contact: {} |
| | | paths: |
| | | /v1/cc/nn: |
| | | get: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/model.NetConfig' |
| | | type: array |
| | | type: object |
| | | summary: 获取网络配置 |
| | | tags: |
| | | - Config |
| | | put: |
| | | parameters: |
| | | - description: 参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/model.NetConfig' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/response.ProcessParams' |
| | | type: array |
| | | type: object |
| | | summary: 设置网络配置 |
| | | tags: |
| | | - Config |
| | | /v1/config/net: |
| | | get: |
| | | produces: |
| | |
| | | summary: 获取网络配置 |
| | | tags: |
| | | - Config |
| | | put: |
| | | post: |
| | | parameters: |
| | | - description: 参数 |
| | | in: body |
| | |
| | | summary: 设置网络配置 |
| | | tags: |
| | | - Config |
| | | /v1/config/plc: |
| | | get: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/model.DevicePlc' |
| | | type: object |
| | | summary: 获取plc配置 |
| | | tags: |
| | | - Config |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.UpdatePlc' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 更新plc配置 |
| | | tags: |
| | | - Config |
| | | /v1/plcBrand/add: |
| | | post: |
| | | parameters: |