-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆕 #3243【企业微信】增加获取敏感词规则列表和获取敏感词规则详情的接口
- Loading branch information
1 parent
573f0f5
commit 4abffde
Showing
5 changed files
with
169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRuleInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package me.chanjar.weixin.cp.bean.external.interceptrule; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.bean.external.acquisition.WxCpCustomerAcquisitionInfo; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* @Date: 2024-03-07 17:02 | ||
* @Author: shenliuming | ||
* @return: | ||
*/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class WxCpInterceptRuleInfo extends WxCpBaseResp implements Serializable { | ||
|
||
private static final long serialVersionUID = -425957862453041229L; | ||
|
||
@SerializedName("rule") | ||
private Rule rule; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = false) | ||
public static class Rule implements Serializable { | ||
@SerializedName("rule_id") | ||
private String ruleId; | ||
|
||
@SerializedName("rule_name") | ||
private String ruleName; | ||
|
||
@SerializedName("word_list") | ||
private List<String> wordList; | ||
|
||
@SerializedName("semantics_list") | ||
private List<Integer> semanticsList; | ||
|
||
@SerializedName("intercept_type") | ||
private Integer interceptType; | ||
|
||
@SerializedName("applicable_range") | ||
private ApplicableRange applicableRange; | ||
|
||
@SerializedName("create_time") | ||
private long createTime; | ||
|
||
} | ||
|
||
|
||
public static WxCpInterceptRuleInfo fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleInfo.class); | ||
} | ||
|
||
} |
61 changes: 61 additions & 0 deletions
61
...src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRuleList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package me.chanjar.weixin.cp.bean.external.interceptrule; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.*; | ||
import me.chanjar.weixin.common.bean.ToJson; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.bean.external.acquisition.WxCpCustomerAcquisitionInfo; | ||
import me.chanjar.weixin.cp.bean.external.acquisition.WxCpCustomerAcquisitionList; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* @Date: 2024-03-07 15:54 | ||
* @Author: shenliuming | ||
* @return: | ||
*/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class WxCpInterceptRuleList extends WxCpBaseResp implements Serializable { | ||
|
||
private static final long serialVersionUID = -830298362453041229L; | ||
/** | ||
* link_id列表 | ||
*/ | ||
@SerializedName("rule_list") | ||
private List<Rule> ruleList; | ||
|
||
public static WxCpInterceptRuleList fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleList.class); | ||
} | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = false) | ||
public static class Rule implements Serializable { | ||
private static final long serialVersionUID = 4750537220968228300L; | ||
|
||
/** | ||
* 规则id | ||
*/ | ||
@SerializedName("rule_id") | ||
private String ruleId; | ||
|
||
/** | ||
* 规则名称,长度上限20个字符 | ||
*/ | ||
@SerializedName("rule_name") | ||
private String ruleName; | ||
|
||
/** | ||
* 创建时间 | ||
*/ | ||
@SerializedName("create_time") | ||
private Long createTime; | ||
|
||
public static WxCpInterceptRuleList.Rule fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleList.Rule.class); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters