|
@@ -4,11 +4,12 @@ package eventmodels
|
|
|
type UserRewardEventContent struct {
|
|
|
UserBasic
|
|
|
EventBasic
|
|
|
- Source int `json:"source"` // 奖励来源
|
|
|
- SourceId int `json:"sourceId"`
|
|
|
- AddReward string `json:"add_reward"` // 增加的道具json字符串 eg:[]ItemReward
|
|
|
- SubReward string `json:"sub_reward"` // 减少的道具json字符串 eg:[]ItemReward
|
|
|
- Desc string `json:"desc"` // json字符串
|
|
|
+ Source int `json:"source"` // 奖励来源
|
|
|
+ SourceId int `json:"sourceId"`
|
|
|
+ OperationType string `json:"operation_type"` // 操作类型 范围:constant.OperationTypeStr 增加:increase;减少:decrease
|
|
|
+ AddReward string `json:"add_reward"` // 增加的道具json字符串 eg:[]ItemReward
|
|
|
+ SubReward string `json:"sub_reward"` // 减少的道具json字符串 eg:[]ItemReward
|
|
|
+ Desc string `json:"desc"` // json字符串
|
|
|
}
|
|
|
|
|
|
type ItemReward struct {
|