mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
#1002 增加微信OCR身份证识别接口
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package me.chanjar.weixin.mp.bean.ocr;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import me.chanjar.weixin.mp.bean.result.WxMpQrCodeTicket;
|
||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* OCR身份证识别结果.
|
||||
*
|
||||
* @author <a href="https://github.com/binarywang">Binary Wang</a>
|
||||
* @date 2019-06-23
|
||||
*/
|
||||
@Data
|
||||
public class WxMpOcrIdCardResult implements Serializable {
|
||||
private static final long serialVersionUID = 8184352486986729980L;
|
||||
|
||||
@SerializedName("type")
|
||||
private String type;
|
||||
@SerializedName("name")
|
||||
private String name;
|
||||
@SerializedName("id")
|
||||
private String id;
|
||||
@SerializedName("valid_date")
|
||||
private String validDate;
|
||||
|
||||
public static WxMpOcrIdCardResult fromJson(String json) {
|
||||
return WxMpGsonBuilder.create().fromJson(json, WxMpOcrIdCardResult.class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user