mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 08:37:32 +08:00
:art: 规范化代码,优化命名
This commit is contained in:
parent
b01f919932
commit
2845bab6a9
@ -6,7 +6,7 @@ import me.chanjar.weixin.common.error.WxErrorException;
|
||||
import me.chanjar.weixin.open.bean.ma.WxMaPrefetchDomain;
|
||||
import me.chanjar.weixin.open.bean.ma.WxMaScheme;
|
||||
import me.chanjar.weixin.open.bean.message.WxOpenMaSubmitAuditMessage;
|
||||
import me.chanjar.weixin.open.bean.message.WxOpenMaVerifybetaweappMessage;
|
||||
import me.chanjar.weixin.open.bean.message.WxOpenMaVerifyBetaWeappMessage;
|
||||
import me.chanjar.weixin.open.bean.result.*;
|
||||
|
||||
import java.io.File;
|
||||
@ -116,7 +116,7 @@ public interface WxOpenMaService extends WxMaService {
|
||||
/**
|
||||
* 3. 试用小程序快速认证
|
||||
*/
|
||||
String API_VERIFYBETAWEAPP = "https://api.weixin.qq.com/wxa/verifybetaweapp";
|
||||
String API_VERIFY_BETA_WEAPP = "https://api.weixin.qq.com/wxa/verifybetaweapp";
|
||||
|
||||
/**
|
||||
* 4. 获取授权小程序帐号的可选类目
|
||||
@ -451,11 +451,11 @@ public interface WxOpenMaService extends WxMaService {
|
||||
/**
|
||||
* 试用小程序快速认证
|
||||
*
|
||||
* @param verifybetaweappMessage the verify mini program message
|
||||
* @param verifyBetaWeappMessage the verify mini program message
|
||||
* @return the wx open result
|
||||
* @throws WxErrorException the wx error exception
|
||||
*/
|
||||
WxOpenResult verifybetaweapp(WxOpenMaVerifybetaweappMessage verifybetaweappMessage) throws WxErrorException;
|
||||
WxOpenResult verifyBetaWeapp(WxOpenMaVerifyBetaWeappMessage verifyBetaWeappMessage) throws WxErrorException;
|
||||
|
||||
/**
|
||||
* 获取授权小程序帐号的可选类目
|
||||
|
@ -18,7 +18,7 @@ import me.chanjar.weixin.open.bean.ma.WxMaPrefetchDomain;
|
||||
import me.chanjar.weixin.open.bean.ma.WxMaQrcodeParam;
|
||||
import me.chanjar.weixin.open.bean.ma.WxMaScheme;
|
||||
import me.chanjar.weixin.open.bean.message.WxOpenMaSubmitAuditMessage;
|
||||
import me.chanjar.weixin.open.bean.message.WxOpenMaVerifybetaweappMessage;
|
||||
import me.chanjar.weixin.open.bean.message.WxOpenMaVerifyBetaWeappMessage;
|
||||
import me.chanjar.weixin.open.bean.result.*;
|
||||
import me.chanjar.weixin.open.executor.MaQrCodeRequestExecutor;
|
||||
|
||||
@ -220,8 +220,8 @@ public class WxOpenMaServiceImpl extends WxMaServiceImpl implements WxOpenMaServ
|
||||
}
|
||||
|
||||
@Override
|
||||
public WxOpenResult verifybetaweapp(WxOpenMaVerifybetaweappMessage verifybetaweappMessage) throws WxErrorException {
|
||||
String response = post(API_VERIFYBETAWEAPP, GSON.toJson(verifybetaweappMessage));
|
||||
public WxOpenResult verifyBetaWeapp(WxOpenMaVerifyBetaWeappMessage verifyBetaWeappMessage) throws WxErrorException {
|
||||
String response = post(API_VERIFY_BETA_WEAPP, GSON.toJson(verifyBetaWeappMessage));
|
||||
return WxMaGsonBuilder.create().fromJson(response, WxOpenResult.class);
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,8 @@ import java.io.Serializable;
|
||||
* created on 2023/12/19
|
||||
*/
|
||||
@Data
|
||||
public class WxMaVerifybetaweappVerifyInfo implements Serializable {
|
||||
public class WxMaVerifyBetaWeappVerifyInfo implements Serializable {
|
||||
private static final long serialVersionUID = 2128265093276395400L;
|
||||
|
||||
/**
|
||||
* 企业名(需与工商部门登记信息一致);如果是“无主体名称个体工商户”则填“个体户+法人姓名”,例如“个体户张三”
|
@ -2,7 +2,7 @@ package me.chanjar.weixin.open.bean.message;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import me.chanjar.weixin.open.bean.ma.WxMaVerifybetaweappVerifyInfo;
|
||||
import me.chanjar.weixin.open.bean.ma.WxMaVerifyBetaWeappVerifyInfo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@ -13,12 +13,12 @@ import java.io.Serializable;
|
||||
* created on 2018/9/13
|
||||
*/
|
||||
@Data
|
||||
public class WxOpenMaVerifybetaweappMessage implements Serializable {
|
||||
public class WxOpenMaVerifyBetaWeappMessage implements Serializable {
|
||||
private static final long serialVersionUID = 4595618023108631478L;
|
||||
|
||||
/**
|
||||
* 企业法人认证需要的信息
|
||||
*/
|
||||
@SerializedName("verify_info")
|
||||
private WxMaVerifybetaweappVerifyInfo verifyInfo;
|
||||
private WxMaVerifyBetaWeappVerifyInfo verifyInfo;
|
||||
}
|
Loading…
Reference in New Issue
Block a user