package com.ycl.controller.caseHandler; import com.alibaba.druid.util.StringUtils; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ycl.api.CommonResult; import com.ycl.controller.BaseController; import com.ycl.entity.caseHandler.BaseCase; import com.ycl.service.caseHandler.IBaseCaseService; import com.ycl.vo.ViolationSettingVO; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; /** *

* 案件基本信息 前端控制器 *

* * @author wl * @since 2022-09-24 */ @RestController @RequestMapping("/base-case") public class BaseCaseController extends BaseController { private IBaseCaseService baseCaseService; @Autowired public void setBaseCaseService(IBaseCaseService baseCaseService) { this.baseCaseService = baseCaseService; } @ApiOperation(value = "上传市平台") @PostMapping("/upload-event") public CommonResult uploadEvent(@RequestParam Integer caseId) { String msg = baseCaseService.uploadEvent(caseId); if (StringUtils.isEmpty(msg)) { return CommonResult.success(null); } else { return CommonResult.failed(msg); } } }