fix(#5):修复为前端下列表记提供的接口

This commit is contained in:
2023-08-08 15:21:12 +08:00
parent a593666542
commit ed5a3f6c0a
5 changed files with 97 additions and 2 deletions

View File

@@ -105,3 +105,24 @@ type ReadingImportRow struct {
Peak decimal.NullDecimal `json:"peak" excel:"peak"`
Valley decimal.NullDecimal `json:"valley" excel:"valley"`
}
type ReadAbleMeter struct {
CreatedAt types.DateTime `json:"createdAt" db:"created_at"`
LastModifiedAt types.DateTime `json:"lastModifiedAt" db:"last_modified_at"`
Code string `json:"code" db:"code"`
Park string `json:"parkId" db:"park_id"`
Address *string `json:"address" db:"address"`
Ratio decimal.Decimal `json:"ratio" db:"ratio"`
Seq int64 `json:"seq" db:"seq"`
Enabled bool `json:"enabled" db:"enabled"`
MeterType int16 `json:"type" db:"meter_type"`
Building *string `json:"building" db:"building"`
OnFloor *string `json:"onFloor" db:"on_floor" `
Area decimal.NullDecimal `json:"area" db:"area"`
AttachedAt *types.DateTime `json:"attachedAt" db:"attached_at"`
DetachedAt *types.DateTime `json:"detachedAt" db:"detached_at"`
DisplayRatio decimal.Decimal `db:"display_ratio"`
BuildingName *string `db:"building_name"`
}