| | |
| | | package cn.gistack.sm.resDataCheck.controller; |
| | | |
| | | import cn.gistack.sm.resDataCheck.entity.Rules; |
| | | import cn.gistack.sm.resDataCheck.feign.IRulesClient; |
| | | import cn.gistack.sm.resDataCheck.service.IRulesService; |
| | | import cn.gistack.sm.resDataCheck.vo.RulesVO; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | public class RulesController extends BladeController { |
| | | |
| | | private IRulesService rulesService; |
| | | |
| | | private IRulesClient rulesClient; |
| | | |
| | | @GetMapping(value = "/test") |
| | | public R test(@RequestParam(name = "id", required = true) Long id) { |
| | | return rulesClient.createDataRules(id); |
| | | } |
| | | |
| | | /** |
| | | * 分页列表查询 |
| | |
| | | @ApiOperation(value = "数据规则校验-自定义添加", notes = "数据规则校验-自定义添加") |
| | | @PostMapping(value = "/save") |
| | | public R customizeAdd(@RequestBody RulesVO rulesVO){ |
| | | return R.data(rulesService.customizeAdd(rulesVO)); |
| | | rulesService.customizeAdd(rulesVO); |
| | | return R.data(rulesVO); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 自定义删除 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "数据规则校验-自定义删除", notes = "数据规则校验-自定义删除") |
| | | @PostMapping(value = "/remove") |
| | | public R remove(@RequestParam(name = "ids", required = true) String id) { |
| | | return R.data(rulesService.customizeRemove(id)); |
| | | } |
| | | |
| | | /** |
| | | * 通过id查询 |
| | | * |
| | | * @param id |