用户获取预约日历
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 年-月
|
||||
* @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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue