diff --git a/server/wheelserver/api/v1/activity/activity.go b/server/wheelserver/api/v1/activity/activity.go index 25b3b600..97551074 100644 --- a/server/wheelserver/api/v1/activity/activity.go +++ b/server/wheelserver/api/v1/activity/activity.go @@ -1,6 +1,9 @@ package activity import ( + "main/constant" + "main/common" + "main/vo" "github.com/gin-gonic/gin" ) @@ -8,4 +11,12 @@ type ActivityApi struct { } func (this *ActivityApi) RollDice(c *gin.Context) { + s := c.MustGet(constant.SESSION_KEY).(common.Session) + if s == nil { + return + } + rspObj := struct { + vo.BaseVo + }{} + c.JSON(200, rspObj) }