Skip to content

Commit 8b7bbc5

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent 901e685 commit 8b7bbc5

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
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-07-18 Bumped to version v1.0.230
4+
- Updated apis for contentSecurity
5+
36
2025-07-17 Bumped to version v1.0.229
47
- Updated apis for tls/vikingDB
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.229</version>
7+
<version>1.0.230</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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* The interface business security service.
99
*/
1010
public interface ContentSecurityService extends IBaseService {
11+
void setImgPath();
12+
1113
/**
1214
* Image Risk Detection.
1315
*

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ public static ContentSecurityService getInstance() {
2525
return contentSecurityInstance;
2626
}
2727

28+
public void setImgPath() {
29+
contentSecurityInstance.getApiInfoList().put(Const.ImageContentRiskV2, new ApiInfo(
30+
new HashMap<String, Object>() {
31+
{
32+
put(Const.Method, "POST");
33+
put(Const.Path, "/open/api/v4/image_content_risk");
34+
put(Const.Query, new ArrayList<NameValuePair>() {
35+
{
36+
add(new BasicNameValuePair("Action", Const.ImageContentRisk));
37+
add(new BasicNameValuePair("Version", "2021-11-29"));
38+
}
39+
});
40+
}
41+
}
42+
));
43+
}
2844
@Override
2945
public ImageRiskDetectionResponse ImageRiskDetection(RiskDetectionRequest riskDetectionRequest) throws Exception {
3046
RawResponse response = json(Const.ImageContentRisk, new ArrayList<>(), JSON.toJSONString(riskDetectionRequest));

0 commit comments

Comments
 (0)