Skip to content

Commit 0feb288

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent 37f1327 commit 0feb288

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Change log
22

3+
2025-11-18 Bumped to version v1.0.246
4+
- Updated apis for contentSecurity
5+
36
2025-11-13 Bumped to version v1.0.245
47
- Updated apis for livesaas
58

volc-sdk-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.volcengine</groupId>
7-
<version>1.0.245</version>
7+
<version>1.0.246</version>
88
<artifactId>volc-sdk-java</artifactId>
99

1010
<name>volc-sdk-java</name>

volc-sdk-java/src/main/java/com/volcengine/service/contentSecurity/ContentSecurityService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
public interface ContentSecurityService extends IBaseService {
1111
void setImgPath();
12-
12+
void setTextPath();
1313
/**
1414
* Image Risk Detection.
1515
*

volc-sdk-java/src/main/java/com/volcengine/service/contentSecurity/impl/ContentSecurityServiceImpl.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ public static ContentSecurityService getInstance() {
2727
return contentSecurityInstance;
2828
}
2929

30+
public void setTextPath() {
31+
contentSecurityInstance.getApiInfoList().put(Const.TextSliceRisk, new ApiInfo(
32+
new HashMap<String, Object>() {
33+
{
34+
put(Const.Method, "POST");
35+
put(Const.Path, "/open/api/v3/text_risk_v5");
36+
put(Const.Query, new ArrayList<NameValuePair>() {
37+
{
38+
add(new BasicNameValuePair("Action", Const.TextSliceRisk));
39+
add(new BasicNameValuePair("Version", "2022-11-07"));
40+
}
41+
});
42+
}
43+
}
44+
));
45+
}
46+
3047
public void setImgPath() {
3148
contentSecurityInstance.getApiInfoList().put(Const.ImageContentRiskV2, new ApiInfo(
3249
new HashMap<String, Object>() {

volc-sdk-java/src/test/java/com/volcengine/service/contentsecurity/ContentSecurityServiceTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
import com.volcengine.model.request.ImageRiskResultRequest;
44
import com.volcengine.model.request.RiskDetectionRequest;
5-
import com.volcengine.model.response.ImageRiskDetectionResponse;
6-
import com.volcengine.model.response.MobileStatusResponseV2;
5+
import com.volcengine.model.response.*;
76
import com.volcengine.service.businessSecurity.BusinessSecurityService;
87
import com.volcengine.service.businessSecurity.impl.BusinessSecurityServiceImpl;
98
import com.volcengine.service.contentSecurity.ContentSecurityService;

0 commit comments

Comments
 (0)