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.
|
|
|
|
package authenticationroute
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"appPlatform/api/authentication"
|
|
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//实验
|
|
|
|
|
|
|
|
|
|
func (a *ApiRouter) RouterGroup(router *gin.RouterGroup) {
|
|
|
|
|
apiRouter := router.Group("signcode")
|
|
|
|
|
|
|
|
|
|
var methodBinding = authentication.AppApiEntry.SingCodeApi
|
|
|
|
|
{
|
|
|
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
|
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
|
|
|
apiRouter.POST("signcode", methodBinding.SignCode) //验证身份
|
|
|
|
|
apiRouter.POST("haveMyCode", methodBinding.HaveMyCode) //获取身份
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
func (a *RoleApiRouter) RouterGroup(router *gin.RouterGroup) {
|
|
|
|
|
apiRouter := router.Group("permission")
|
|
|
|
|
|
|
|
|
|
var methodBinding = authentication.AppApiEntry.RoleApi
|
|
|
|
|
{
|
|
|
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
|
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
|
|
|
apiRouter.POST("giveRoleGroupTree", methodBinding.GiveRoleGroupTree) //获取角色分组树
|
|
|
|
|
apiRouter.POST("giveRoleTree", methodBinding.GiveRoleTree) //获取角色树
|
|
|
|
|
apiRouter.POST("editRoleCont", methodBinding.EditRoleCont) //编辑角色组
|
|
|
|
|
apiRouter.POST("editRoleStatus", methodBinding.EditRoleStatus) //修改角色状态
|
|
|
|
|
apiRouter.POST("getOrgPostTree", methodBinding.GetOrgPostTree) //获取行政组织加岗位树
|
|
|
|
|
}
|
|
|
|
|
}
|