浏览代码

律师中台 登录

qxy 3 周之前
父节点
当前提交
692729f997

+ 3 - 0
alien-entity/src/main/java/shop/alien/entity/store/vo/SystemLoginVo.java

@@ -20,4 +20,7 @@ public class SystemLoginVo {
 
     @ApiModelProperty(value = "提示信息")
     public String message;
+
+    @ApiModelProperty(value = "角色id")
+    public String roleId;
 }

+ 2 - 2
alien-gateway/src/main/java/shop/alien/gateway/controller/SystemController.java

@@ -117,10 +117,10 @@ public class SystemController {
         return systemService.deleteById(id);
     }
 
-    @ApiOperation("路由配置")
+    @ApiOperation("中台路由配置")
     @ApiOperationSupport(order = 9)
     @ApiImplicitParams({
-            @ApiImplicitParam(name = "type", value = "路由类型", dataType = "Integer", paramType = "query", required = true)
+            @ApiImplicitParam(name = "type", value = "路由类型", dataType = "Integer", paramType = "query")
     })
     @GetMapping(value = "/routingInfo")
     public String routingInfo(@RequestParam(value = "type") Integer type) {

+ 2 - 0
alien-gateway/src/main/java/shop/alien/gateway/service/impl/SystemServiceImpl.java

@@ -81,6 +81,8 @@ public class SystemServiceImpl implements SystemService {
             baseRedisService.setString("web_" + lifeSys.getUserName(), result.getToken());
             //登录结果
             result.setResult(true);
+            //角色Id
+            result.setRoleId(lifeSys.getRoleId());
             //登录结果
             result.setMessage("登录成功!!");
         } else {