From ceeb6be3ca049ce1301b49a1f695da2c4151e3de Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期五, 12 四月 2024 16:11:15 +0800 Subject: [PATCH] 添加落丝桶数选中字段 --- controllers/request/yield_register_request.go | 3 + models/yield_register.go | 3 + docs/swagger.yaml | 15 +++++++ docs/docs.go | 21 ++++++++++ docs/swagger.json | 21 ++++++++++ 5 files changed, 63 insertions(+), 0 deletions(-) diff --git a/controllers/request/yield_register_request.go b/controllers/request/yield_register_request.go index 5da71e9..066b152 100644 --- a/controllers/request/yield_register_request.go +++ b/controllers/request/yield_register_request.go @@ -29,6 +29,9 @@ FallingSilkBucketOne decimal.Decimal `json:"fallingSilkBucketOne"` //钀戒笣妗舵暟1 FallingSilkBucketTwo decimal.Decimal `json:"fallingSilkBucketTwo"` //钀戒笣妗舵暟2 FallingSilkBucketThree decimal.Decimal `json:"fallingSilkBucketThree"` //钀戒笣妗舵暟3 + SelectOne bool `json:"selectOne"` //钀戒笣妗舵暟1閫変腑 + SelectTwo bool `json:"selectTwo"` //钀戒笣妗舵暟2閫変腑 + SelectThree bool `json:"selectThree"` //钀戒笣妗舵暟3閫変腑 TheorySilkAmount decimal.Decimal `json:"theorySilkAmount"` //鐞嗚涓濋噺 HourYield decimal.Decimal `json:"hourYield"` //鍙版椂浜ч噺 OneBack string `json:"oneBack"` //绗竴鍥� diff --git a/docs/docs.go b/docs/docs.go index 77bc7c2..2e1946a 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1613,6 +1613,15 @@ "record": { "type": "number" }, + "selectOne": { + "type": "boolean" + }, + "selectThree": { + "type": "boolean" + }, + "selectTwo": { + "type": "boolean" + }, "spec": { "type": "string" }, @@ -2121,6 +2130,18 @@ "description": "鐢熶骇鐢ㄦ椂", "type": "number" }, + "selectOne": { + "description": "钀戒笣妗舵暟1閫変腑", + "type": "boolean" + }, + "selectThree": { + "description": "钀戒笣妗舵暟3閫変腑", + "type": "boolean" + }, + "selectTwo": { + "description": "钀戒笣妗舵暟2閫変腑", + "type": "boolean" + }, "spec": { "description": "瑙勬牸", "type": "string" diff --git a/docs/swagger.json b/docs/swagger.json index 95ce659..32e9d1c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1601,6 +1601,15 @@ "record": { "type": "number" }, + "selectOne": { + "type": "boolean" + }, + "selectThree": { + "type": "boolean" + }, + "selectTwo": { + "type": "boolean" + }, "spec": { "type": "string" }, @@ -2109,6 +2118,18 @@ "description": "鐢熶骇鐢ㄦ椂", "type": "number" }, + "selectOne": { + "description": "钀戒笣妗舵暟1閫変腑", + "type": "boolean" + }, + "selectThree": { + "description": "钀戒笣妗舵暟3閫変腑", + "type": "boolean" + }, + "selectTwo": { + "description": "钀戒笣妗舵暟2閫変腑", + "type": "boolean" + }, "spec": { "description": "瑙勬牸", "type": "string" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index ac8304c..434f815 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -358,6 +358,12 @@ type: string record: type: number + selectOne: + type: boolean + selectThree: + type: boolean + selectTwo: + type: boolean spec: type: string theorySilkAmount: @@ -710,6 +716,15 @@ record: description: 鐢熶骇鐢ㄦ椂 type: number + selectOne: + description: 钀戒笣妗舵暟1閫変腑 + type: boolean + selectThree: + description: 钀戒笣妗舵暟3閫変腑 + type: boolean + selectTwo: + description: 钀戒笣妗舵暟2閫変腑 + type: boolean spec: description: 瑙勬牸 type: string diff --git a/models/yield_register.go b/models/yield_register.go index 8111b1e..8508d60 100644 --- a/models/yield_register.go +++ b/models/yield_register.go @@ -30,6 +30,9 @@ FallingSilkBucketOne decimal.Decimal `json:"fallingSilkBucketOne" gorm:"type:decimal(12,2);comment:钀戒笣妗舵暟1"` FallingSilkBucketTwo decimal.Decimal `json:"fallingSilkBucketTwo" gorm:"type:decimal(12,2);comment:钀戒笣妗舵暟2"` FallingSilkBucketThree decimal.Decimal `json:"fallingSilkBucketThree" gorm:"type:decimal(12,2);comment:钀戒笣妗舵暟3"` + SelectOne bool `json:"selectOne" gorm:"type:int(1);comment:钀戒笣妗舵暟1閫変腑"` + SelectTwo bool `json:"selectTwo" gorm:"type:int(1);comment:钀戒笣妗舵暟2閫変腑"` + SelectThree bool `json:"selectThree" gorm:"type:int(1);comment:钀戒笣妗舵暟3閫変腑"` TheorySilkAmount decimal.Decimal `json:"theorySilkAmount" gorm:"type:decimal(12,2);comment:鐞嗚涓濋噺"` HourYield decimal.Decimal `json:"hourYield" gorm:"type:decimal(12,2);comment:鍙版椂浜ч噺"` OneBack string `json:"oneBack" gorm:"type:varchar(255);comment:绗竴鍥�"` -- Gitblit v1.8.0