mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
增加微信支付 授权码查询OPENID接口API #101
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package com.github.binarywang.wxpay.bean.request;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 授权码查询openid接口请求对象类
|
||||
* Created by Binary Wang on 2017-3-27.
|
||||
* @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a>
|
||||
* </pre>
|
||||
*/
|
||||
@XStreamAlias("xml")
|
||||
public class WxPayAuthcode2OpenidRequest extends WxPayBaseRequest {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 授权码
|
||||
* auth_code
|
||||
* 是
|
||||
* String(128)
|
||||
* 扫码支付授权码,设备读取用户微信中的条码或者二维码信息
|
||||
* </pre>
|
||||
*/
|
||||
@XStreamAlias("auth_code")
|
||||
private String authCode;
|
||||
|
||||
public WxPayAuthcode2OpenidRequest() {
|
||||
}
|
||||
|
||||
public WxPayAuthcode2OpenidRequest(String authCode) {
|
||||
this.authCode = authCode;
|
||||
}
|
||||
|
||||
public String getAuthCode() {
|
||||
return this.authCode;
|
||||
}
|
||||
|
||||
public void setAuthCode(String authCode) {
|
||||
this.authCode = authCode;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkConstraints() {
|
||||
// nothing to do
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.github.binarywang.wxpay.bean.result;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 授权码查询openid接口请求结果类
|
||||
* Created by Binary Wang on 2017-3-27.
|
||||
* @author <a href="https://github.com/binarywang">binarywang(Binary Wang)</a>
|
||||
* </pre>
|
||||
*/
|
||||
@XStreamAlias("xml")
|
||||
public class WxPayAuthcode2OpenidResult extends WxPayBaseResult {
|
||||
/**
|
||||
* <pre>
|
||||
* 用户标识
|
||||
* openid
|
||||
* 是
|
||||
* String(128)
|
||||
* 用户在商户appid下的唯一标识
|
||||
* </pre>
|
||||
*/
|
||||
@XStreamAlias("openid")
|
||||
private String openid;
|
||||
|
||||
public WxPayAuthcode2OpenidResult() {
|
||||
}
|
||||
|
||||
public WxPayAuthcode2OpenidResult(String openid) {
|
||||
this.openid = openid;
|
||||
}
|
||||
|
||||
public String getOpenid() {
|
||||
return this.openid;
|
||||
}
|
||||
|
||||
public void setOpenid(String openid) {
|
||||
this.openid = openid;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user