先锋赛季账号汇总数据接口

This commit is contained in:
2025-02-26 11:43:04 +08:00
parent 92fbd8dfd0
commit 2ca1138fbb
9 changed files with 308 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
package task
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"nova_task/internal/logic/task"
"nova_task/internal/svc"
)
// 赛季奖励数据
func PioneerRewardHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := task.NewPioneerRewardLogic(r.Context(), svcCtx)
resp, err := l.PioneerReward()
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}