| | |
| | | import com.doumee.dao.web.response.MeetingDetailResponse; |
| | | import com.doumee.dao.web.response.MeetingListResponse; |
| | | import com.doumee.dao.web.response.MonthDataResponse; |
| | | import com.doumee.dao.web.response.RoomDetailResponse; |
| | | import com.doumee.service.business.BookingsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | @PostMapping("/reservationCancel") |
| | | public ApiResponse reservationCancel(@RequestBody BusinessOverDTO businessOverDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo user = getLoginUser(token); |
| | | businessOverDTO.setUserId(user.getId()) ; |
| | | businessOverDTO.setUserId(user.getId()); |
| | | bookingsService.reservationCancel(businessOverDTO); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | @ApiOperation("提前开始会议") |
| | | @PostMapping("/startEarly") |
| | | public ApiResponse startEarly(@RequestBody BusinessOverDTO businessOverDTO,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo user = getLoginUser(token); |
| | | businessOverDTO.setUserId(user.getId()); |
| | | businessOverDTO.setStartType(Constants.ZERO); |
| | | bookingsService.startEarly(businessOverDTO); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | @ApiOperation("开始会议") |
| | | @PostMapping("/start") |
| | | public ApiResponse start(@RequestBody BusinessOverDTO businessOverDTO,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo user = getLoginUser(token); |
| | | businessOverDTO.setUserId(user.getId()); |
| | | businessOverDTO.setStartType(Constants.ONE); |
| | | bookingsService.start(businessOverDTO); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | } |