fix(meter):修正对于表计创建和修改表单中的内容的捕获。

This commit is contained in:
徐涛 2023-06-27 13:18:00 +08:00
parent b4ce754c0d
commit a626869f14

View File

@ -11,7 +11,7 @@ type MeterCreationForm struct {
Address *string `json:"address"`
Ratio decimal.Decimal `json:"ratio"`
Seq int64 `json:"seq"`
MeterType int16 `json:"meterType"`
MeterType int16 `json:"type"`
Building *string `json:"building"`
OnFloor *string `json:"onFloor"`
Area decimal.NullDecimal `json:"area"`
@ -24,7 +24,7 @@ type MeterModificationForm struct {
Seq int64 `json:"seq"`
Ratio decimal.Decimal `json:"ratio"`
Enabled bool `json:"enabled"`
MeterType int16 `json:"meterType"`
MeterType int16 `json:"type"`
Building *string `json:"building"`
OnFloor *string `json:"onFloor"`
Area decimal.NullDecimal `json:"area"`