You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
2.0 KiB
40 lines
2.0 KiB
package systempower
|
|
|
|
import (
|
|
"key_performance_indicators/api/version1"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// 权限管理PC端
|
|
func (a *ApiRouter) RouterGroupPc(router *gin.RouterGroup) {
|
|
apiRouter := router.Group("powerpc")
|
|
|
|
var methodBinding = version1.AppApiEntry.JurisdictionpcApi
|
|
{
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
apiRouter.POST("edit_power", methodBinding.EditPower) //编辑权限
|
|
apiRouter.POST("edit_power_new", methodBinding.EditPowerNew) //编辑权限
|
|
apiRouter.POST("edit_role_power_new", methodBinding.EditRolePowerNew) //编辑角色权限
|
|
|
|
//系统
|
|
apiRouter.POST("add_system", methodBinding.AddSystem) //添加应用系统
|
|
apiRouter.POST("system_list", methodBinding.SystemList) //系统列表
|
|
apiRouter.POST("edit_system", methodBinding.EditSystem) //编辑应用系统信息
|
|
apiRouter.POST("edit_state_of_del", methodBinding.EditStateOfDel) //更改状态或删除
|
|
//相关系统菜单
|
|
apiRouter.POST("system_about_menu", methodBinding.SystemAboutMenu) //系统菜单行政组织岗位
|
|
apiRouter.POST("system_about_role_menu", methodBinding.SystemRoleAboutMenu) //系统菜单角色
|
|
|
|
//角色
|
|
apiRouter.POST("add_system_role", methodBinding.AddSystemRole) //系统角色添加
|
|
apiRouter.POST("edit_system_role", methodBinding.EditSystemRole) //系统角色编辑
|
|
apiRouter.POST("system_role_list", methodBinding.SystemRoleList) //系统角色列表
|
|
apiRouter.POST("edit_system_role_state", methodBinding.EditSystemRoleState) //系统角色状态
|
|
apiRouter.POST("role_about_people_list", methodBinding.RoleAboutPeopleList) //角色相关人员
|
|
apiRouter.POST("batch_del_roleman", methodBinding.BatchDeletToRoleAboutMan) //批量删除角色关联人员
|
|
apiRouter.POST("add_role_user", methodBinding.AddRoleUser) //添加角色关联人员
|
|
|
|
}
|
|
}
|
|
|