🐛 Bug fixes
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user