19 lines
394 B
Go
19 lines
394 B
Go
|
package user
|
||
|
|
||
|
import (
|
||
|
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
type UserRouter struct{}
|
||
|
|
||
|
func (s *UserRouter) InitUserRouter(Router *gin.RouterGroup, RouterPub *gin.RouterGroup) {
|
||
|
_ = RouterPub
|
||
|
router := Router.Group("user").Use(middleware.OperationRecord())
|
||
|
|
||
|
{
|
||
|
router.GET("getUserById", userApi.GetUserById) // 获取玩家信息
|
||
|
}
|
||
|
|
||
|
}
|