| | |
| | | import org.springblade.system.entity.*; |
| | | import org.springblade.system.service.*; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | |
| | | private final IParamService paramService; |
| | | |
| | | private final IRegionService regionService; |
| | | |
| | | private final IStrategyService strategyService; |
| | | |
| | | private final ICombinationService combinationService; |
| | | |
| | | @Override |
| | | @GetMapping(MENU) |
| | |
| | | return R.data(regionService.getById(code)); |
| | | } |
| | | |
| | | @Override |
| | | @PostMapping(STRATEGY) |
| | | public R<Strategy> getByTenantIdAndName(String tenantId, String name) { |
| | | return R.data(strategyService.queryByNameAndTenantId(tenantId,name)); |
| | | } |
| | | |
| | | @Override |
| | | @PostMapping(STRATEGYBYID) |
| | | public R<Strategy> getByUserId(Long userId) { |
| | | return R.data(strategyService.queryByUserId(userId)); |
| | | } |
| | | |
| | | @Override |
| | | @PostMapping(REGEX) |
| | | public R<String> getRegex(@RequestBody List<String> combinationIds) { |
| | | return R.data(combinationService.getRegex(combinationIds)); |
| | | } |
| | | |
| | | |
| | | } |