| | |
| | | package com.kidgrow.usercenter.controller; |
| | | |
| | | import java.util.Map; |
| | | |
| | | import com.kidgrow.common.annotation.LoginUser; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import com.kidgrow.usercenter.vo.SysDoctorVo; |
| | | import com.kidgrow.usercenter.vo.SysDoctorDto; |
| | |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult<SysDoctorVo> list(@RequestParam Map<String, Object> params) { |
| | | public PageResult<SysDoctorVo> list(@RequestParam Map<String, Object> params,@LoginUser SysUser user) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return sysDoctorService.findList(params); |
| | | |
| | | return sysDoctorService.findList(params,user); |
| | | } |
| | | |
| | | /** |