web_roles_router.go 1.1 KB
package routers

import (
	"github.com/beego/beego/v2/server/web"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/web_client"
)

func init() {
	web.Router("/v1/web/roles/", &web_client.RolesController{}, "Post:RoleAdd")
	web.Router("/v1/web/roles/:roleId", &web_client.RolesController{}, "Put:RoleUpdate")
	web.Router("/v1/web/roles/search", &web_client.RolesController{}, "Post:RoleList")
	web.Router("/v1/web/roles/:roleId", &web_client.RolesController{}, "Get:RoleGet")
	web.Router("/v1/web/roles/role-user/:roleId", &web_client.RolesController{}, "Get:RoleUserInfo")
	web.Router("/v1/web/roles/role-user", &web_client.RolesController{}, "Post:RoleUserAdd")
	web.Router("/v1/web/roles/role-user", &web_client.RolesController{}, "Delete:RoleUserDelete")
	web.Router("/v1/web/roles/role-user/before-edit", &web_client.RolesController{}, "Get:RoleUserBeforeEdit")
	web.Router("/v1/web/roles/role-menu/before-edit", &web_client.RolesController{}, "Get:RoleMenuBeforeEdit")
	web.Router("/v1/web/roles/role-menu/:roleId", &web_client.RolesController{}, "Put:RoleMenuEdit")
}