|
|
|
|
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) //系统角色状态
|
|
|
|
|
}
|
|
|
|
|
}
|