fix(meterDetail): 增加缺少字段display_ratio
This commit is contained in:
parent
69357f77dd
commit
a34fee8339
|
@ -22,6 +22,7 @@ type MeterDetail struct {
|
||||||
DetachedAt *types.DateTime `json:"detachedAt" db:"detached_at"`
|
DetachedAt *types.DateTime `json:"detachedAt" db:"detached_at"`
|
||||||
CreatedAt types.DateTime `json:"createdAt" db:"created_at"`
|
CreatedAt types.DateTime `json:"createdAt" db:"created_at"`
|
||||||
LastModifiedAt types.DateTime `json:"lastModifiedAt" db:"last_modified_at"`
|
LastModifiedAt types.DateTime `json:"lastModifiedAt" db:"last_modified_at"`
|
||||||
|
DisplayRatio float64 `json:"display_ratio" db:"display_ratio"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MeterRelation struct {
|
type MeterRelation struct {
|
||||||
|
|
|
@ -8,7 +8,6 @@ import (
|
||||||
"electricity_bill_calc/tools"
|
"electricity_bill_calc/tools"
|
||||||
"electricity_bill_calc/tools/serial"
|
"electricity_bill_calc/tools/serial"
|
||||||
"electricity_bill_calc/types"
|
"electricity_bill_calc/types"
|
||||||
|
|
||||||
"github.com/doug-martin/goqu/v9"
|
"github.com/doug-martin/goqu/v9"
|
||||||
_ "github.com/doug-martin/goqu/v9/dialect/postgres"
|
_ "github.com/doug-martin/goqu/v9/dialect/postgres"
|
||||||
"github.com/georgysavva/scany/v2/pgxscan"
|
"github.com/georgysavva/scany/v2/pgxscan"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user