forked from free-lancers/electricity_bill_calc_service
		
	enhance(model):调整数据结构使其方便迁移。
This commit is contained in:
		| @@ -44,17 +44,17 @@ type ReportSummary struct { | |||||||
| } | } | ||||||
|  |  | ||||||
| type Consumptions struct { | type Consumptions struct { | ||||||
| 	Consumption decimal.NullDecimal `json:"consumption"` | 	Consumption    decimal.NullDecimal `json:"consumption"` | ||||||
| 	Fee         decimal.NullDecimal `json:"fee"` | 	ConsumptionFee decimal.NullDecimal `json:"fee"` | ||||||
| 	Critical    decimal.NullDecimal `json:"critical"` | 	Critical       decimal.NullDecimal `json:"critical"` | ||||||
| 	CriticalFee decimal.NullDecimal `json:"criticalFee"` | 	CriticalFee    decimal.NullDecimal `json:"criticalFee"` | ||||||
| 	Peak        decimal.NullDecimal `json:"peak"` | 	Peak           decimal.NullDecimal `json:"peak"` | ||||||
| 	PeakFee     decimal.NullDecimal `json:"peakFee"` | 	PeakFee        decimal.NullDecimal `json:"peakFee"` | ||||||
| 	Flat        decimal.NullDecimal `json:"flat"` | 	Flat           decimal.NullDecimal `json:"flat"` | ||||||
| 	FlatFee     decimal.NullDecimal `json:"flatFee"` | 	FlatFee        decimal.NullDecimal `json:"flatFee"` | ||||||
| 	Valley      decimal.NullDecimal `json:"valley"` | 	Valley         decimal.NullDecimal `json:"valley"` | ||||||
| 	ValleyFee   decimal.NullDecimal `json:"valleyFee"` | 	ValleyFee      decimal.NullDecimal `json:"valleyFee"` | ||||||
| 	Proportion  decimal.NullDecimal `json:"proportion"` | 	Proportion     decimal.NullDecimal `json:"proportion"` | ||||||
| } | } | ||||||
|  |  | ||||||
| func (s ReportSummary) Validate() (bool, error) { | func (s ReportSummary) Validate() (bool, error) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user