1
This commit is contained in:
parent
f952666e0d
commit
50842ca3b9
@ -49,5 +49,8 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
|
|||||||
vo.BaseVo
|
vo.BaseVo
|
||||||
Point int32 `json:"point"`
|
Point int32 `json:"point"`
|
||||||
}{}
|
}{}
|
||||||
|
rspObj.SideEffect = new(vo.SideEffect)
|
||||||
|
rspObj.SideEffect.User = new(vo.User)
|
||||||
|
rspObj.SideEffect.User.FromModel(user)
|
||||||
c.JSON(200, rspObj)
|
c.JSON(200, rspObj)
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ type BaseVo struct {
|
|||||||
ErrCode int32 `json:"errcode"`
|
ErrCode int32 `json:"errcode"`
|
||||||
ErrMsg string `json:"errcmsg"`
|
ErrMsg string `json:"errcmsg"`
|
||||||
Award *Award `json:"award"`
|
Award *Award `json:"award"`
|
||||||
SideEffect *Award `json:"side_effect"`
|
SideEffect *SideEffect `json:"side_effect"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AwardItem struct {
|
type AwardItem struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user