|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "会议主键", required = true), | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | public ApiResponse<MeetingDetailResponse> meetingDetail( @RequestHeader(Constants.HEADER_USER_TOKEN) String token,@RequestParam Integer id) { | 
|---|
|  |  |  | return ApiResponse.success("查询成功", bookingsService.getMeetingDetail(id)); | 
|---|
|  |  |  | return ApiResponse.success("查询成功", bookingsService.getMeetingDetail(id,getLoginUser(token).getId())); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("获取会议开门二维码") | 
|---|
|  |  |  | 
|---|
|  |  |  | @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("操作成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|