refactor: 重构战斗属性和特效应用逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-04-06 03:11:38 +08:00
committed by cnb
parent a16a06e389
commit 40ec827342
9 changed files with 166 additions and 39 deletions

View File

@@ -3,6 +3,9 @@ package admin
import (
"blazing/cool"
"blazing/modules/player/service"
"context"
"github.com/gogf/gf/v2/frame/g"
)
type SignRecordController struct {
@@ -18,3 +21,16 @@ func init() {
},
})
}
type ResetAllReq struct {
g.Meta `path:"/resetAll" method:"POST"`
Authorization string `json:"Authorization" in:"header"`
}
func (c *SignRecordController) ResetAll(ctx context.Context, req *ResetAllReq) (res *cool.BaseRes, err error) {
result, err := service.NewSignService(0).ResetAll()
if err != nil {
return cool.Fail(err.Error()), nil
}
return cool.Ok(result), nil
}