|
|
|
@ -48,7 +48,7 @@ func InitialRouter() *gin.Engine { |
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
//验证身份接口
|
|
|
|
//验证身份接口 鉴权Url(主要应用端使用)
|
|
|
|
VerifyIdentity := router.Group("") |
|
|
|
VerifyIdentity.Use(interceptor.AuthenticateUser()).Use(interceptor.VerifyUrl()) |
|
|
|
{ |
|
|
|
@ -59,16 +59,27 @@ func InitialRouter() *gin.Engine { |
|
|
|
version1HonorsApi.RouterGroup(VerifyIdentity) |
|
|
|
//岗位考核
|
|
|
|
postRouterApi := apirouter.RouterGroupEntry.PostRouter |
|
|
|
postRouterApi.RouterGroupPc(VerifyIdentity) //pc端
|
|
|
|
postRouterApi.RouterGroupWeb(VerifyIdentity) //web端
|
|
|
|
postRouterApi.RouterGroupPc(VerifyIdentity) //pc端
|
|
|
|
// postRouterApi.RouterGroupWeb(VerifyIdentity) //web端
|
|
|
|
//部门考核
|
|
|
|
departmentRouterApi := apirouter.RouterGroupEntry.DepartmentRouter |
|
|
|
departmentRouterApi.RouterGroupPc(VerifyIdentity) //pc端
|
|
|
|
departmentRouterApi.RouterGroupWeb(VerifyIdentity) //web端
|
|
|
|
departmentRouterApi.RouterGroupPc(VerifyIdentity) //pc端
|
|
|
|
// departmentRouterApi.RouterGroupWeb(VerifyIdentity) //web端
|
|
|
|
// 图文信息
|
|
|
|
bookimgRouterApi := apirouter.RouterGroupEntry.BookImg |
|
|
|
bookimgRouterApi.RouterGroup(VerifyIdentity) |
|
|
|
} |
|
|
|
//验证身份接口 无需鉴权Url(主要web端使用)
|
|
|
|
VerifyIdentityWeb := router.Group("") |
|
|
|
VerifyIdentityWeb.Use(interceptor.AuthenticateUser()) |
|
|
|
{ |
|
|
|
//岗位考核
|
|
|
|
postRouterApiWeb := apirouter.RouterGroupEntry.PostRouter |
|
|
|
postRouterApiWeb.RouterGroupWeb(VerifyIdentityWeb) //web端
|
|
|
|
//部门考核
|
|
|
|
departmentRouterApiWeb := apirouter.RouterGroupEntry.DepartmentRouter |
|
|
|
departmentRouterApiWeb.RouterGroupWeb(VerifyIdentityWeb) //web端
|
|
|
|
} |
|
|
|
//Token身份验证
|
|
|
|
VerifyIdentityToken := router.Group("") |
|
|
|
VerifyIdentityToken.Use(interceptor.IdentificationToken()) |
|
|
|
|