|
@@ -67,6 +67,12 @@ public class AppController {
|
|
return appService.findDTO(id);
|
|
return appService.findDTO(id);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @PostMapping("/user/list")
|
|
|
|
+ public List<AppUser> userList(@RequestAttribute AdminSession adminSession, @RequestParam Long id) {
|
|
|
|
+ adminSession.validateRole(Role.ADMIN);
|
|
|
|
+ return appUserService.listByApp(appService.getById(id));
|
|
|
|
+ }
|
|
|
|
+
|
|
@PostMapping("/user/bind")
|
|
@PostMapping("/user/bind")
|
|
public AppUser bindUser(@RequestAttribute AdminSession adminSession, @RequestParam Long id,
|
|
public AppUser bindUser(@RequestAttribute AdminSession adminSession, @RequestParam Long id,
|
|
@RequestParam Long userId) {
|
|
@RequestParam Long userId) {
|