fuliqi
2023-11-30 e5bf0d08d05f5c58224fe28cdf743a1bae88e3f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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<Void> report(@Validated @RequestBody ZfVO.ZfReportVO params) {
        enforcelawReportService.report(params);
        return CommonResult.success(null);
    }
}