File tree Expand file tree Collapse file tree 5 files changed +23
-4
lines changed
main/java/com/volcengine/service/contentSecurity
test/java/com/volcengine/service/contentsecurity Expand file tree Collapse file tree 5 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 11Change log
22
3+ 2025-11-18 Bumped to version v1.0.246
4+ - Updated apis for contentSecurity
5+
362025-11-13 Bumped to version v1.0.245
47- Updated apis for livesaas
58
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 99 */
1010public interface ContentSecurityService extends IBaseService {
1111 void setImgPath ();
12-
12+ void setTextPath ();
1313 /**
1414 * Image Risk Detection.
1515 *
Original file line number Diff line number Diff 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 >() {
Original file line number Diff line number Diff line change 22
33import com .volcengine .model .request .ImageRiskResultRequest ;
44import 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 .*;
76import com .volcengine .service .businessSecurity .BusinessSecurityService ;
87import com .volcengine .service .businessSecurity .impl .BusinessSecurityServiceImpl ;
98import com .volcengine .service .contentSecurity .ContentSecurityService ;
You can’t perform that action at this time.
0 commit comments