package com.highdatas.mdm.controller; import com.highdatas.mdm.entity.TQualityRule; import com.highdatas.mdm.pojo.Result; import com.highdatas.mdm.service.ITQualityRuleService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; /** *
* 规则表 前端控制器 *
* * @author kimi * @since 2019-12-18 */ @RestController @RequestMapping("/rule") public class TQualityRuleController { @Autowired ITQualityRuleService itQualityRuleService; @RequestMapping(value = "/get/{id}", method = RequestMethod.GET) public Result get(@PathVariable String id) { TQualityRule tQualityRule = itQualityRuleService.selectById(id); return Result.success(tQualityRule); } @RequestMapping(value = "/all", method = RequestMethod.GET) public Result getAll() { List