| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.QrCodeUtils; |
| | | import com.doumee.dao.admin.request.BusinessOverDTO; |
| | | import com.doumee.dao.business.model.Bookings; |
| | | import com.doumee.dao.web.request.BookingsRequest; |
| | | import com.doumee.dao.web.request.MeetingPageRequest; |
| | |
| | | @ApiOperation(value = "当月会议表", notes = "当月会议表") |
| | | @GetMapping("/monthMeeting") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "yearMonth", value = "年月 yyyy-MM", required = true) |
| | | }) |
| | | public ApiResponse<List<MonthDataResponse>> monthDay(@RequestParam String yearMonth) { |
| | |
| | | |
| | | @ApiOperation("我的会议列表") |
| | | @PostMapping("/myMeetingPage") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse<IPage<MeetingListResponse>> myMeetingPage(@RequestBody PageWrap<MeetingPageRequest> pageWrap) { |
| | | LoginUserInfo user = getLoginUser(null); |
| | | pageWrap.getModel().setUserId(user.getId()); |
| | |
| | | |
| | | |
| | | |
| | | @ApiOperation("会议详情") |
| | | @GetMapping("/meetingDetail") |
| | | @ApiImplicitParams({ |
| | | // @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "会议主键", required = true), |
| | | }) |
| | | public ApiResponse<MeetingDetailResponse> meetingDetail(@RequestParam Integer id) { |
| | | return ApiResponse.success("查询成功", bookingsService.getMeetingDetail(id)); |
| | | } |
| | | // @ApiOperation("会议详情") |
| | | // @GetMapping("/meetingDetail") |
| | | // @ApiImplicitParams({ |
| | | // @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "会议主键", required = true), |
| | | // }) |
| | | // public ApiResponse<MeetingDetailResponse> meetingDetail(@RequestParam Integer id) { |
| | | // return ApiResponse.success("查询成功", bookingsService.getMeetingDetail(id)); |
| | | // } |
| | | |
| | | @ApiOperation("获取会议开门二维码") |
| | | @GetMapping("/getQrCode") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "会议主键", required = true), |
| | | }) |
| | | public ApiResponse<String> getQrCode(@RequestParam Integer id) { |
| | |
| | | @ApiOperation("获取会议开门二维码-图片流") |
| | | @GetMapping("/getQrCodeImg") |
| | | @ApiImplicitParams({ |
| | | // @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "会议主键", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public void getQrCodeImg(@RequestParam Integer id,@RequestParam String token, HttpServletResponse response) throws Exception { |
| | | LoginUserInfo user = getLoginUser(null); |
| | |
| | | |
| | | @ApiOperation("会议预约") |
| | | @PostMapping("/reservationMeeting") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse<Integer> reservationMeeting(@RequestBody BookingsRequest bookingsRequest) { |
| | | LoginUserInfo user = getLoginUser(null); |
| | | bookingsRequest.setCreator(user.getId()); |
| | |
| | | } |
| | | |
| | | @ApiOperation("取消会议预约") |
| | | @GetMapping("/reservationCancel") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "会议主键", required = true), |
| | | }) |
| | | public ApiResponse reservationCancel(@RequestParam Integer id) { |
| | | @PostMapping("/reservationCancel") |
| | | public ApiResponse reservationCancel(@RequestBody BusinessOverDTO businessOverDTO) { |
| | | LoginUserInfo user = getLoginUser(null); |
| | | bookingsService.reservationCancel(id,user.getId()); |
| | | businessOverDTO.setUserId(user.getId()); |
| | | bookingsService.reservationCancel(businessOverDTO); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("提前结束会议") |
| | | @PostMapping("/reservationOver") |
| | | public ApiResponse reservationOver(@RequestBody BusinessOverDTO businessOverDTO) { |
| | | LoginUserInfo user = getLoginUser(null); |
| | | businessOverDTO.setUserId(user.getId()); |
| | | bookingsService.reservationOver(businessOverDTO); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |