|
|
|
@@ -1,6 +1,7 @@ |
|
|
|
package com.ffii.fpsms.modules.user.web; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
@@ -11,6 +12,7 @@ import org.springframework.web.bind.annotation.DeleteMapping; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.ResponseStatus; |
|
|
|
@@ -80,7 +82,6 @@ public class GroupController{ |
|
|
|
|
|
|
|
@GetMapping("/auth/{target}/{id}") |
|
|
|
public RecordsRes<Map<String, Object>> authComboJson(HttpServletRequest request, @PathVariable("id") int id, @PathVariable("target") String target) throws ServletRequestBindingException { |
|
|
|
System.out.println(request); |
|
|
|
Map<String, Object> args = new HashMap<>(); |
|
|
|
if (id != 0){ |
|
|
|
if (target.equals("group")){ |
|
|
|
@@ -94,4 +95,11 @@ public class GroupController{ |
|
|
|
return new RecordsRes<>(groupService.listAuth(args)); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/auth/user-batch") |
|
|
|
public Map<Integer, List<Map<String, Object>>> authBatchByUserIds( |
|
|
|
@RequestParam("userIds") List<Integer> userIds |
|
|
|
) { |
|
|
|
return groupService.listAuthForUsers(userIds); |
|
|
|
} |
|
|
|
|
|
|
|
} |