企业列表出来了
parent
b6e54db3c4
commit
0f1ee48b87
|
@ -131,13 +131,19 @@ public class SysApitypeController extends BaseController
|
||||||
return JavaGetConfig.standing(standing);
|
return JavaGetConfig.standing(standing);
|
||||||
}
|
}
|
||||||
|
|
||||||
Long userId = SecurityUtils.getUserId();
|
|
||||||
@PostMapping("/addUserRole/{res}")
|
@PostMapping("/addUserRole/{res}")
|
||||||
public Result updateCreateByUserId(@PathVariable("res") Integer res) {
|
public Result updateCreateByUserId(@PathVariable("res") Integer res) {
|
||||||
|
Long userId = SecurityUtils.getUserId();
|
||||||
UserRole userRole = sysApitypeService.selectUserRoleByUserId(userId);
|
UserRole userRole = sysApitypeService.selectUserRoleByUserId(userId);
|
||||||
if(res!=1||userRole!=null){
|
if(res!=1||userRole!=null){
|
||||||
return Result.error();
|
return Result.error();
|
||||||
}
|
}
|
||||||
return Result.success(sysApitypeService.insertUserRole(userId));
|
return Result.success(sysApitypeService.insertUserRole(userId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/abc")
|
||||||
|
public Long abc(){
|
||||||
|
return SecurityUtils.getUserId();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue