|
|
@@ -0,0 +1,67 @@
|
|
|
+package platform.modules.api.web;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+import platform.modules.api.dto.DepartmentDto;
|
|
|
+import platform.modules.api.dto.UserInfoDto;
|
|
|
+import platform.modules.api.dto.UserRoleDto;
|
|
|
+import platform.modules.api.service.SkyImageApiService;
|
|
|
+import platform.modules.government.entity.User;
|
|
|
+import platform.modules.government.service.UserService;
|
|
|
+import platform.modules.sys.entity.Department;
|
|
|
+import platform.modules.sys.service.DepartmentService;
|
|
|
+import platform.modules.sys.service.UserRoleService;
|
|
|
+import platform.modules.sys.web.ResponseMessage;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author kevin
|
|
|
+ * @since 2019/3/7 9:58 AM
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+//@RequestMapping("/filing/api")
|
|
|
+public class FGJFilingController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private UserService userService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private DepartmentService departmentService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private UserRoleService userRoleService;
|
|
|
+
|
|
|
+ @GetMapping("/userInfo/getUserInfoList")
|
|
|
+ public Object getUsetList(Integer departmentId){
|
|
|
+ List<UserInfoDto> userList = userService.findAllGovUsers(departmentId);
|
|
|
+
|
|
|
+ return ResponseMessage.success("success", userList);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取所有用户信息
|
|
|
+ *
|
|
|
+ * @param userType
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/userInfo/allUsers")
|
|
|
+ public Object getUseList(Integer userType){
|
|
|
+ List<UserInfoDto> userList = userService.findAllUsers(userType);
|
|
|
+ return ResponseMessage.success("success", userList);
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/department/getDepartmentList")
|
|
|
+ public Object getDepartmentList(){
|
|
|
+ List<DepartmentDto> departments = departmentService.findDepartmentList();
|
|
|
+ return ResponseMessage.success("success", departments);
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/userRole/getUserRoleList")
|
|
|
+ public Object getUserRoleList(){
|
|
|
+ List<UserRoleDto> userInfoDtos = userRoleService.findUserRoleList();
|
|
|
+ return ResponseMessage.success("success", userInfoDtos);
|
|
|
+ }
|
|
|
+}
|