38 lines
2.8 KiB
Go
38 lines
2.8 KiB
Go
package model
|
|
|
|
import "github.com/shopspring/decimal"
|
|
|
|
type ReportSummary struct {
|
|
ReportId string `xorm:"varchar(120) pk not null" json:"-"`
|
|
Overall decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"overall"`
|
|
OverallFee decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"overallFee"`
|
|
OverallPrice decimal.Decimal `xorm:"numeric(16,8)" json:"overallPrice"`
|
|
Critical decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"critical"`
|
|
CriticalFee decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"criticalFee"`
|
|
CriticalPrice decimal.NullDecimal `xorm:"numeric(16,8)" json:"criticalPrice"`
|
|
Peek decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"peak"`
|
|
PeekFee decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"peakFee"`
|
|
PeekPrice decimal.NullDecimal `xorm:"numeric(16,8)" json:"peakPrice"`
|
|
Flat decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"flat"`
|
|
FlatFee decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"flatFee"`
|
|
FlatPrice decimal.NullDecimal `xorm:"numeric(16,8)" json:"flatPrice"`
|
|
Valley decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"valley"`
|
|
ValleyFee decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"valleyFee"`
|
|
ValleyPrice decimal.NullDecimal `xorm:"numeric(16,8)" json:"valleyPrice"`
|
|
Loss decimal.NullDecimal `xorm:"numeric(14,2)" json:"loss"`
|
|
LossFee decimal.NullDecimal `xorm:"numeric(16,2)" json:"lossFee"`
|
|
PublicConsumption decimal.NullDecimal `xorm:"numeric(14,2)" json:"publicConsumption"`
|
|
PublicConsumptionFee decimal.NullDecimal `xorm:"numeric(14,2)" json:"publicConsumptionFee"`
|
|
BasicFee decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"basicFee"`
|
|
BasicDilutedPrice decimal.NullDecimal `xorm:"numeric(18,8)" json:"basicDilutedPrice"`
|
|
AdjustFee decimal.Decimal `xorm:"numeric(14,2) not null default 0" json:"adjustFee"`
|
|
AdjustDilutedPrice decimal.NullDecimal `xorm:"numeric(18,8)" json:"adjustDilutedPrice"`
|
|
MaintenanceDilutedPrice decimal.NullDecimal `xorm:"numeric(16,8)" json:"maintencanceDilutedPrice"`
|
|
LossDilutedPrice decimal.NullDecimal `xorm:"numeric(16,8)" json:"lossDilutedPrice"`
|
|
PublicConsumptionDilutedPrice decimal.NullDecimal `xorm:"numeric(16,8)" json:"publicConsumptionDilutedPrice"`
|
|
}
|
|
|
|
func (ReportSummary) TableName() string {
|
|
return "report_summary"
|
|
}
|