Changes
parent
2f6812dc7f
commit
bf265cd3a4
|
@ -26,7 +26,7 @@ public class RuleController {
|
|||
*
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/list")
|
||||
@RequestMapping(path = "/list",method = RequestMethod.POST)
|
||||
@Operation(summary = "查看规则", description = "规则")
|
||||
public Result<List<Rule>> select(@RequestBody Rule rule) {
|
||||
return Result.success(ruleService.select(rule));
|
||||
|
@ -38,6 +38,7 @@ public class RuleController {
|
|||
*
|
||||
* @return
|
||||
*/
|
||||
@Operation(summary = "查看客户", description = "根据客户的名称、编码、是否开启等可以进行客户的筛选")
|
||||
@PutMapping("/update")
|
||||
public Result update(@RequestBody Rule rule) {
|
||||
return Result.success(ruleService.updateById(rule));
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.muyu.rule.controller;
|
|||
import com.dtflys.forest.annotation.Get;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.rule.service.RuleTypeService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import rule.domain.RuleType;
|
||||
|
@ -26,7 +27,8 @@ public class RuleTypeController {
|
|||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@RequestMapping(path = "/list",method = RequestMethod.POST)
|
||||
@Operation(summary = "规则类型", description = "类型")
|
||||
public Result<List<RuleType>> ruleTypeList() {
|
||||
return Result.success(ruleTypeService.list());
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@ public class RuleServiceImpl extends ServiceImpl<RuleMapper, Rule> implements Ru
|
|||
rule1.setRuleDesc(Desensitization.mobilePhoneDesensitization(rule1.getRuleDesc()));
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue