2025-06-22 16:51:01 +08:00
|
|
|
package gameUser
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
|
|
|
type GameUserRouter struct{}
|
|
|
|
|
|
|
|
func (s *GameUserRouter) InitGameUserRouter(Router *gin.RouterGroup, RouterPub *gin.RouterGroup) {
|
|
|
|
_ = RouterPub
|
|
|
|
router := Router.Group("gameUser").Use(middleware.OperationRecord())
|
|
|
|
|
|
|
|
{
|
2025-06-22 17:35:19 +08:00
|
|
|
router.PUT("getUserById", gameUserApi.GetUserById) // 获取玩家信息
|
|
|
|
router.PUT("getAccountByUid", gameUserApi.GetAccountByUid) // 获取玩家帐号信息
|
2025-06-23 01:23:27 +08:00
|
|
|
router.PUT("addUserRes", gameUserApi.AddUserRes) // 添加玩家资源
|
2025-06-22 16:51:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|