|
|
@@ -0,0 +1,22 @@
|
|
|
+package dao
|
|
|
+
|
|
|
+import (
|
|
|
+ "time"
|
|
|
+ "wails-app/internal/global"
|
|
|
+)
|
|
|
+
|
|
|
+type PaymentRecord struct {
|
|
|
+ global.GVA_MODEL
|
|
|
+ RecordID uint `gorm:"index" json:"record_id"`
|
|
|
+ PaymentMethod string `gorm:"size:20" json:"payment_method"`
|
|
|
+ Amount float64 `json:"amount"`
|
|
|
+ PaidAmount float64 `json:"paid_amount"`
|
|
|
+ ChangeAmount float64 `json:"change_amount"`
|
|
|
+ OperatorID uint `json:"operator_id"`
|
|
|
+ PaidAt time.Time `json:"paid_at"`
|
|
|
+ Remark string `gorm:"size:200" json:"remark"`
|
|
|
+}
|
|
|
+
|
|
|
+func (PaymentRecord) TableName() string {
|
|
|
+ return "payment_record"
|
|
|
+}
|