org_league.go 447 Bytes
Newer Older
haoyanbin's avatar
1  
haoyanbin committed
1 2 3 4
package router

import (
	"github.com/gin-gonic/gin"
haoyanbin's avatar
1  
haoyanbin committed
5
	"go-admin/app/mobile/apis"
haoyanbin's avatar
1  
haoyanbin committed
6 7 8 9 10 11 12
)

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

// registerOrgLeagueRouter
haoyanbin's avatar
haoyanbin committed
13
func registerOrgLeagueRouter(v1 *gin.RouterGroup) {
haoyanbin's avatar
1  
haoyanbin committed
14
	api := apis.OrgLeague{}
haoyanbin's avatar
haoyanbin committed
15
	r := v1.Group("/org-league").Use()
haoyanbin's avatar
1  
haoyanbin committed
16 17 18 19 20 21 22
	{
		r.GET("", api.GetPage)
		r.GET("/:id", api.Get)
		r.POST("", api.Insert)
		r.PUT("/:id", api.Update)
		r.DELETE("", api.Delete)
	}
haoyanbin's avatar
1  
haoyanbin committed
23
}