-
-
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.
- Loading branch information
1 parent
6cfe90b
commit 614a1c9
Showing
14 changed files
with
227 additions
and
14 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
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
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
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
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
32 changes: 32 additions & 0 deletions
32
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaBaseResponse.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,32 @@ | ||
package cn.binarywang.wx.miniapp.bean; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @author liming1019 | ||
* @date 2021/8/17 | ||
*/ | ||
@Data | ||
public class WxMaBaseResponse implements Serializable { | ||
private static final long serialVersionUID = 3932406255203539965L; | ||
/** | ||
* 错误码 | ||
* <pre> | ||
* 是否必填: | ||
* </pre> | ||
*/ | ||
@SerializedName("errcode") | ||
private Integer errcode; | ||
|
||
/** | ||
* 错误信息 | ||
* <pre> | ||
* 是否必填: | ||
* </pre> | ||
*/ | ||
@SerializedName("errmsg") | ||
private String errmsg; | ||
} |
37 changes: 37 additions & 0 deletions
37
...app/src/main/java/cn/binarywang/wx/miniapp/bean/security/WxMaMsgSecCheckCheckRequest.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,37 @@ | ||
package cn.binarywang.wx.miniapp.bean.security; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @author liming1019 | ||
*/ | ||
@Data | ||
@Builder | ||
public class WxMaMsgSecCheckCheckRequest implements Serializable { | ||
private static final long serialVersionUID = 3233176903681625506L; | ||
|
||
@SerializedName("version") | ||
private String version; | ||
|
||
@SerializedName("openid") | ||
private String openid; | ||
|
||
@SerializedName("scene") | ||
private Integer scene; | ||
|
||
@SerializedName("content") | ||
private String content; | ||
|
||
@SerializedName("nickname") | ||
private String nickname; | ||
|
||
@SerializedName("title") | ||
private String title; | ||
|
||
@SerializedName("signature") | ||
private String signature; | ||
} |
72 changes: 72 additions & 0 deletions
72
...pp/src/main/java/cn/binarywang/wx/miniapp/bean/security/WxMaMsgSecCheckCheckResponse.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,72 @@ | ||
package cn.binarywang.wx.miniapp.bean.security; | ||
|
||
import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* @author liming1019 | ||
*/ | ||
@Data | ||
@Builder | ||
public class WxMaMsgSecCheckCheckResponse extends WxMaBaseResponse implements Serializable { | ||
private static final long serialVersionUID = 1903247824980080974L; | ||
/** | ||
* result : {"suggest":"risky","label":20001} | ||
* detail : [{"strategy":"content_model","errcode":0,"suggest":"risky","label":20006,"prob":90},{"strategy":"keyword","errcode":0,"suggest":"pass","label":20006,"level":20,"keyword":"命中的关键词1"},{"strategy":"keyword","errcode":0,"suggest":"risky","label":20006,"level":90,"keyword":"命中的关键词2"}] | ||
* trace_id : 60ae120f-371d5872-7941a05b | ||
*/ | ||
@SerializedName("result") | ||
private ResultBean result; | ||
@SerializedName("trace_id") | ||
private String traceId; | ||
@SerializedName("detail") | ||
private List<DetailBean> detail; | ||
|
||
@Data | ||
@Builder | ||
public static class ResultBean implements Serializable { | ||
/** | ||
* suggest : risky | ||
* label : 20001 | ||
*/ | ||
|
||
@SerializedName("suggest") | ||
private String suggest; | ||
@SerializedName("label") | ||
private String label; | ||
} | ||
|
||
@Data | ||
@Builder | ||
public static class DetailBean implements Serializable { | ||
/** | ||
* strategy : content_model | ||
* errcode : 0 | ||
* suggest : risky | ||
* label : 20006 | ||
* prob : 90 | ||
* level : 20 | ||
* keyword : 命中的关键词1 | ||
*/ | ||
|
||
@SerializedName("strategy") | ||
private String strategy; | ||
@SerializedName("errcode") | ||
private Integer errcode; | ||
@SerializedName("suggest") | ||
private String suggest; | ||
@SerializedName("label") | ||
private String label; | ||
@SerializedName("prob") | ||
private Integer prob; | ||
@SerializedName("level") | ||
private String level; | ||
@SerializedName("keyword") | ||
private String keyword; | ||
} | ||
} |
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