🐛 Bug fixes

This commit is contained in:
2025-01-26 20:25:14 +08:00
parent 082b8b66ba
commit 84e0e7406a
2 changed files with 6 additions and 6 deletions

View File

@ -12,10 +12,10 @@ type Transaction struct {
Remark string `json:"remark"` // The usage of this transaction
Amount decimal.Decimal `json:"amount" type:"decimal(30,2);"`
Payer *Wallet `json:"payer"` // Who give the money
Payee *Wallet `json:"payee"` // Who get the money
PayerID *uint `json:"payer_id"` // Leave this field as nil means pay from the system
PayeeID *uint `json:"payee_id"` // Leave this field as nil means pay to the system
Payer *Wallet `json:"payer" foreignKey:"PayerID"` // Who give the money
Payee *Wallet `json:"payee" foreignKey:"PayeeID"` // Who get the money
PayerID *uint `json:"payer_id"` // Leave this field as nil means pay from the system
PayeeID *uint `json:"payee_id"` // Leave this field as nil means pay to the system
}
func (v *Transaction) ToTransactionInfo() *proto.TransactionInfo {