用户获取预约日历

This commit is contained in:
cjw 2024-08-24 11:26:57 +08:00
parent d07208e8fb
commit a8ce0925a0
1 changed files with 15 additions and 4 deletions

View File

@ -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 -
* @return
*/
@GetMapping("/reservation/date")
public R<List<ReservationDateVo>> getReservationList(String time) {
Long userId = LoginHelper.getUserId();
return R.ok(reservationService.selectUseDateList(time, userId));
public R<List<ReservationDateVo>> getReservationList(String time, Long counselorId) {
return R.ok(reservationService.selectNotUseDateList(time, counselorId));
}
/**