role_router.go 540 字节
package routers

import (
	"github.com/astaxie/beego"
	"gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/port/beego/controllers"
)

func init() {
	beego.Router("/v1/role/", &controllers.RoleController{}, "POST:CreateRole")
	beego.Router("/v1/role/:roleId", &controllers.RoleController{}, "PUT:UpdateRole")
	beego.Router("/v1/role/:roleId", &controllers.RoleController{}, "GET:GetRole")
	beego.Router("/v1/role/:roleId", &controllers.RoleController{}, "DELETE:DeleteRole")
	beego.Router("/v1/role/", &controllers.RoleController{}, "GET:ListRole")
}