up
This commit is contained in:
parent
9dc82b9946
commit
a6adeec5e4
@ -859,15 +859,15 @@
|
||||
</error>
|
||||
<error>
|
||||
<code>60027</code>
|
||||
<text>主页型应用不支持调用该接口</text>
|
||||
<text>不支持第三方修改主页型应用字段</text>
|
||||
</error>
|
||||
<error>
|
||||
<code>60028</code>
|
||||
<text>应用已授权予第三方,不允许通过分级管理员主页url</text>
|
||||
<text>应用已授权予第三方,不允许通过接口修改主页url</text>
|
||||
</error>
|
||||
<error>
|
||||
<code>60029</code>
|
||||
<text>应用已授权予第三方,不允许通过分级管理员修改可信域名</text>
|
||||
<text>应用已授权予第三方,不允许通过接口修改可信域名</text>
|
||||
</error>
|
||||
<error>
|
||||
<code>60102</code>
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
package com.foxinmy.weixin4j.qy.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.foxinmy.weixin4j.qy.type.CorpType;
|
||||
import com.foxinmy.weixin4j.qy.type.CorporateType;
|
||||
|
||||
/**
|
||||
* 授权方企业号信息
|
||||
@ -57,6 +59,21 @@ public class CorpInfo implements Serializable {
|
||||
*/
|
||||
@JSONField(name = "corp_wxqrcode")
|
||||
private String wxQrCode;
|
||||
/**
|
||||
* 所绑定的企业号主体名称
|
||||
*/
|
||||
@JSONField(name = "corp_full_name")
|
||||
private String fullName;
|
||||
/**
|
||||
* 认证到期时间
|
||||
*/
|
||||
@JSONField(name = "verified_end_time")
|
||||
private long verifiedEndTime;
|
||||
/**
|
||||
* 企业类型
|
||||
*/
|
||||
@JSONField(name = "subject_type")
|
||||
private int corporateType;
|
||||
|
||||
public String getCorpId() {
|
||||
return corpId;
|
||||
@ -95,6 +112,30 @@ public class CorpInfo implements Serializable {
|
||||
return wxQrCode;
|
||||
}
|
||||
|
||||
public String getFullName() {
|
||||
return fullName;
|
||||
}
|
||||
|
||||
public long getVerifiedEndTime() {
|
||||
return verifiedEndTime;
|
||||
}
|
||||
|
||||
@JSONField(serialize = false)
|
||||
public Date getFormatVerifiedEndTime() {
|
||||
return verifiedEndTime > 0l ? new Date(verifiedEndTime * 1000l) : null;
|
||||
}
|
||||
|
||||
public int getCorporateType() {
|
||||
return corporateType;
|
||||
}
|
||||
|
||||
@JSONField(serialize = false)
|
||||
public CorporateType getFormatCorporateType() {
|
||||
return corporateType > 0
|
||||
&& corporateType <= CorporateType.values().length ? CorporateType
|
||||
.values()[corporateType - 1] : null;
|
||||
}
|
||||
|
||||
// ---------- setter 应该全部去掉
|
||||
|
||||
public void setCorpId(String corpId) {
|
||||
@ -129,12 +170,25 @@ public class CorpInfo implements Serializable {
|
||||
this.wxQrCode = wxQrCode;
|
||||
}
|
||||
|
||||
public void setFullName(String fullName) {
|
||||
this.fullName = fullName;
|
||||
}
|
||||
|
||||
public void setVerifiedEndTime(long verifiedEndTime) {
|
||||
this.verifiedEndTime = verifiedEndTime;
|
||||
}
|
||||
|
||||
public void setCorporateType(int corporateType) {
|
||||
this.corporateType = corporateType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CorpInfo [corpType=" + corpId + ", corpName=" + corpName
|
||||
return "CorpInfo [corpId=" + corpId + ", corpName=" + corpName
|
||||
+ ", squareLogoUrl=" + squareLogoUrl + ", roundLogoUrl="
|
||||
+ roundLogoUrl + ", corpType=" + corpType + ", userMax="
|
||||
+ userMax + ", agentMax=" + agentMax + ", wxQrCode=" + wxQrCode
|
||||
+ "]";
|
||||
+ ", fullName=" + fullName + ", verifiedEndTime="
|
||||
+ verifiedEndTime + ", corporateType=" + corporateType + "]";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.foxinmy.weixin4j.qy.type;
|
||||
|
||||
/**
|
||||
* 企业类型
|
||||
*
|
||||
* @className CorporateType
|
||||
* @author jy
|
||||
* @date 2016年3月12日
|
||||
* @since JDK 1.6
|
||||
* @see
|
||||
*/
|
||||
public enum CorporateType {
|
||||
/**
|
||||
* 企业
|
||||
*/
|
||||
CORP,
|
||||
/**
|
||||
* 政府以及事业单位
|
||||
*/
|
||||
GOVINS,
|
||||
/**
|
||||
* 其他组织
|
||||
*/
|
||||
OTHER,
|
||||
/**
|
||||
* 团队号
|
||||
*/
|
||||
TEAM;
|
||||
}
|
||||
@ -59,4 +59,4 @@ public abstract class MultipleMessageHandlerAdapter implements
|
||||
public int weight() {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -15,6 +15,7 @@ import com.foxinmy.weixin4j.response.WeixinResponse;
|
||||
* @date 2015年5月7日
|
||||
* @since JDK 1.6
|
||||
* @see MessageHandlerAdapter
|
||||
* @see MultipleMessageHandlerAdapter
|
||||
*/
|
||||
public interface WeixinMessageHandler {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user