1234567891011121314151617181920212223242526272829303132333435363738 |
- package com.fdkankan.fusion.controller;
- import com.fdkankan.fusion.common.ResultData;
- import com.fdkankan.fusion.entity.CaseEntity;
- import com.fdkankan.fusion.entity.CaseLive;
- import com.fdkankan.fusion.service.ICaseLiveService;
- import org.apache.commons.lang3.StringUtils;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- /**
- * <p>
- * 前端控制器
- * </p>
- *
- * @author
- * @since 2023-08-10
- */
- @RestController
- @RequestMapping("/caseLive")
- public class CaseLiveController extends BaseController{
- @Autowired
- ICaseLiveService caseLiveService;
- @PostMapping("/getTakeLookRoom")
- public ResultData getTakeLookRoom(@RequestBody CaseLive caseLive){
- if (StringUtils.isNotBlank(caseLive.getNum())){
- return ResultData.ok(caseLiveService.getByNum(caseLive.getNum(),getUserName()));
- }
- if(caseLive.getCaseId() != null){
- return ResultData.ok(caseLiveService.getByCaseId(caseLive.getCaseId(),getUserName()));
- }
- return ResultData.ok();
- }
- }
|