1234567891011121314151617 |
- package eventmodels
- // 资产变动事件
- type AssetsEventContent struct {
- UserBasic
- EventBasic
- OperationType string `json:"operation_type"` // 操作类型 增加:increase;减少:decrease
- Currency string `json:"currency"` // 货币类型
- Reason string `json:"reason"` // 变动原因
- BeforeBalance int64 `json:"before_balance"` // 变动前余额
- Amount int64 `json:"amount"` // 变动金额
- AfterBalance int64 `json:"after_balance"` // 变动后余额
- }
- func (e *AssetsEventContent) EventName() string {
- return "AssetsChange"
- }
|