添加版本删除
parent
c684f4d795
commit
bcbbef2554
|
@ -223,6 +223,7 @@ public class OssUtil {
|
||||||
|
|
||||||
OSS ossClient = new OSSClientBuilder().build(endPoint,accessKeyId,accessKeySecret);
|
OSS ossClient = new OSSClientBuilder().build(endPoint,accessKeyId,accessKeySecret);
|
||||||
|
|
||||||
|
|
||||||
VoidResult voidResult = ossClient.deleteObject(bucketName, key);
|
VoidResult voidResult = ossClient.deleteObject(bucketName, key);
|
||||||
|
|
||||||
log.info(voidResult);
|
log.info(voidResult);
|
||||||
|
|
|
@ -91,6 +91,21 @@ public class RuleEngineVersionController {
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping("/deliteVersionById/{id}")
|
||||||
|
public Result deliteVersionById(@PathVariable("id") Long id){
|
||||||
|
|
||||||
|
boolean b = versionService.removeById(id);
|
||||||
|
|
||||||
|
RuleEngineVersion ruleEngineVersion = versionService.getById(id);
|
||||||
|
if (true==b){
|
||||||
|
OssUtil.deliteOssClient(ruleEngineVersion.getClassName()+SuffixClass.Suffix_CLASS);
|
||||||
|
}
|
||||||
|
return Result.success();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 激活引擎请求
|
* 激活引擎请求
|
||||||
* @param id
|
* @param id
|
||||||
|
|
Loading…
Reference in New Issue