package com.ycl.controller.zf; import com.ycl.api.CommonResult; import com.ycl.service.zf.IEnforcelawReportService; import com.ycl.vo.zf.ZfVO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; /** * @author Lyq * @version 1.0 * @date 2022/9/16 */ @RestController @RequestMapping("/violateRule") @Api(tags = "违规事项处置管理") public class ViolateRuleController { @Resource private IEnforcelawReportService enforcelawReportService; @ApiOperation("上报") @PostMapping("/report") public CommonResult report(@Validated @RequestBody ZfVO.ZfReportVO params) { enforcelawReportService.report(params); return CommonResult.success(null); } }