| | |
| | | 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 org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | 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.*; |
| | | |
| | | |
| | | /** |
| | |
| | | @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); |
| | | } |
| | | } |
| | | } |