package com.mindskip.xzs.controller.admin; import com.github.pagehelper.PageInfo; import com.mindskip.xzs.base.BaseApiController; import com.mindskip.xzs.base.RestResponse; import com.mindskip.xzs.domain.User; import com.mindskip.xzs.service.DepartmentService; import com.mindskip.xzs.utility.PageInfoHelper; import com.mindskip.xzs.viewmodel.admin.user.UserPageRequestVM; import com.mindskip.xzs.viewmodel.admin.user.UserResponseVM; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; @RestController("AdminDepartmentController") @RequestMapping("/api/admin/department") public class DepartmentController extends BaseApiController { private final DepartmentService departmentService; @Autowired public DepartmentController(DepartmentService departmentService) { this.departmentService = departmentService; } // @RequestMapping(value = "/page/list", method = RequestMethod.POST) // public RestResponse> pageList(@RequestBody UserPageRequestVM model) { // PageInfo pageInfo = userService.userPage(model); // PageInfo page = PageInfoHelper.copyMap(pageInfo, d -> UserResponseVM.from(d)); // return RestResponse.ok(page); // } }