Commit cf1b4d37 by wangli

url重命名

1 parent f6c75fdf
...@@ -64,12 +64,12 @@ public class BusinessBlockController { ...@@ -64,12 +64,12 @@ public class BusinessBlockController {
* @param id 服务区块ID * @param id 服务区块ID
* @return * @return
*/ */
@PostMapping("/business/service/block/delete") @PostMapping("/business/service/block/remove")
public Result<?> businessServiceBlockDelete(@RequestParam String id) { public Result<?> businessServiceBlockRemove(@RequestParam String id) {
// 删除服务范围 // 删除服务范围
Result<?> res = null; Result<?> res = null;
try{ try{
res = businessBlockService.businessServiceBlockDelete(id); res = businessBlockService.businessServiceBlockRemove(id);
} catch (BusinessException e){ } catch (BusinessException e){
return Result.failed(e.getMessage()); return Result.failed(e.getMessage());
} }
......
...@@ -8,7 +8,7 @@ public interface BusinessBlockService { ...@@ -8,7 +8,7 @@ public interface BusinessBlockService {
Result<?> businessServiceBlockAdd(String layerId, String teamId); Result<?> businessServiceBlockAdd(String layerId, String teamId);
Result<?> businessServiceBlockDelete(String blockId); Result<?> businessServiceBlockRemove(String blockId);
Result<?> saasBaseDataLayerUrl(String blockId); Result<?> saasBaseDataLayerUrl(String blockId);
} }
...@@ -114,7 +114,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService { ...@@ -114,7 +114,7 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
} }
@Override @Override
public Result<?> businessServiceBlockDelete(String blockId) throws BusinessException{ public Result<?> businessServiceBlockRemove(String blockId) throws BusinessException{
MapBlockInfo block = mapBlockInfoMPDao.getByBlockId(blockId); MapBlockInfo block = mapBlockInfoMPDao.getByBlockId(blockId);
if(block == null) { if(block == null) {
throw new BusinessException("区块不存在"); throw new BusinessException("区块不存在");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!