role_router.go 516 字节
package routers

import (
	"github.com/astaxie/beego"
	"github.com/tiptok/godevp/pkg/port/beego/controllers"
)

func init() {
	beego.Router("/v1/role/", &controllers.RoleController{}, "Post:CreateRole")
	beego.Router("/v1/role/:Id", &controllers.RoleController{}, "Put:UpdateRole")
	beego.Router("/v1/role/:Id", &controllers.RoleController{}, "Get:GetRole")
	beego.Router("/v1/role/:Id", &controllers.RoleController{}, "Delete:RemoveRole")
	beego.Router("/v1/role/", &controllers.RoleController{}, "Get:ListRole")
}