1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-20 16:11:17 +00:00

Fix: Profit logs contain pointer, not strings

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-12-11 19:23:17 +01:00
parent f324361cf8
commit 2f64ab29dc
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -5,19 +5,19 @@ func init() {
}
type ProfitLogEntry struct {
Revenue int64 `sii:"revenue"`
Wage int64 `sii:"wage"`
Maintenance int64 `sii:"maintenance"`
Fuel int64 `sii:"fuel"`
Distance int64 `sii:"distance"`
DistanceOnJob bool `sii:"distance_on_job"`
CargoCount int64 `sii:"cargo_count"`
Cargo string `sii:"cargo"`
SourceCity string `sii:"source_city"`
SourceCompany string `sii:"source_company"`
DestinationCity string `sii:"destination_city"`
DestinationCompany string `sii:"destination_company"`
TimestampDay int64 `sii:"timestamp_day"`
Revenue int64 `sii:"revenue"`
Wage int64 `sii:"wage"`
Maintenance int64 `sii:"maintenance"`
Fuel int64 `sii:"fuel"`
Distance int64 `sii:"distance"`
DistanceOnJob bool `sii:"distance_on_job"`
CargoCount int64 `sii:"cargo_count"`
Cargo Ptr `sii:"cargo"`
SourceCity Ptr `sii:"source_city"`
SourceCompany Ptr `sii:"source_company"`
DestinationCity Ptr `sii:"destination_city"`
DestinationCompany Ptr `sii:"destination_company"`
TimestampDay int64 `sii:"timestamp_day"`
blockName string
}