forked from free-lancers/electricity_bill_calc_service
fix(meter):修正数据库字段映射。
This commit is contained in:
@@ -10,7 +10,7 @@ type MeterDetail struct {
|
||||
Code string `json:"code" db:"code"`
|
||||
Park string `json:"parkId" db:"park_id"`
|
||||
Address *string `json:"address" db:"address"`
|
||||
MeterType int16 `json:"meterType" db:"meter_type"`
|
||||
MeterType int16 `json:"type" db:"meter_type"`
|
||||
Building *string `json:"building" db:"building"`
|
||||
BuildingName *string `json:"buildingName" db:"building_name"`
|
||||
OnFloor *string `json:"onFloor" db:"on_floor" `
|
||||
@@ -31,7 +31,7 @@ type MeterRelation struct {
|
||||
SlaveMeter string `json:"slaveMeterId" db:"slave_meter_id"`
|
||||
EstablishedAt types.DateTime `json:"establishedAt"`
|
||||
SuspendedAt *types.DateTime `json:"suspendedAt"`
|
||||
RevokeAt *types.DateTime `json:"revokeAt"`
|
||||
RevokedAt *types.DateTime `json:"revokedAt"`
|
||||
}
|
||||
|
||||
type MeterSynchronization struct {
|
||||
|
Reference in New Issue
Block a user