zhangqian
2023-08-22 033f3d5caa704c34806f10f135c9bfe918a36760
兼容前端字段类型错误
5个文件已修改
11 ■■■■ 已修改文件
constvar/const.go 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
model/device_plc.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
constvar/const.go
@@ -11,7 +11,8 @@
type PlcStartAddressType string
const (
    PlcStartAddressTypeFinishNumber = "1"
    PlcStartAddressTypeFinishNumber = 1
    PlcStartAddressTypeTotalNumber  = 2
)
const (
docs/docs.go
@@ -576,7 +576,7 @@
            "properties": {
                "fieldName": {
                    "description": "对应系统字段",
                    "type": "string"
                    "type": "integer"
                },
                "length": {
                    "description": "数据长度",
docs/swagger.json
@@ -564,7 +564,7 @@
            "properties": {
                "fieldName": {
                    "description": "对应系统字段",
                    "type": "string"
                    "type": "integer"
                },
                "length": {
                    "description": "数据长度",
docs/swagger.yaml
@@ -94,7 +94,7 @@
    properties:
      fieldName:
        description: 对应系统字段
        type: string
        type: integer
      length:
        description: 数据长度
        type: integer
model/device_plc.go
@@ -29,7 +29,7 @@
        StartAddress int    `json:"startAddress"` // 数据起始地址
        Length       int    `json:"length"`       // 数据长度
        Type         string `json:"type"`         // 数据类型
        FieldName    string `json:"fieldName"`    // 对应系统字段
        FieldName    int    `json:"fieldName"`    // 对应系统字段
    }
    DevicePlcSearch struct {