| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | |
| | | @RestController("AdminDepartmentController") |
| | |
| | | this.departmentService = departmentService; |
| | | } |
| | | |
| | | @RequestMapping(value = "/list", method = RequestMethod.POST) |
| | | public RestResponse<List<Department>> getAll(){ |
| | | List<Department> res = departmentService.gets(); |
| | | return RestResponse.ok(res); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/page/list", method = RequestMethod.POST) |
| | | public RestResponse<PageInfo<DepartmentResponseVM>> pageList(@RequestBody DepartmentResponseVM model) { |