用户获取预约日历
This commit is contained in:
parent
d07208e8fb
commit
a8ce0925a0
|
@ -102,15 +102,26 @@ public class WxCounselorController extends BaseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取咨询师预约日历
|
* 获取咨询师预约日历-咨询师自己
|
||||||
|
*
|
||||||
|
* @param time 年-月
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("/date")
|
||||||
|
public R<List<ReservationDateVo>> getReservationList(String time) {
|
||||||
|
Long counselorId = LoginHelper.getUserId();
|
||||||
|
return R.ok(reservationService.selectUseDateList(time, counselorId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取咨询师预约日历-客户
|
||||||
*
|
*
|
||||||
* @param time 年-月
|
* @param time 年-月
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/reservation/date")
|
@GetMapping("/reservation/date")
|
||||||
public R<List<ReservationDateVo>> getReservationList(String time) {
|
public R<List<ReservationDateVo>> getReservationList(String time, Long counselorId) {
|
||||||
Long userId = LoginHelper.getUserId();
|
return R.ok(reservationService.selectNotUseDateList(time, counselorId));
|
||||||
return R.ok(reservationService.selectUseDateList(time, userId));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue