PcUserController.java 787 B

1234567891011121314151617181920212223242526272829303132
  1. package com.zy.omp.controller.pc;
  2. import com.zy.omp.common.ServerResponse;
  3. import com.zy.omp.pojo.io.pc.UserIO;
  4. import com.zy.omp.service.UserService;
  5. import org.springframework.web.bind.annotation.PostMapping;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RestController;
  8. import javax.annotation.Resource;
  9. /**
  10. * 用户管理
  11. *
  12. * @author chen_yi
  13. * Create on 2020/8/1
  14. */
  15. @RestController
  16. @RequestMapping("omp/api/pc/user")
  17. public class PcUserController {
  18. @Resource
  19. private UserService userService;
  20. /**
  21. * 分页查询用户集合
  22. */
  23. @PostMapping("listPage.do")
  24. public ServerResponse listPage(UserIO io) {
  25. return ServerResponse.createBySuccess(userService.listPage(io));
  26. }
  27. }