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.
36 lines
1.9 KiB
36 lines
1.9 KiB
package grantsystempower
|
|
|
|
import (
|
|
"appPlatform/api/version1"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// 权力配置
|
|
func (a *ApiRouter) RouterGroupPc(router *gin.RouterGroup) {
|
|
apiRouter := router.Group("grant")
|
|
|
|
var methodBinding = version1.AppApiEntry.GranSystemPowerApi
|
|
{
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
apiRouter.POST("get_post_grant_powers", methodBinding.GetPostGrantPowers) //获取岗位已配置的权限
|
|
apiRouter.POST("get_role_grant_powers", methodBinding.GetRoleGrantPowers) //获取角色已配置的权限
|
|
apiRouter.POST("gainAppList", methodBinding.GainAppList) //不分类别的自定义App列表
|
|
apiRouter.POST("gainAppTableList", methodBinding.GainAppTableList) //获取对应App下边的表单
|
|
apiRouter.POST("setpAppTableForms", methodBinding.SetpAppTableForm) //提交APp单一表单权限
|
|
apiRouter.POST("gainAppTableListNew", methodBinding.GainAppTableListNew) //获取对应App下边的表单
|
|
apiRouter.POST("gainAppEmpowerPower", methodBinding.GainAppEmpowerPower) //获取对应App下边的菜单
|
|
|
|
apiRouter.POST("appInitAuthorization", methodBinding.AppInitAuthorization) //初始化应用授权选项
|
|
|
|
apiRouter.POST("tabsAuthorizationMode", methodBinding.TabsAuthorizationMode) //选项卡App授权模式
|
|
|
|
apiRouter.POST("getAppGroupo", methodBinding.GetAppGroupo) //初始化v选项卡App双轴
|
|
apiRouter.POST("getGroupAppList", methodBinding.GetGroupAppList) //根据分组获取App列表
|
|
apiRouter.POST("getAppMenuList", methodBinding.GetAppMenuList) //获取app菜单
|
|
|
|
apiRouter.POST("appGroupPowerConfig", methodBinding.AppGroupPowerConfig) //分组授权
|
|
apiRouter.POST("appPowerConfig", methodBinding.AppPowerConfig) //写入App及相关菜单权限
|
|
}
|
|
}
|
|
|