This commit is contained in:
aozhiwei 2024-07-16 17:52:54 +08:00
parent 10df8e70b8
commit d9bcf821fd
2 changed files with 23 additions and 1 deletions

View File

@ -1,7 +1,9 @@
package ingame
import (
"q5"
"f5"
. "main/global"
"github.com/gin-gonic/gin"
)
@ -31,6 +33,26 @@ func (this *InGameApi) HeroList(c *gin.Context) {
f5.RspErr(c, 401, "params parse error")
return
}
err, heroList := GetCacheMgr().GetIngameHero("")
if err != nil {
f5.RspErr(c, 500, "server internal error")
return
}
f5.DataSetStreamPageQuery(
heroList,
q5.SafeToInt32(reqJson.PageSize),
q5.SafeToInt64(reqJson.Cursor),
func (row interface{}) bool {
return true
},
func (a interface{}, b interface{}) bool {
return true
},
func (p *f5.StreamPagination) {
},
func (row interface{}) {
})
}
func (this *InGameApi) HeroMint(c *gin.Context) {

2
third_party/f5 vendored

@ -1 +1 @@
Subproject commit 5610bc1f758e6b7b7738e4ac4ee492206b26b3e3
Subproject commit a55bc814287f711be731be3a27badd50fd6bfb35