package com.platform.controller; import com.platform.model.entity.CaseRuleConfigEntity; import com.platform.model.resp.Result; import com.platform.service.CaseRuleConfigService; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; @RestController @RequestMapping("/case/rule") public class CaseRuleConfigController extends BaseController { @Resource private CaseRuleConfigService caseRuleConfigService; @PostMapping("/saveOrUpdate") public Result saveOrUpdate(@RequestBody CaseRuleConfigEntity caseRuleConfigEntity) { return toAjax(caseRuleConfigService.saveOrUpdate(caseRuleConfigEntity)); } @GetMapping("/data/{caseId}") public Result data(@PathVariable String caseId) { return Result.data(caseRuleConfigService.getByCaseId(caseId)); } }