|
@@ -1,54 +0,0 @@
|
|
|
-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.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 FGJFilingContriller {
|
|
|
|
|
-
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private UserService userService;
|
|
|
|
|
-
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private DepartmentService departmentService;
|
|
|
|
|
-
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private UserRoleService userRoleService;
|
|
|
|
|
-
|
|
|
|
|
- @GetMapping("userInfo/getUserInfoList")
|
|
|
|
|
- public Object getUsetList(Integer departmentId){
|
|
|
|
|
- List<UserInfoDto> userList = userService.findAllUsers(departmentId);
|
|
|
|
|
-
|
|
|
|
|
- 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);
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|