This commit is contained in:
aozhiwei 2024-11-10 12:53:08 +08:00
parent 3b4659239d
commit 4a78275955
2 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,9 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
if user.Dice <= 0 {
f5.RspErr(c, 1, "dice not enough")
return
}
if err := user.DecDice(1); err != nil {
}
rspObj := struct {
vo.BaseVo

View File

@ -51,3 +51,7 @@ func (this *User) Create() error {
}
return nil
}
func (this *User) DecDice(num int32) error {
return nil
}