electricity_bill_calc_service/vo/top_up.go

27 lines
906 B
Go

package vo
import (
"electricity_bill_calc/types"
"github.com/shopspring/decimal"
)
type TopUpCreationForm struct {
Tenement string `json:"tenement"`
Meter string `json:"meter"`
Amount decimal.Decimal `json:"amount"`
}
type TopUpDetailQueryResponse struct {
Id string `json:"id" copier:"TopUpCode"`
Tenement string `json:"tenement"`
TenementName string `json:"tenementName"`
Meter string `json:"meter"`
MeterAddress string `json:"meterAddress"`
ToppedUpAt types.DateTime `json:"toppedUpAt"`
Amount decimal.Decimal `json:"amount"`
PaymentType int16 `json:"paymentType"`
SyncStatus int16 `json:"syncStatus" copier:"SyncStatus"`
CancelledAt *types.DateTime `json:"cancelledAt"` // TODO: 2023.08.11 在查询充值记录的时候发现缺少该字段(已添加)
}