• haoyanbin's avatar
    1 · c624c74a
    haoyanbin authored
    c624c74a
org_player.go 544 Bytes
package router

import (
	"github.com/gin-gonic/gin"
	"go-admin/app/mobile/apis"
)

func init() {
	routerCheckRole = append(routerCheckRole, registerOrgPlayerRouter)
}

// registerOrgPlayerRouter
func registerOrgPlayerRouter(v1 *gin.RouterGroup) {
	api := apis.OrgPlayer{}
	r := v1.Group("/org-player").Use()
	{
		r.GET("", api.GetPage)
		r.GET("/:id", api.Get)
		r.GET("/info/:id", api.GetInfo)
		r.GET("/get-match-season/:id", api.GetOrgMatchSeason)
		r.GET("/evaluate", api.GetOrgMatchEvaluate)
		r.GET("/get-rounds", api.GetOrgRounds)
	}
}