feat: 重构地图热度信息并添加地图提示功能
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
将地图热度信息从简单的计数器改为包含提示信息的结构体 添加矿物、BOSS、宠物和掉落等提示信息的收集功能 优化地图进入和离开时的计数逻辑
This commit is contained in:
@@ -31,15 +31,20 @@ type TimeMapReq struct {
|
||||
func (this *MapController) TimeMap(ctx context.Context, req *TimeMapReq) (res *cool.BaseRes, err error) {
|
||||
res = &cool.BaseRes{}
|
||||
res.Data = service.NewMapService().GetTimeMap()
|
||||
// re := service.NewMapService().GetTimeMap()
|
||||
// for _, v := range re {
|
||||
// v.
|
||||
|
||||
// }
|
||||
return res, nil
|
||||
}
|
||||
|
||||
type MapTipReq struct {
|
||||
g.Meta `path:"/maptip" method:"GET"`
|
||||
}
|
||||
// type MapTipReq struct {
|
||||
// g.Meta `path:"/maptip" method:"GET"`
|
||||
// }
|
||||
|
||||
func (this *MapController) MapTip(ctx context.Context, req *MapTipReq) (res *cool.BaseRes, err error) {
|
||||
res = &cool.BaseRes{}
|
||||
res.Data = service.NewMapService().GetTimeMap()
|
||||
return res, nil
|
||||
}
|
||||
// func (this *MapController) MapTip(ctx context.Context, req *MapTipReq) (res *cool.BaseRes, err error) {
|
||||
// res = &cool.BaseRes{}
|
||||
// res.Data = service.NewMapService().GetTimeMap()
|
||||
// return res, nil
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user