repo stringclasses 1k
values | file_url stringlengths 96 373 | file_path stringlengths 11 294 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 6
values | commit_sha stringclasses 1k
values | retrieved_at stringdate 2026-01-04 14:45:56 2026-01-04 18:30:23 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WxCpSecondVerificationInfo.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WxCpSecondVerificationInfo.java | package me.chanjar.weixin.cp.bean.workbench;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* @author Hugo
* <pre>
* 获取用户二次验证信息的结果类
* </pre>
* <p>
* <a href="https://developer.work.weixin.qq.com/document/path/99499">文档</a>
*/
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class WxCpSecondVerificationInfo implements Serializable {
private static final long serialVersionUID = -4301564507150486556L;
private String userId;
@SerializedName("tfa_code")
private String tfaCode;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchKeyData.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchKeyData.java | package me.chanjar.weixin.cp.bean.workbench;
import lombok.Data;
import java.io.Serializable;
/**
* The type Work bench key data.
*
* @author songshiyu created on : create in 10:21 2020/9/28
* 关键数据型模板类型
*/
@Data
public class WorkBenchKeyData implements Serializable {
/*
* 关键数据名称
* */
private String key;
/*
* 关键数据
* */
private String data;
/*
* 点击跳转url,若不填且应用设置了主页url,则跳转到主页url,否则跳到应用会话窗口
* */
private String jumpUrl;
/*
* 若应用为小程序类型,该字段填小程序pagepath,若未设置,跳到小程序主页
* */
private String pagePath;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/workbench/WorkBenchList.java | package me.chanjar.weixin.cp.bean.workbench;
import lombok.Data;
import java.io.Serializable;
/**
* 列表模板类型 *
*
* @author songshiyu
* created at 10:21 2020/9/28
*/
@Data
public class WorkBenchList implements Serializable {
private static final long serialVersionUID = -7892708831294949257L;
/**
* 列表显示文字,不超过128个字节
*/
private String title;
/**
* 点击跳转url,若不填且应用设置了主页url,则跳转到主页url,否则跳到应用会话窗口
*/
private String jumpUrl;
/**
* 若应用为小程序类型,该字段填小程序pagepath,若未设置,跳到小程序主页
*/
private String pagePath;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java | package me.chanjar.weixin.cp.bean.license;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* 激活码信息
* 文档地址:https://developer.work.weixin.qq.com/document/path/95553
*
* @author Totoro created on 2022/6/27 14:34
*/
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseActiveCodeInfo extends WxCpTpLicenseBaseAccount {
private static final long serialVersionUID = 7696395903786956694L;
@SerializedName("active_code")
private String activeCode;
private Integer status;
@SerializedName("create_time")
private Long createTime;
@SerializedName("active_time")
private Long activeTime;
@SerializedName("expire_time")
private Long expireTime;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java | package me.chanjar.weixin.cp.bean.license;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* 许可证账号基础类
*
* @author Totoro created on 2022/6/27 14:39
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseBaseAccount implements Serializable {
private static final long serialVersionUID = 7075253491688740047L;
/**
* 用户ID
*/
private String userid;
/**
* 类型
*/
private Integer type;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java | package me.chanjar.weixin.cp.bean.license;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* The type Wx cp tp license invalid account.
*
* @author Totoro created on 2022-6-27 15:35:30
*/
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseInvalidAccount extends WxCpTpLicenseBaseAccount {
private static final long serialVersionUID = -3706481243147500720L;
@SerializedName("errcode")
private Integer errorCode;
@SerializedName("errmsg")
private String errMsg;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java | package me.chanjar.weixin.cp.bean.license;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* The type Wx cp tp license simple order.
*
* @author Totoro created on 2022/6/27 11:38
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseSimpleOrder implements Serializable {
private static final long serialVersionUID = -4094302825442292644L;
@SerializedName("order_id")
private String orderId;
@SerializedName("order_type")
private Integer orderType;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java | package me.chanjar.weixin.cp.bean.license;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* The type Wx cp tp license active account.
*
* @author Totoro created on 2022-6-27 16:26:35
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseActiveAccount implements Serializable {
private static final long serialVersionUID = -2382681430861137803L;
/**
* 用户ID
*/
private String userid;
/**
* 激活码
*/
@SerializedName("active_code")
private String activeCode;
/**
* 激活状态 0为成功
* 此值在请求激活时无需传入
*/
@SerializedName("errcode")
private Integer errCode;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java | package me.chanjar.weixin.cp.bean.license;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* 详细的订单信息
* 文档地址:https://developer.work.weixin.qq.com/document/path/95648
*
* @author Totoro created on 2022/6/27 11:38
*/
@Data
public class WxCpTpLicenseOrder implements Serializable {
private static final long serialVersionUID = -4094302825442292644L;
@SerializedName("order_id")
private String orderId;
@SerializedName("order_type")
private Integer orderType;
@SerializedName("order_status")
private Integer orderStatus;
@SerializedName("corpid")
private String corpId;
@SerializedName("price")
private Long price;
@SerializedName("account_count")
private WxCpTpLicenseAccountCount accountCount;
@SerializedName("account_duration")
private WxCpTpLicenseAccountDuration accountDuration;
@SerializedName("create_time")
private Long createTime;
@SerializedName("pay_time")
private Long payTime;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseTransfer.java | package me.chanjar.weixin.cp.bean.license;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* 基础的信息
*
* @author Totoro created on 2022/6/27 15:50
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseTransfer implements Serializable {
private static final long serialVersionUID = -5194757640985570778L;
/**
* 转移成员加密的userid
*/
@SerializedName("handover_userid")
private String handoverUserId;
/**
* 接收成员加密的userid
*/
@SerializedName("takeover_userid")
private String takeoverUserId;
/**
* 基础成功标识符,在请求继承的时候无需传入该参数,参数为企业微信返回
* 0为成功
*/
@SerializedName("errcode")
private Integer errCode;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java | package me.chanjar.weixin.cp.bean.license;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* The type Wx cp tp license corp account.
*
* @author Totoro created on 2022/6/27 15:21
*/
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseCorpAccount extends WxCpTpLicenseBaseAccount {
private static final long serialVersionUID = -5856054486686123753L;
@SerializedName("active_time")
private Long activeTime;
@SerializedName("expire_time")
private Long expireTime;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java | package me.chanjar.weixin.cp.bean.license;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
* 订单账号信息
*
* @author Totoro created on 2022/6/27 14:04
*/
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseAccount extends WxCpTpLicenseBaseAccount {
private static final long serialVersionUID = 8225061160406054730L;
/**
* 激活码
*/
@SerializedName("active_code")
private String activeCode;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java | package me.chanjar.weixin.cp.bean.license;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* The type Wx cp tp license account count.
*
* @author Totoro created on 2022/6/27 11:54
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseAccountCount implements Serializable {
private static final long serialVersionUID = 8521389670723004989L;
@SerializedName("base_count")
private Integer baseCount;
@SerializedName("external_contact_count")
private Integer externalContactCount;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java | package me.chanjar.weixin.cp.bean.license;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* The type Wx cp tp license account duration.
*
* @author Totoro created on 2022-6-27 11:22:53
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseAccountDuration implements Serializable {
private static final long serialVersionUID = 7960912263908286975L;
private Integer months;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCorpAccountListResp.java | package me.chanjar.weixin.cp.bean.license.account;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseCorpAccount;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 企业的帐号列表(已激活)
* 文档地址:https://developer.work.weixin.qq.com/document/path/95544
*
* @author Totoro created on 2022/6/27 15:15
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class WxCpTpLicenseCorpAccountListResp extends WxCpBaseResp {
private static final long serialVersionUID = -7976008813041959375L;
@SerializedName("next_cursor")
private String nextCursor;
@SerializedName("has_more")
private Integer hasMore;
@SerializedName("account_list")
private List<WxCpTpLicenseCorpAccount> orderList;
/**
* From json wx cp tp license corp account list resp.
*
* @param json the json
* @return the wx cp tp license corp account list resp
*/
public static WxCpTpLicenseCorpAccountListResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseCorpAccountListResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseCodeInfoResp.java | package me.chanjar.weixin.cp.bean.license.account;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseActiveCodeInfo;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
/**
* 查询的激活码详情
* 文档地址:https://developer.work.weixin.qq.com/document/path/95553
*
* @author Totoro created on 2022/6/27 14:28
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class WxCpTpLicenseCodeInfoResp extends WxCpBaseResp {
private static final long serialVersionUID = 8058798194938243361L;
@SerializedName("active_info")
private WxCpTpLicenseActiveCodeInfo activeCodeInfo;
/**
* From json wx cp tp license code info resp.
*
* @param json the json
* @return the wx cp tp license code info resp
*/
public static WxCpTpLicenseCodeInfoResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseCodeInfoResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchActiveResultResp.java | package me.chanjar.weixin.cp.bean.license.account;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseActiveAccount;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 批量激活帐号结果
* 文档地址:https://developer.work.weixin.qq.com/document/path/95553
*
* @author Totoro created on 2022-6-27 16:19:21
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class WxCpTpLicenseBatchActiveResultResp extends WxCpBaseResp {
private static final long serialVersionUID = 8799524570217687659L;
@SerializedName("active_result")
private List<WxCpTpLicenseActiveAccount> activeResults;
/**
* From json wx cp tp license batch active result resp.
*
* @param json the json
* @return the wx cp tp license batch active result resp
*/
public static WxCpTpLicenseBatchActiveResultResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseBatchActiveResultResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseActiveInfoByUserResp.java | package me.chanjar.weixin.cp.bean.license.account;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseActiveCodeInfo;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 某个企业成员的激活情况
* 文档地址:https://developer.work.weixin.qq.com/document/path/95555
*
* @author Totoro created on 2022-6-27 14:51:19
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class WxCpTpLicenseActiveInfoByUserResp extends WxCpBaseResp {
private static final long serialVersionUID = -5172901191911873330L;
@SerializedName("active_status")
private Integer activeStatus;
@SerializedName("active_info_list")
private List<WxCpTpLicenseActiveCodeInfo> activeInfoList;
/**
* From json wx cp tp license active info by user resp.
*
* @param json the json
* @return the wx cp tp license active info by user resp
*/
public static WxCpTpLicenseActiveInfoByUserResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseActiveInfoByUserResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchCodeInfoResp.java | package me.chanjar.weixin.cp.bean.license.account;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseActiveCodeInfo;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 批量查询的激活码详情
* 文档地址:https://developer.work.weixin.qq.com/document/path/95553
*
* @author Totoro created on 2022-6-27 14:51:19
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class WxCpTpLicenseBatchCodeInfoResp extends WxCpBaseResp {
private static final long serialVersionUID = 1327038464020790843L;
@SerializedName("active_info_list")
private List<WxCpTpLicenseActiveCodeInfo> activeCodeInfoList;
@SerializedName("invalid_active_code_list")
private List<String> invalidActiveCodeList;
/**
* From json wx cp tp license batch code info resp.
*
* @param json the json
* @return the wx cp tp license batch code info resp
*/
public static WxCpTpLicenseBatchCodeInfoResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseBatchCodeInfoResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/account/WxCpTpLicenseBatchTransferResp.java | package me.chanjar.weixin.cp.bean.license.account;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseTransfer;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 基础结果返回信息
* 文档地址:https://developer.work.weixin.qq.com/document/path/95673
*
* @author Totoro created on 2022/6/27 15:49
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class WxCpTpLicenseBatchTransferResp extends WxCpBaseResp {
private static final long serialVersionUID = 5443977430756597486L;
@SerializedName("transfer_result")
private List<WxCpTpLicenseTransfer> transferResult;
/**
* From json wx cp tp license batch transfer resp.
*
* @param json the json
* @return the wx cp tp license batch transfer resp
*/
public static WxCpTpLicenseBatchTransferResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseBatchTransferResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderAccountListResp.java | package me.chanjar.weixin.cp.bean.license.order;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseAccount;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 获取订单中的帐号列表
* 文档地址:https://developer.work.weixin.qq.com/document/path/95649
*
* @author Totoro created on 2022-6-27 14:14:40
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpTpLicenseOrderAccountListResp extends WxCpBaseResp {
private static final long serialVersionUID = 470154227651487230L;
@SerializedName("next_cursor")
private String nextCursor;
@SerializedName("has_more")
private Integer hasMore;
@SerializedName("account_list")
private List<WxCpTpLicenseAccount> accountList;
/**
* From json wx cp tp license order account list resp.
*
* @param json the json
* @return the wx cp tp license order account list resp
*/
public static WxCpTpLicenseOrderAccountListResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseOrderAccountListResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseCreateOrderResp.java | package me.chanjar.weixin.cp.bean.license.order;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
/**
* 订单创建结果
* 文档地址:https://developer.work.weixin.qq.com/document/path/95644
*
* @author Totoro created on 2022-6-27 11:26:36
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class WxCpTpLicenseCreateOrderResp extends WxCpBaseResp {
private static final long serialVersionUID = 6644560301282598903L;
@SerializedName("order_id")
private String orderId;
/**
* From json wx cp tp license create order resp.
*
* @param json the json
* @return the wx cp tp license create order resp
*/
public static WxCpTpLicenseCreateOrderResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseCreateOrderResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderInfoResp.java | package me.chanjar.weixin.cp.bean.license.order;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseOrder;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
/**
* 订单详情结果
* 文档:https://developer.work.weixin.qq.com/document/path/95648
*
* @author Totoro created on 2022/06/27 11:56:03
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class WxCpTpLicenseOrderInfoResp extends WxCpBaseResp {
private static final long serialVersionUID = 7000171280773370910L;
private WxCpTpLicenseOrder order;
/**
* From json wx cp tp license order info resp.
*
* @param json the json
* @return the wx cp tp license order info resp
*/
public static WxCpTpLicenseOrderInfoResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseOrderInfoResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobResp.java | package me.chanjar.weixin.cp.bean.license.order;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseInvalidAccount;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 创建下单购买帐号任务返回结果
* 文档地址:https://developer.work.weixin.qq.com/document/path/95646
*
* @author Totoro created on 2022-6-27 11:15:20
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class WxCpTpLicenseRenewOrderJobResp extends WxCpBaseResp {
private static final long serialVersionUID = -4469875729545594102L;
/**
* 任务ID
*/
@SerializedName("jobid")
private String jobId;
/**
* 有效的续费账号列表
*/
@SerializedName("invalid_account_list")
private List<WxCpTpLicenseInvalidAccount> invalidAccountList;
/**
* From json wx cp tp license renew order job resp.
*
* @param json the json
* @return the wx cp tp license renew order job resp
*/
public static WxCpTpLicenseRenewOrderJobResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseRenewOrderJobResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseOrderListResp.java | package me.chanjar.weixin.cp.bean.license.order;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseSimpleOrder;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 获取订单列表详情
* 文档地址:https://developer.work.weixin.qq.com/document/path/95647
*
* @author Totoro created on 2022/6/27 11:39
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpTpLicenseOrderListResp extends WxCpBaseResp {
private static final long serialVersionUID = 1878909432164961275L;
@SerializedName("next_cursor")
private String nextCursor;
@SerializedName("has_more")
private Integer hasMore;
@SerializedName("order_list")
private List<WxCpTpLicenseSimpleOrder> orderList;
/**
* From json wx cp tp license order list resp.
*
* @param json the json
* @return the wx cp tp license order list resp
*/
public static WxCpTpLicenseOrderListResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpTpLicenseOrderListResp.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderRequest.java | package me.chanjar.weixin.cp.bean.license.order;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseAccountDuration;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* 续期帐号订单
* 文档地址:https://developer.work.weixin.qq.com/document/path/95646
*
* @author Totoro created on 2022-6-27 11:21:51
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseRenewOrderRequest implements Serializable {
private static final long serialVersionUID = 8709132346969663049L;
@SerializedName("buyer_userid")
private String buyerUserId;
@SerializedName("jobid")
private String jobId;
@SerializedName("account_duration")
private WxCpTpLicenseAccountDuration accountDuration;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseNewOrderRequest.java | package me.chanjar.weixin.cp.bean.license.order;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseAccountCount;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseAccountDuration;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* 下单购买帐号
* 文档地址:https://developer.work.weixin.qq.com/document/path/95644
*
* @author Totoro created on 2022/6/27 10:52
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseNewOrderRequest implements Serializable {
private static final long serialVersionUID = 6644560301282598903L;
/**
* 企业ID
*/
@SerializedName("corpid")
private String corpId;
/**
* 购买者ID
*/
@SerializedName("buyer_userid")
private String buyerUserId;
/**
* 账号个数
*/
@SerializedName("account_count")
private WxCpTpLicenseAccountCount accountCount;
/**
* 购买市场
*/
@SerializedName("account_duration")
private WxCpTpLicenseAccountDuration accountDuration;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/order/WxCpTpLicenseRenewOrderJobRequest.java | package me.chanjar.weixin.cp.bean.license.order;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.cp.bean.license.WxCpTpLicenseBaseAccount;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 创建下单续期帐号任务
* 文档地址:https://developer.work.weixin.qq.com/document/path/95646
*
* @author Totoro created on 2022/6/27 11:12
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpTpLicenseRenewOrderJobRequest implements Serializable {
private static final long serialVersionUID = 8074896339359557034L;
/**
* 对应的企业ID
*/
@SerializedName("corpid")
private String corpId;
/**
* 续费的用户UserId
*/
@SerializedName("account_list")
private List<WxCpTpLicenseBaseAccount> accountList;
/**
* 任务id,若不传则默认创建一个新任务。若指定第一次调用后拿到jobid,可以通过该接口将jobid关联多个userid
*/
@SerializedName("jobid")
private String jobId;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/TaskCardBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/TaskCardBuilder.java | package me.chanjar.weixin.cp.bean.outxmlbuilder;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutTaskCardMessage;
/**
* 任务卡片消息builder
*
* @author tao zhang
*/
public final class TaskCardBuilder extends BaseBuilder<TaskCardBuilder, WxCpXmlOutTaskCardMessage> {
private String replaceName;
/**
* Replace name task card builder.
*
* @param replaceName the replace name
* @return the task card builder
*/
public TaskCardBuilder replaceName(String replaceName) {
this.replaceName = replaceName;
return this;
}
@Override
public WxCpXmlOutTaskCardMessage build() {
WxCpXmlOutTaskCardMessage m = new WxCpXmlOutTaskCardMessage();
setCommon(m);
m.setReplaceName(this.replaceName);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/NewsBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/NewsBuilder.java | package me.chanjar.weixin.cp.bean.outxmlbuilder;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutNewsMessage;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutNewsMessage.Item;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* 图文消息builder
*
* @author Daniel Qian
*/
public final class NewsBuilder extends BaseBuilder<NewsBuilder, WxCpXmlOutNewsMessage> {
private List<Item> articles = new ArrayList<>();
/**
* Add article news builder.
*
* @param items the items
* @return the news builder
*/
public NewsBuilder addArticle(Item... items) {
Collections.addAll(this.articles, items);
return this;
}
/**
* Articles news builder.
*
* @param articles the articles
* @return the news builder
*/
public NewsBuilder articles(List<Item> articles) {
this.articles = articles;
return this;
}
@Override
public WxCpXmlOutNewsMessage build() {
WxCpXmlOutNewsMessage m = new WxCpXmlOutNewsMessage();
for (Item item : this.articles) {
m.addArticle(item);
}
setCommon(m);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/TextBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/TextBuilder.java | package me.chanjar.weixin.cp.bean.outxmlbuilder;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutTextMessage;
/**
* 文本消息builder
*
* @author Daniel Qian
*/
public final class TextBuilder extends BaseBuilder<TextBuilder, WxCpXmlOutTextMessage> {
private String content;
/**
* Content text builder.
*
* @param content the content
* @return the text builder
*/
public TextBuilder content(String content) {
this.content = content;
return this;
}
@Override
public WxCpXmlOutTextMessage build() {
WxCpXmlOutTextMessage m = new WxCpXmlOutTextMessage();
setCommon(m);
m.setContent(this.content);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/VideoBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/VideoBuilder.java | package me.chanjar.weixin.cp.bean.outxmlbuilder;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutVideoMessage;
/**
* 视频消息builder
*
* @author Daniel Qian
*/
public final class VideoBuilder extends BaseBuilder<VideoBuilder, WxCpXmlOutVideoMessage> {
private String mediaId;
private String title;
private String description;
/**
* Title video builder.
*
* @param title the title
* @return the video builder
*/
public VideoBuilder title(String title) {
this.title = title;
return this;
}
/**
* Description video builder.
*
* @param description the description
* @return the video builder
*/
public VideoBuilder description(String description) {
this.description = description;
return this;
}
/**
* Media id video builder.
*
* @param mediaId the media id
* @return the video builder
*/
public VideoBuilder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
@Override
public WxCpXmlOutVideoMessage build() {
WxCpXmlOutVideoMessage m = new WxCpXmlOutVideoMessage();
setCommon(m);
m.setTitle(this.title);
m.setDescription(this.description);
m.setMediaId(this.mediaId);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/BaseBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/BaseBuilder.java | package me.chanjar.weixin.cp.bean.outxmlbuilder;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutMessage;
/**
* The type Base builder.
*
* @param <BuilderType> the type parameter
* @param <ValueType> the type parameter
*/
public abstract class BaseBuilder<BuilderType, ValueType> {
/**
* The To user name.
*/
protected String toUserName;
/**
* The From user name.
*/
protected String fromUserName;
/**
* To user builder type.
*
* @param touser the touser
* @return the builder type
*/
public BuilderType toUser(String touser) {
this.toUserName = touser;
return (BuilderType) this;
}
/**
* From user builder type.
*
* @param fromusername the fromusername
* @return the builder type
*/
public BuilderType fromUser(String fromusername) {
this.fromUserName = fromusername;
return (BuilderType) this;
}
/**
* Build value type.
*
* @return the value type
*/
public abstract ValueType build();
/**
* Sets common.
*
* @param m the m
*/
public void setCommon(WxCpXmlOutMessage m) {
m.setToUserName(this.toUserName);
m.setFromUserName(this.fromUserName);
m.setCreateTime(System.currentTimeMillis() / 1000L);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/UpdateButtonBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/UpdateButtonBuilder.java | package me.chanjar.weixin.cp.bean.outxmlbuilder;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutUpdateBtnMessage;
/**
* 模板卡片更新点击用户的按钮点击文案消息builder
*
* @author nickname263
*/
public class UpdateButtonBuilder extends BaseBuilder<UpdateButtonBuilder, WxCpXmlOutUpdateBtnMessage> {
private String replaceName;
/**
* Replace name update button builder.
*
* @param replaceName the replace name
* @return the update button builder
*/
public UpdateButtonBuilder replaceName(String replaceName) {
this.replaceName = replaceName;
return this;
}
@Override
public WxCpXmlOutUpdateBtnMessage build() {
WxCpXmlOutUpdateBtnMessage m = new WxCpXmlOutUpdateBtnMessage();
setCommon(m);
m.setReplaceName(this.replaceName);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/VoiceBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/VoiceBuilder.java | package me.chanjar.weixin.cp.bean.outxmlbuilder;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutVoiceMessage;
/**
* 语音消息builder
*
* @author Daniel Qian
*/
public final class VoiceBuilder extends BaseBuilder<VoiceBuilder, WxCpXmlOutVoiceMessage> {
private String mediaId;
/**
* Media id voice builder.
*
* @param mediaId the media id
* @return the voice builder
*/
public VoiceBuilder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
@Override
public WxCpXmlOutVoiceMessage build() {
WxCpXmlOutVoiceMessage m = new WxCpXmlOutVoiceMessage();
setCommon(m);
m.setMediaId(this.mediaId);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/EventBuilder.java | package me.chanjar.weixin.cp.bean.outxmlbuilder;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutEventMessage;
/**
* The type Event builder.
*
* @author eYoung
* created at 2021/12/3 16:34
*/
public class EventBuilder extends BaseBuilder<EventBuilder, WxCpXmlOutEventMessage> {
private String event;
private String chatId;
private String changeType;
private String updateDetail;
private String joinScene;
private String quitScene;
private String memChangeCnt;
private String tagType;
private String strategyId;
private String userID;
private String externalUserID;
private String state;
private String welcomeCode;
private String source;
private String failReason;
private String id;
/**
* Chat id event builder.
*
* @param chatId the chat id
* @return the event builder
*/
public EventBuilder chatId(String chatId) {
this.chatId = chatId;
return this;
}
/**
* Event event builder.
*
* @param event the event
* @return the event builder
*/
public EventBuilder event(String event) {
this.event = event;
return this;
}
/**
* Change type event builder.
*
* @param changeType the change type
* @return the event builder
*/
public EventBuilder changeType(String changeType) {
this.changeType = changeType;
return this;
}
/**
* Update detail event builder.
*
* @param updateDetail the update detail
* @return the event builder
*/
public EventBuilder updateDetail(String updateDetail) {
this.updateDetail = updateDetail;
return this;
}
/**
* Join scene event builder.
*
* @param joinScene the join scene
* @return the event builder
*/
public EventBuilder joinScene(String joinScene) {
this.joinScene = joinScene;
return this;
}
/**
* Quit scene event builder.
*
* @param quitScene the quit scene
* @return the event builder
*/
public EventBuilder quitScene(String quitScene) {
this.quitScene = quitScene;
return this;
}
/**
* Mem change cnt event builder.
*
* @param memChangeCnt the mem change cnt
* @return the event builder
*/
public EventBuilder memChangeCnt(String memChangeCnt) {
this.memChangeCnt = memChangeCnt;
return this;
}
/**
* Tag type event builder.
*
* @param tagType the tag type
* @return the event builder
*/
public EventBuilder tagType(String tagType) {
this.tagType = tagType;
return this;
}
/**
* Strategy id event builder.
*
* @param strategyId the strategy id
* @return the event builder
*/
public EventBuilder strategyId(String strategyId) {
this.strategyId = strategyId;
return this;
}
/**
* User id event builder.
*
* @param userID the user id
* @return the event builder
*/
public EventBuilder userID(String userID) {
this.userID = userID;
return this;
}
/**
* External user id event builder.
*
* @param externalUserID the external user id
* @return the event builder
*/
public EventBuilder externalUserID(String externalUserID) {
this.externalUserID = externalUserID;
return this;
}
/**
* State event builder.
*
* @param state the state
* @return the event builder
*/
public EventBuilder state(String state) {
this.state = state;
return this;
}
/**
* Source event builder.
*
* @param source the source
* @return the event builder
*/
public EventBuilder source(String source) {
this.source = source;
return this;
}
/**
* Welcome code event builder.
*
* @param welcomeCode the welcome code
* @return the event builder
*/
public EventBuilder welcomeCode(String welcomeCode) {
this.welcomeCode = welcomeCode;
return this;
}
/**
* Fail reason event builder.
*
* @param failReason the fail reason
* @return the event builder
*/
public EventBuilder failReason(String failReason) {
this.failReason = failReason;
return this;
}
/**
* Id event builder.
*
* @param id the id
* @return the event builder
*/
public EventBuilder id(String id) {
this.id = id;
return this;
}
@Override
public WxCpXmlOutEventMessage build() {
WxCpXmlOutEventMessage m = new WxCpXmlOutEventMessage();
super.setCommon(m);
m.setEvent(this.event);
m.setChatId(this.chatId);
m.setChangeType(this.changeType);
m.setUpdateDetail(this.updateDetail);
m.setJoinScene(this.joinScene);
m.setQuitScene(this.quitScene);
m.setMemChangeCnt(this.memChangeCnt);
m.setTagType(this.tagType);
m.setStrategyId(this.strategyId);
m.setUserID(this.userID);
m.setExternalUserID(this.externalUserID);
m.setState(this.state);
m.setWelcomeCode(this.welcomeCode);
m.setSource(this.source);
m.setFailReason(this.failReason);
m.setId(this.id);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/ImageBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/outxmlbuilder/ImageBuilder.java | package me.chanjar.weixin.cp.bean.outxmlbuilder;
import me.chanjar.weixin.cp.bean.message.WxCpXmlOutImageMessage;
/**
* 图片消息builder
*
* @author Daniel Qian
*/
public final class ImageBuilder extends BaseBuilder<ImageBuilder, WxCpXmlOutImageMessage> {
private String mediaId;
/**
* Media id image builder.
*
* @param media_id the media id
* @return the image builder
*/
public ImageBuilder mediaId(String media_id) {
this.mediaId = media_id;
return this;
}
@Override
public WxCpXmlOutImageMessage build() {
WxCpXmlOutImageMessage m = new WxCpXmlOutImageMessage();
setCommon(m);
m.setMediaId(this.mediaId);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MpnewsBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MpnewsBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.article.MpnewsArticle;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* mpnews类型的图文消息builder
* <pre>
* 用法:
* WxCustomMessage m = WxCustomMessage.MPNEWS().addArticle(article).toUser(...).build();
* </pre>
*
* @author Binary Wang
*/
public final class MpnewsBuilder extends BaseBuilder<MpnewsBuilder> {
private List<MpnewsArticle> articles = new ArrayList<>();
private String mediaId;
/**
* Instantiates a new Mpnews builder.
*/
public MpnewsBuilder() {
this.msgType = WxConsts.KefuMsgType.MPNEWS;
}
/**
* Media id mpnews builder.
*
* @param mediaId the media id
* @return the mpnews builder
*/
public MpnewsBuilder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* Add article mpnews builder.
*
* @param articles the articles
* @return the mpnews builder
*/
public MpnewsBuilder addArticle(MpnewsArticle... articles) {
Collections.addAll(this.articles, articles);
return this;
}
/**
* Articles mpnews builder.
*
* @param articles the articles
* @return the mpnews builder
*/
public MpnewsBuilder articles(List<MpnewsArticle> articles) {
this.articles = articles;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setMpnewsArticles(this.articles);
if (this.mediaId != null) {
m.setMediaId(this.mediaId);
}
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextCardBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextCardBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
/**
* <pre>
* 文本卡片消息Builder
* 用法: WxCustomMessage m = WxCustomMessage.TEXTCARD().title(...)....toUser(...).build();
* Created by Binary Wang on 2017-7-2.
* </pre>
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
*/
public class TextCardBuilder extends BaseBuilder<TextCardBuilder> {
private String title;
private String description;
private String url;
private String btnTxt;
/**
* Instantiates a new Text card builder.
*/
public TextCardBuilder() {
this.msgType = WxConsts.KefuMsgType.TEXTCARD;
}
/**
* Title text card builder.
*
* @param title the title
* @return the text card builder
*/
public TextCardBuilder title(String title) {
this.title = title;
return this;
}
/**
* Description text card builder.
*
* @param description the description
* @return the text card builder
*/
public TextCardBuilder description(String description) {
this.description = description;
return this;
}
/**
* Url text card builder.
*
* @param url the url
* @return the text card builder
*/
public TextCardBuilder url(String url) {
this.url = url;
return this;
}
/**
* Btn txt text card builder.
*
* @param btnTxt the btn txt
* @return the text card builder
*/
public TextCardBuilder btnTxt(String btnTxt) {
this.btnTxt = btnTxt;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setTitle(this.title);
m.setDescription(this.description);
m.setUrl(this.url);
m.setBtnTxt(this.btnTxt);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TaskCardBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TaskCardBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
import me.chanjar.weixin.cp.bean.taskcard.TaskCardButton;
import java.util.List;
/**
* <pre>
* 任务卡片消息Builder
* 用法: WxCustomMessage m = WxCustomMessage.TASKCARD().title(...)....toUser(...).build();
* </pre>
*
* @author <a href="https://github.com/domainname">Jeff</a> created on 2019-05-16
*/
public class TaskCardBuilder extends BaseBuilder<TaskCardBuilder> {
private String title;
private String description;
private String url;
private String taskId;
/**
* 按钮个数为1~2个
*/
private List<TaskCardButton> buttons;
/**
* Instantiates a new Task card builder.
*/
public TaskCardBuilder() {
this.msgType = WxConsts.KefuMsgType.TASKCARD;
}
/**
* Title task card builder.
*
* @param title the title
* @return the task card builder
*/
public TaskCardBuilder title(String title) {
this.title = title;
return this;
}
/**
* Description task card builder.
*
* @param description the description
* @return the task card builder
*/
public TaskCardBuilder description(String description) {
this.description = description;
return this;
}
/**
* Url task card builder.
*
* @param url the url
* @return the task card builder
*/
public TaskCardBuilder url(String url) {
this.url = url;
return this;
}
/**
* Task id task card builder.
*
* @param taskId the task id
* @return the task card builder
*/
public TaskCardBuilder taskId(String taskId) {
this.taskId = taskId;
return this;
}
/**
* Buttons task card builder.
*
* @param buttons the buttons
* @return the task card builder
*/
public TaskCardBuilder buttons(List<TaskCardButton> buttons) {
this.buttons = buttons;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setSafe(null);
m.setTitle(this.title);
m.setDescription(this.description);
m.setUrl(this.url);
m.setTaskId(this.taskId);
m.setTaskButtons(this.buttons);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/FileBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/FileBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
/**
* 获得消息builder
* <pre>
* 用法: WxCustomMessage m = WxCustomMessage.FILE().mediaId(...).toUser(...).build();
* </pre>
*
* @author Daniel Qian
*/
public final class FileBuilder extends BaseBuilder<FileBuilder> {
private String mediaId;
/**
* Instantiates a new File builder.
*/
public FileBuilder() {
this.msgType = WxConsts.KefuMsgType.FILE;
}
/**
* Media id file builder.
*
* @param mediaId the media id
* @return the file builder
*/
public FileBuilder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setMediaId(this.mediaId);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TemplateCardBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
import me.chanjar.weixin.cp.bean.templatecard.*;
import java.util.List;
/**
* <pre>
* 模板卡片消息Builder
* 用法: WxCustomMessage m = WxCustomMessage.TEMPLATECARD().title(...)....toUser(...).build();
* </pre>
*
* @author yzts</ a> created on 2019-05-16
*/
public class TemplateCardBuilder extends BaseBuilder<TemplateCardBuilder> {
/**
* 模板卡片类型,文本通知型卡片填写 “text_notice”,
* 图文展示型卡片此处填写 “news_notice”,
* 按钮交互型卡片填写”button_interaction”,
* 投票选择型卡片填写”vote_interaction”,
* 多项选择型卡片填写 “multiple_interaction”
*/
private String cardType;
/**
* 卡片来源样式信息,不需要来源样式可不填写
* 来源图片的url
*/
private String sourceIconUrl;
/**
* 卡片来源样式信息,不需要来源样式可不填写
* 来源图片的描述,建议不超过20个字
*/
private String sourceDesc;
/**
* 来源文字的颜色,目前支持:0(默认) 灰色,1 黑色,2 红色,3 绿色
*/
private Integer sourceDescColor;
/**
* 更多操作界面的描述
*/
private String actionMenuDesc;
/**
* 操作列表,列表长度取值范围为 [1, 3]
*/
private List<ActionMenuItem> actionMenuActionList;
/**
* 一级标题,建议不超过36个字
*/
private String mainTitleTitle;
/**
* 标题辅助信息,建议不超过44个字
*/
private String mainTitleDesc;
/**
* 图文展示型的卡片必须有图片字段。
* 图片的url.
*/
private String cardImageUrl;
/**
* 图片的宽高比,宽高比要小于2.25,大于1.3,不填该参数默认1.3
*/
private Float cardImageAspectRatio;
/**
* 关键数据样式
* 关键数据样式的数据内容,建议不超过14个字
*/
private String emphasisContentTitle;
/**
* 关键数据样式的数据描述内容,建议不超过22个字
*/
private String emphasisContentDesc;
/**
* 二级普通文本,建议不超过160个字
*/
private String subTitleText;
/**
* 卡片二级垂直内容,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过4
*/
private List<VerticalContent> verticalContents;
/**
* 二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6
*/
private List<HorizontalContent> horizontalContents;
/**
* 跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过3
*/
private List<TemplateCardJump> jumps;
/**
* 左图右文样式,news_notice类型的卡片,card_image 和 image_text_area 两者必填一个字段,不可都不填
*/
private TemplateCardImageTextArea imageTextArea;
/**
* 整体卡片的点击跳转事件,text_notice必填本字段
* 跳转事件类型,1 代表跳转url,2 代表打开小程序。text_notice卡片模版中该字段取值范围为[1,2]
*/
private Integer cardActionType;
/**
* 跳转事件的url,card_action.type是1时必填
*/
private String cardActionUrl;
/**
* 跳转事件的小程序的appid,必须是与当前应用关联的小程序,card_action.type是2时必填
*/
private String cardActionAppid;
/**
* 跳转事件的小程序的pagepath,card_action.type是2时选填
*/
private String cardActionPagepath;
/**
* 任务id,同一个应用任务id不能重复,只能由数字、字母和“_-@”组成,最长128字节
*/
private String taskId;
/**
* 按钮交互型卡片需指定。
* button_selection
*/
private TemplateCardButtonSelection buttonSelection;
/**
* 按钮交互型卡片需指定。
* 按钮列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6
*/
private List<TemplateCardButton> buttons;
/**
* 投票选择型卡片需要指定
* 选择题key值,用户提交选项后,会产生回调事件,回调事件会带上该key值表示该题,最长支持1024字节
*/
private String checkboxQuestionKey;
/**
* 选择题模式,单选:0,多选:1,不填默认0
*/
private Integer checkboxMode;
/**
* 选项list,选项个数不超过 20 个,最少1个
*/
private List<CheckboxOption> options;
/**
* 提交按钮样式
* 按钮文案,建议不超过10个字,不填默认为提交
*/
private String submitButtonText;
/**
* 提交按钮的key,会产生回调事件将本参数作为EventKey返回,最长支持1024字节
*/
private String submitButtonKey;
/**
* 下拉式的选择器列表,multiple_interaction类型的卡片该字段不可为空,一个消息最多支持 3 个选择器
*/
private List<MultipleSelect> selects;
/**
* 引用文献样式
*/
private QuoteArea quoteArea;
/**
* Instantiates a new Template card builder.
*/
public TemplateCardBuilder() {
this.msgType = WxConsts.KefuMsgType.TEMPLATE_CARD;
}
/**
* Card type template card builder.
*
* @param cardType the card type
* @return the template card builder
*/
public TemplateCardBuilder cardType(String cardType) {
this.cardType = cardType;
return this;
}
/**
* Card image url template card builder.
*
* @param cardImageUrl the card image url
* @return the template card builder
*/
public TemplateCardBuilder cardImageUrl(String cardImageUrl) {
this.cardImageUrl = cardImageUrl;
return this;
}
/**
* Card image aspect ratio template card builder.
*
* @param cardImageAspectRatio the card image aspect ratio
* @return the template card builder
*/
public TemplateCardBuilder cardImageAspectRatio(Float cardImageAspectRatio) {
this.cardImageAspectRatio = cardImageAspectRatio;
return this;
}
/**
* Action menu desc template card builder.
*
* @param actionMenuDesc the action menu desc
* @return the template card builder
*/
public TemplateCardBuilder actionMenuDesc(String actionMenuDesc) {
this.actionMenuDesc = actionMenuDesc;
return this;
}
/**
* Action menu action list template card builder.
*
* @param actionMenuItemList the action menu item list
* @return the template card builder
*/
public TemplateCardBuilder actionMenuActionList(List<ActionMenuItem> actionMenuItemList) {
this.actionMenuActionList = actionMenuItemList;
return this;
}
/**
* Source icon url template card builder.
*
* @param sourceIconUrl the source icon url
* @return the template card builder
*/
public TemplateCardBuilder sourceIconUrl(String sourceIconUrl) {
this.sourceIconUrl = sourceIconUrl;
return this;
}
/**
* Source desc template card builder.
*
* @param sourceDesc the source desc
* @return the template card builder
*/
public TemplateCardBuilder sourceDesc(String sourceDesc) {
this.sourceDesc = sourceDesc;
return this;
}
/**
* Source desc color template card builder.
*
* @param sourceDescColor the source desc color
* @return the template card builder
*/
public TemplateCardBuilder sourceDescColor(Integer sourceDescColor) {
this.sourceDescColor = sourceDescColor;
return this;
}
/**
* Main title title template card builder.
*
* @param mainTitleTitle the main title title
* @return the template card builder
*/
public TemplateCardBuilder mainTitleTitle(String mainTitleTitle) {
this.mainTitleTitle = mainTitleTitle;
return this;
}
/**
* Main title desc template card builder.
*
* @param mainTitleDesc the main title desc
* @return the template card builder
*/
public TemplateCardBuilder mainTitleDesc(String mainTitleDesc) {
this.mainTitleDesc = mainTitleDesc;
return this;
}
/**
* Emphasis content title template card builder.
*
* @param emphasisContentTitle the emphasis content title
* @return the template card builder
*/
public TemplateCardBuilder emphasisContentTitle(String emphasisContentTitle) {
this.emphasisContentTitle = emphasisContentTitle;
return this;
}
/**
* Emphasis content desc template card builder.
*
* @param emphasisContentDesc the emphasis content desc
* @return the template card builder
*/
public TemplateCardBuilder emphasisContentDesc(String emphasisContentDesc) {
this.emphasisContentDesc = emphasisContentDesc;
return this;
}
/**
* Sub title text template card builder.
*
* @param subTitleText the sub title text
* @return the template card builder
*/
public TemplateCardBuilder subTitleText(String subTitleText) {
this.subTitleText = subTitleText;
return this;
}
/**
* Vertical contents template card builder.
*
* @param verticalContents the vertical contents
* @return the template card builder
*/
public TemplateCardBuilder verticalContents(List<VerticalContent> verticalContents) {
this.verticalContents = verticalContents;
return this;
}
/**
* Horizontal contents template card builder.
*
* @param horizontalContents the horizontal contents
* @return the template card builder
*/
public TemplateCardBuilder horizontalContents(List<HorizontalContent> horizontalContents) {
this.horizontalContents = horizontalContents;
return this;
}
/**
* Jumps template card builder.
*
* @param jumps the jumps
* @return the template card builder
*/
public TemplateCardBuilder jumps(List<TemplateCardJump> jumps) {
this.jumps = jumps;
return this;
}
/**
* image_text_area template card builder.
*
* @param imageTextArea the card image_text_area
* @return the template card builder
*/
public TemplateCardBuilder imageTextArea(TemplateCardImageTextArea imageTextArea) {
this.imageTextArea = imageTextArea;
return this;
}
/**
* Card action type template card builder.
*
* @param cardActionType the card action type
* @return the template card builder
*/
public TemplateCardBuilder cardActionType(Integer cardActionType) {
this.cardActionType = cardActionType;
return this;
}
/**
* Card action url template card builder.
*
* @param cardActionUrl the card action url
* @return the template card builder
*/
public TemplateCardBuilder cardActionUrl(String cardActionUrl) {
this.cardActionUrl = cardActionUrl;
return this;
}
/**
* Card action appid template card builder.
*
* @param cardActionAppid the card action appid
* @return the template card builder
*/
public TemplateCardBuilder cardActionAppid(String cardActionAppid) {
this.cardActionAppid = cardActionAppid;
return this;
}
/**
* Card action pagepath template card builder.
*
* @param cardActionPagepath the card action pagepath
* @return the template card builder
*/
public TemplateCardBuilder cardActionPagepath(String cardActionPagepath) {
this.cardActionPagepath = cardActionPagepath;
return this;
}
/**
* Task id template card builder.
*
* @param taskId the task id
* @return the template card builder
*/
public TemplateCardBuilder taskId(String taskId) {
this.taskId = taskId;
return this;
}
/**
* Button selection template card builder.
*
* @param buttonSelection the button selection
* @return the template card builder
*/
public TemplateCardBuilder buttonSelection(TemplateCardButtonSelection buttonSelection) {
this.buttonSelection = buttonSelection;
return this;
}
/**
* Buttons template card builder.
*
* @param buttons the buttons
* @return the template card builder
*/
public TemplateCardBuilder buttons(List<TemplateCardButton> buttons) {
this.buttons = buttons;
return this;
}
/**
* Checkbox question key template card builder.
*
* @param checkboxQuestionKey the checkbox question key
* @return the template card builder
*/
public TemplateCardBuilder checkboxQuestionKey(String checkboxQuestionKey) {
this.checkboxQuestionKey = checkboxQuestionKey;
return this;
}
/**
* Checkbox mode template card builder.
*
* @param checkboxMode the checkbox mode
* @return the template card builder
*/
public TemplateCardBuilder checkboxMode(Integer checkboxMode) {
this.checkboxMode = checkboxMode;
return this;
}
/**
* Options template card builder.
*
* @param options the options
* @return the template card builder
*/
public TemplateCardBuilder options(List<CheckboxOption> options) {
this.options = options;
return this;
}
/**
* Submit button text template card builder.
*
* @param submitButtonText the submit button text
* @return the template card builder
*/
public TemplateCardBuilder submitButtonText(String submitButtonText) {
this.submitButtonText = submitButtonText;
return this;
}
/**
* Submit button key template card builder.
*
* @param submitButtonKey the submit button key
* @return the template card builder
*/
public TemplateCardBuilder submitButtonKey(String submitButtonKey) {
this.submitButtonKey = submitButtonKey;
return this;
}
/**
* Selects template card builder.
*
* @param selects the selects
* @return the template card builder
*/
public TemplateCardBuilder selects(List<MultipleSelect> selects) {
this.selects = selects;
return this;
}
/**
* Quote area template card builder.
*
* @param quoteArea the quote area
* @return the template card builder
*/
public TemplateCardBuilder quoteArea(QuoteArea quoteArea) {
this.quoteArea = quoteArea;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setSafe(null);
m.setCardType(this.cardType);
m.setSourceIconUrl(this.sourceIconUrl);
m.setSourceDesc(this.sourceDesc);
m.setSourceDescColor(this.sourceDescColor);
m.setActionMenuDesc(this.actionMenuDesc);
m.setActionMenuActionList(this.actionMenuActionList);
m.setMainTitleTitle(this.mainTitleTitle);
m.setMainTitleDesc(this.mainTitleDesc);
m.setImageTextArea(this.imageTextArea);
m.setCardImageUrl(this.cardImageUrl);
m.setCardImageAspectRatio(this.cardImageAspectRatio);
m.setEmphasisContentTitle(this.emphasisContentTitle);
m.setEmphasisContentDesc(this.emphasisContentDesc);
m.setSubTitleText(this.subTitleText);
m.setVerticalContents(this.verticalContents);
m.setHorizontalContents(this.horizontalContents);
m.setJumps(this.jumps);
m.setCardActionType(this.cardActionType);
m.setCardActionAppid(this.cardActionAppid);
m.setCardActionPagepath(this.cardActionPagepath);
m.setCardActionUrl(this.cardActionUrl);
m.setTaskId(this.taskId);
m.setButtonSelection(this.buttonSelection);
m.setButtons(this.buttons);
m.setCheckboxMode(this.checkboxMode);
m.setCheckboxQuestionKey(this.checkboxQuestionKey);
m.setOptions(this.options);
m.setSubmitButtonText(this.submitButtonText);
m.setSubmitButtonKey(this.submitButtonKey);
m.setSelects(this.selects);
m.setQuoteArea(this.quoteArea);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/NewsBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/NewsBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.article.NewArticle;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* 图文消息builder
* <pre>
* 用法:
* WxCustomMessage m = WxCustomMessage.NEWS().addArticle(article).toUser(...).build();
* </pre>
*
* @author Daniel Qian
*/
public final class NewsBuilder extends BaseBuilder<NewsBuilder> {
private List<NewArticle> articles = new ArrayList<>();
/**
* Instantiates a new News builder.
*/
public NewsBuilder() {
this.msgType = WxConsts.KefuMsgType.NEWS;
}
/**
* Add article news builder.
*
* @param articles the articles
* @return the news builder
*/
public NewsBuilder addArticle(NewArticle... articles) {
Collections.addAll(this.articles, articles);
return this;
}
/**
* Articles news builder.
*
* @param articles the articles
* @return the news builder
*/
public NewsBuilder articles(List<NewArticle> articles) {
this.articles = articles;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setArticles(this.articles);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/TextBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
/**
* 文本消息builder
* <pre>
* 用法: WxCustomMessage m = WxCustomMessage.TEXT().content(...).toUser(...).build();
* </pre>
*
* @author Daniel Qian
*/
public final class TextBuilder extends BaseBuilder<TextBuilder> {
private String content;
/**
* Instantiates a new Text builder.
*/
public TextBuilder() {
this.msgType = WxConsts.KefuMsgType.TEXT;
}
/**
* Content text builder.
*
* @param content the content
* @return the text builder
*/
public TextBuilder content(String content) {
this.content = content;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setContent(this.content);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VideoBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VideoBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
/**
* 视频消息builder
* <pre>
* 用法: WxCustomMessage m = WxCustomMessage.VOICE()
* .mediaId(...)
* .title(...)
* .thumbMediaId(..)
* .description(..)
* .toUser(...)
* .build();
* </pre>
*
* @author Daniel Qian
*/
public final class VideoBuilder extends BaseBuilder<VideoBuilder> {
private String mediaId;
private String title;
private String description;
private String thumbMediaId;
/**
* Instantiates a new Video builder.
*/
public VideoBuilder() {
this.msgType = WxConsts.KefuMsgType.VIDEO;
}
/**
* Media id video builder.
*
* @param mediaId the media id
* @return the video builder
*/
public VideoBuilder mediaId(String mediaId) {
this.mediaId = mediaId;
return this;
}
/**
* Title video builder.
*
* @param title the title
* @return the video builder
*/
public VideoBuilder title(String title) {
this.title = title;
return this;
}
/**
* Description video builder.
*
* @param description the description
* @return the video builder
*/
public VideoBuilder description(String description) {
this.description = description;
return this;
}
/**
* Thumb media id video builder.
*
* @param thumb_media_id the thumb media id
* @return the video builder
*/
public VideoBuilder thumbMediaId(String thumb_media_id) {
this.thumbMediaId = thumb_media_id;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setMediaId(this.mediaId);
m.setTitle(this.title);
m.setDescription(this.description);
m.setThumbMediaId(this.thumbMediaId);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/BaseBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/BaseBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
import org.apache.commons.lang3.StringUtils;
/**
* The type Base builder.
*/
public abstract class BaseBuilder<T> {
/**
* The Msg type.
*/
protected String msgType;
/**
* The Agent id.
*/
protected Integer agentId;
/**
* The To user.
*/
protected String toUser;
/**
* The To party.
*/
protected String toParty;
/**
* The To tag.
*/
protected String toTag;
/**
* The Safe.
*/
protected String safe;
/**
* Agent id t.
*
* @param agentId the agent id
* @return the t
*/
public T agentId(Integer agentId) {
this.agentId = agentId;
return (T) this;
}
/**
* To user t.
*
* @param toUser the to user
* @return the t
*/
public T toUser(String toUser) {
this.toUser = toUser;
return (T) this;
}
/**
* To party t.
*
* @param toParty the to party
* @return the t
*/
public T toParty(String toParty) {
this.toParty = toParty;
return (T) this;
}
/**
* To tag t.
*
* @param toTag the to tag
* @return the t
*/
public T toTag(String toTag) {
this.toTag = toTag;
return (T) this;
}
/**
* Safe t.
*
* @param safe the safe
* @return the t
*/
public T safe(String safe) {
this.safe = safe;
return (T) this;
}
/**
* Build wx cp message.
*
* @return the wx cp message
*/
public WxCpMessage build() {
WxCpMessage m = new WxCpMessage();
m.setAgentId(this.agentId);
m.setMsgType(this.msgType);
m.setToUser(this.toUser);
m.setToParty(this.toParty);
m.setToTag(this.toTag);
m.setSafe(StringUtils.defaultIfBlank(this.safe, WxConsts.KefuMsgSafe.NO));
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MarkdownMsgBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MarkdownMsgBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
/**
* <pre>
* markdown类型的消息builder
* Created by Binary Wang on 2019/1/20.
* </pre>
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
*/
public class MarkdownMsgBuilder extends BaseBuilder<MarkdownMsgBuilder> {
private String content;
/**
* Instantiates a new Markdown msg builder.
*/
public MarkdownMsgBuilder() {
this.msgType = WxConsts.KefuMsgType.MARKDOWN;
}
/**
* Content markdown msg builder.
*
* @param content the content
* @return the markdown msg builder
*/
public MarkdownMsgBuilder content(String content) {
this.content = content;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setContent(this.content);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VoiceBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/VoiceBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
/**
* 语音消息builder
* <pre>
* 用法: WxCustomMessage m = WxCustomMessage.VOICE().mediaId(...).toUser(...).build();
* </pre>
*
* @author Daniel Qian
*/
public final class VoiceBuilder extends BaseBuilder<VoiceBuilder> {
private String mediaId;
/**
* Instantiates a new Voice builder.
*/
public VoiceBuilder() {
this.msgType = WxConsts.KefuMsgType.VOICE;
}
/**
* Media id voice builder.
*
* @param media_id the media id
* @return the voice builder
*/
public VoiceBuilder mediaId(String media_id) {
this.mediaId = media_id;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setMediaId(this.mediaId);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MiniProgramNoticeMsgBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/MiniProgramNoticeMsgBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
import java.util.Map;
/**
* <pre>
* miniprogram_notice 类型的消息 builder
* Created by Binary Wang on 2019/6/16.
* </pre>
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
*/
public class MiniProgramNoticeMsgBuilder extends BaseBuilder<MiniProgramNoticeMsgBuilder> {
private String title;
private String description;
private String appId;
private String page;
private Boolean emphasisFirstItem;
private Map<String, String> contentItems;
/**
* Instantiates a new Mini program notice msg builder.
*/
public MiniProgramNoticeMsgBuilder() {
this.msgType = WxConsts.KefuMsgType.MINIPROGRAM_NOTICE;
}
/**
* App id mini program notice msg builder.
*
* @param appId the app id
* @return the mini program notice msg builder
*/
public MiniProgramNoticeMsgBuilder appId(String appId) {
this.appId = appId;
return this;
}
/**
* Page mini program notice msg builder.
*
* @param page the page
* @return the mini program notice msg builder
*/
public MiniProgramNoticeMsgBuilder page(String page) {
this.page = page;
return this;
}
/**
* Title mini program notice msg builder.
*
* @param title the title
* @return the mini program notice msg builder
*/
public MiniProgramNoticeMsgBuilder title(String title) {
this.title = title;
return this;
}
/**
* Description mini program notice msg builder.
*
* @param description the description
* @return the mini program notice msg builder
*/
public MiniProgramNoticeMsgBuilder description(String description) {
this.description = description;
return this;
}
/**
* Content items mini program notice msg builder.
*
* @param contentItems the content items
* @return the mini program notice msg builder
*/
public MiniProgramNoticeMsgBuilder contentItems(Map<String, String> contentItems) {
this.contentItems = contentItems;
return this;
}
/**
* Emphasis first item mini program notice msg builder.
*
* @param emphasisFirstItem the emphasis first item
* @return the mini program notice msg builder
*/
public MiniProgramNoticeMsgBuilder emphasisFirstItem(Boolean emphasisFirstItem) {
this.emphasisFirstItem = emphasisFirstItem;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setContentItems(this.contentItems);
m.setAppId(this.appId);
m.setDescription(this.description);
m.setTitle(this.title);
m.setEmphasisFirstItem(this.emphasisFirstItem);
m.setPage(this.page);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/ImageBuilder.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/messagebuilder/ImageBuilder.java | package me.chanjar.weixin.cp.bean.messagebuilder;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;
/**
* 获得消息builder
* <pre>
* 用法: WxCustomMessage m = WxCustomMessage.IMAGE().mediaId(...).toUser(...).build();
* </pre>
*
* @author Daniel Qian
*/
public final class ImageBuilder extends BaseBuilder<ImageBuilder> {
private String mediaId;
/**
* Instantiates a new Image builder.
*/
public ImageBuilder() {
this.msgType = WxConsts.KefuMsgType.IMAGE;
}
/**
* Media id image builder.
*
* @param media_id the media id
* @return the image builder
*/
public ImageBuilder mediaId(String media_id) {
this.mediaId = media_id;
return this;
}
@Override
public WxCpMessage build() {
WxCpMessage m = super.build();
m.setMediaId(this.mediaId);
return m;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/NewArticle.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/NewArticle.java | package me.chanjar.weixin.cp.bean.article;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* <pre>
* Created by BinaryWang on 2017/3/27.
* </pre>
*
* @author Binary Wang
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class NewArticle implements Serializable {
private static final long serialVersionUID = 4087852055781140659L;
/**
* 标题,不超过128个字节,超过会自动截断
*/
private String title;
/**
* 描述,不超过512个字节,超过会自动截断
*/
private String description;
/**
* 点击后跳转的链接。
*/
private String url;
/**
* 图文消息的图片链接,支持JPG、PNG格式,较好的效果为大图1068*455,小图150*150。
*/
private String picUrl;
/**
* 按钮文字,仅在图文数为1条时才生效。 默认为“阅读全文”, 不超过4个文字,超过自动截断。该设置只在企业微信上生效,微工作台(原企业号)上不生效。
*/
private String btnText;
/**
* 小程序appid,必须是与当前应用关联的小程序,appid和pagepath必须同时填写,填写后会忽略url字段
*/
private String appid;
/**
* 点击消息卡片后的小程序页面,仅限本小程序内的页面。appid和pagepath必须同时填写,填写后会忽略url字段
*/
private String pagepath;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/MpnewsArticle.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/article/MpnewsArticle.java | package me.chanjar.weixin.cp.bean.article;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* <pre>
* Created by BinaryWang on 2017/3/27.
* </pre>
*
* @author Binary Wang
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(builderMethodName = "newBuilder")
public class MpnewsArticle implements Serializable {
private static final long serialVersionUID = 6985871812170756481L;
/**
* 标题,不超过128个字节,超过会自动截断
*/
private String title;
/**
* 图文消息缩略图的media_id, 可以通过素材管理接口获得。此处thumb_media_id即上传接口返回的media_id
*/
private String thumbMediaId;
/**
* 图文消息的作者,不超过64个字节
*/
private String author;
/**
* 图文消息点击“阅读原文”之后的页面链接
*/
private String contentSourceUrl;
/**
* 图文消息的内容,支持html标签,不超过666 K个字节
*/
private String content;
/**
* 图文消息的描述,不超过512个字节,超过会自动截断
*/
private String digest;
/**
* 可能已经废弃了,官方文档里已经看不到了
*/
@Deprecated
private String showCoverPic;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayInfo.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 客户群「加入群聊」对象
*
* @author Jc
*/
@Data
@NoArgsConstructor
public class WxCpGroupJoinWayInfo implements Serializable {
private static final long serialVersionUID = 5621905029624794129L;
@SerializedName("join_way")
private JoinWay joinWay;
/**
* The type Join way.
*/
@Getter
@Setter
public static class JoinWay implements Serializable {
private static final long serialVersionUID = 5621905029624794122L;
/**
* 联系方式的配置id
*/
@SerializedName("config_id")
private String configId;
/**
* 场景。
* 1 - 群的小程序插件
* 2 - 群的二维码插件
*/
@SerializedName("scene")
private Integer scene;
/**
* 联系方式的备注信息,用于助记,超过30个字符将被截断
*/
@SerializedName("remark")
private String remark;
/**
* 当群满了后,是否自动新建群。0-否;1-是。 默认为1
*/
@SerializedName("auto_create_room")
private Integer autoCreateRoom;
/**
* 自动建群的群名前缀,当auto_create_room为1时有效。最长40个utf8字符
*/
@SerializedName("room_base_name")
private String roomBaseName;
/**
* 自动建群的群起始序号,当auto_create_room为1时有效
*/
@SerializedName("room_base_id")
private Integer roomBaseId;
/**
* 使用该配置的客户群ID列表,支持5个。
*/
@SerializedName("chat_id_list")
private List<String> chatIdList;
/**
* 联系二维码的URL,仅在配置为群二维码时返回
*/
@SerializedName("qr_code")
private String qrCode;
/**
* 企业自定义的state参数,用于区分不同的入群渠道。不超过30个UTF-8字符
* 如果有设置此参数,在调用获取客户群详情接口时会返回每个群成员对应的该参数值
*/
@SerializedName("state")
private String state;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
/**
* From json wx cp group join way info . join way.
*
* @param json the json
* @return the wx cp group join way info . join way
*/
public static WxCpGroupJoinWayInfo.JoinWay fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayInfo.JoinWay.class);
}
}
/**
* From json wx cp group join way info.
*
* @param json the json
* @return the wx cp group join way info
*/
public static WxCpGroupJoinWayInfo fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayInfo.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayResult.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
/**
* 「联系我」方式 处理结果
*
* @author 爱因斯唐
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpContactWayResult extends WxCpBaseResp {
private static final long serialVersionUID = -2612867517869192015L;
@SerializedName("config_id")
private String configId;
@SerializedName("qr_code")
private String qrCode;
/**
* From json wx cp contact way result.
*
* @param json the json
* @return the wx cp contact way result
*/
public static WxCpContactWayResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpContactWayResult.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumInfo.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.external.product.Attachment;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* <pre>
* 获取商品图册
* 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册
* </pre>
*
* @author <a href="https://github.com/Loading-Life">Lo_ading</a>
*/
@Getter
@Setter
public class WxCpProductAlbumInfo implements Serializable {
private static final long serialVersionUID = -8338202601802366899L;
@SerializedName("product_id")
private String productId;
@SerializedName("product_sn")
private String productSn;
@SerializedName("description")
private String description;
/**
* NOTE: 20211110 价钱返回全部为0
*/
@SerializedName("price")
private Integer price;
/**
* NOTE: 20211110 商品列表接口不返回此字段, 商品详情接口返回
*/
@SerializedName("create_time")
private Long createTime;
@SerializedName("attachments")
private List<Attachment> attachments;
/**
* From json wx cp product album info.
*
* @param json the json
* @return the wx cp product album info
*/
public static WxCpProductAlbumInfo fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumInfo.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUserBehaviorStatistic.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 联系客户统计数据
*
* @author yqx created on 2020/3/16
*/
@Getter
@Setter
public class WxCpUserExternalUserBehaviorStatistic extends WxCpBaseResp {
@SerializedName("behavior_data")
private List<Behavior> behaviorList;
/**
* The type Behavior.
*/
@Getter
@Setter
public static class Behavior implements Serializable {
private static final long serialVersionUID = -4301684507150486556L;
/**
* 数据日期,为当日0点的时间戳
*/
@SerializedName("stat_time")
private Long statTime;
/**
* 聊天总数, 成员有主动发送过消息的聊天数,包括单聊和群聊。
*/
@SerializedName("chat_cnt")
private Integer chatCnt;
/**
* 发送消息数,成员在单聊和群聊中发送的消息总数。
*/
@SerializedName("message_cnt")
private Integer messageCnt;
/**
* 已回复聊天占比,客户主动发起聊天后,成员在一个自然日内有回复过消息的聊天数/客户主动发起的聊天数比例,不包括群聊,仅在确有回复时返回。
*/
@SerializedName("reply_percentage")
private Double replyPercentage;
/**
* 平均首次回复时长,单位为分钟,即客户主动发起聊天后,成员在一个自然日内首次回复的时长间隔为首次回复时长,所有聊天的首次回复总时长/已回复的聊天总数即为平均首次回复时长,不包括群聊,仅在确有回复时返回。
*/
@SerializedName("avg_reply_time")
private Integer avgReplyTime;
/**
* 删除/拉黑成员的客户数,即将成员删除或加入黑名单的客户数。
*/
@SerializedName("negative_feedback_cnt")
private Integer negativeFeedbackCnt;
/**
* 发起申请数,成员通过「搜索手机号」、「扫一扫」、「从微信好友中添加」、「从群聊中添加」、「添加共享、分配给我的客户」、「添加单向、双向删除好友关系的好友」、「从新的联系人推荐中添加」等渠道主动向客户发起的好友申请数量。
*/
@SerializedName("new_apply_cnt")
private Integer newApplyCnt;
/**
* 新增客户数,成员新添加的客户数量。
*/
@SerializedName("new_contact_cnt")
private Integer newContactCnt;
}
/**
* From json wx cp user external user behavior statistic.
*
* @param json the json
* @return the wx cp user external user behavior statistic
*/
public static WxCpUserExternalUserBehaviorStatistic fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalUserBehaviorStatistic.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTask.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 企业发表内容到客户的朋友圈 获取客户朋友圈企业发表的列表
*
* @author leiin created on 2021-10-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpGetMomentTask extends WxCpBaseResp {
private static final long serialVersionUID = 5621905029624794129L;
@SerializedName("next_cursor")
private String nextCursor;
@SerializedName("task_list")
private List<MomentTaskItem> taskList;
/**
* The type Moment task item.
*/
@Getter
@Setter
public static class MomentTaskItem {
@SerializedName("userid")
private String userId;
@SerializedName("publish_status")
private String publishStatus;
}
/**
* From json wx cp get moment task.
*
* @param json the json
* @return the wx cp get moment task
*/
public static WxCpGetMomentTask fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentTask.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatList.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* The type Wx cp user external group chat list.
*
* @author yqx created on 2020/3/116
*/
@Getter
@Setter
public class WxCpUserExternalGroupChatList extends WxCpBaseResp {
private static final long serialVersionUID = 1907272035492110236L;
@SerializedName("group_chat_list")
private List<ChatStatus> groupChatList;
@SerializedName("next_cursor")
private String nextCursor;
/**
* The type Chat status.
*/
@Getter
@Setter
public static class ChatStatus implements Serializable {
/**
* 客户群ID
*/
@SerializedName("chat_id")
private String chatId;
/**
* 客户群状态
* 0 - 正常
* 1 - 跟进人离职
* 2 - 离职继承中
* 3 - 离职继承完成
*/
@SerializedName("status")
private int status;
}
/**
* From json wx cp user external group chat list.
*
* @param json the json
* @return the wx cp user external group chat list
*/
public static WxCpUserExternalGroupChatList fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatList.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerReq.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.common.annotation.Required;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 转接在职成员的客户给其他成员,请求对象
*
* @author pg created on 2021年6月21日
*/
@Getter
@Setter
public class WxCpUserTransferCustomerReq implements Serializable {
private static final long serialVersionUID = -309819538677411801L;
/**
* 原跟进成员的userid
*/
@SerializedName("handover_userid")
@Required
private String handOverUserid;
/**
* 接替成员的userid
*/
@SerializedName("takeover_userid")
@Required
private String takeOverUserid;
/**
* 客户的external_userid列表,每次最多分配100个客户
*/
@SerializedName("external_userid")
@Required
private List<String> externalUserid;
/**
* 转移成功后发给客户的消息,最多200个字符,不填则使用默认文案
*/
@SerializedName("transfer_success_msg")
private String transferMsg;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentComments.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 企业发表内容到客户的朋友圈 获取客户朋友圈的互动数据
*
* @author leiin created on 2021-10-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpGetMomentComments extends WxCpBaseResp {
private static final long serialVersionUID = -9056664072546234965L;
@SerializedName("comment_list")
private List<CommentLikeItem> commentList;
@SerializedName("like_list")
private List<CommentLikeItem> likeList;
/**
* The type Comment like item.
*/
@Getter
@Setter
public static class CommentLikeItem {
@SerializedName("external_userid")
private String externalUserId;
@SerializedName("userid")
private String userid;
@SerializedName("create_time")
private Long createTime;
}
/**
* From json wx cp get moment comments.
*
* @param json the json
* @return the wx cp get moment comments
*/
public static WxCpGetMomentComments fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentComments.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserWithExternalPermission.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserWithExternalPermission.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* The type Wx cp user with external permission.
*
* @author 曹祖鹏
*/
@Data
public class WxCpUserWithExternalPermission implements Serializable {
private static final long serialVersionUID = -4301684507150486556L;
@SerializedName("errcode")
@Expose
private Long errCode;
@SerializedName("errmsg")
@Expose
private String errMsg;
@SerializedName("follow_user")
@Expose
private List<String> followers = null;
/**
* From json wx cp user with external permission.
*
* @param json the json
* @return the wx cp user with external permission
*/
public static WxCpUserWithExternalPermission fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserWithExternalPermission.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupInfo.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupInfo.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* The type Wx cp user external tag group info.
*/
@Getter
@Setter
public class WxCpUserExternalTagGroupInfo extends WxCpBaseResp {
@SerializedName("tag_group")
private TagGroup tagGroup;
/**
* The type Tag group.
*/
@Getter
@Setter
public static class TagGroup implements Serializable {
private static final long serialVersionUID = -4301684507150486556L;
@SerializedName("group_id")
private String groupId;
@SerializedName("group_name")
private String groupName;
@SerializedName("create_time")
private Long createTime;
@SerializedName("order")
private Long order;
@SerializedName("deleted")
private Boolean deleted;
@SerializedName("tag")
private List<Tag> tag;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxGsonBuilder.create().toJson(this);
}
}
/**
* The type Tag.
*/
@Getter
@Setter
public static class Tag implements Serializable {
private static final long serialVersionUID = -4301684507150486556L;
/**
* 客户群ID
*/
@SerializedName("id")
private String id;
@SerializedName("name")
private String name;
@SerializedName("create_time")
private Long createTime;
@SerializedName("order")
private Long order;
@SerializedName("deleted")
private Boolean deleted;
}
public String toJson() {
return WxGsonBuilder.create().toJson(this);
}
/**
* From json wx cp user external tag group info.
*
* @param json the json
* @return the wx cp user external tag group info
*/
public static WxCpUserExternalTagGroupInfo fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalTagGroupInfo.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferCustomerResp.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 转接在职成员的客户给其他成员,返回对象
*
* @author pg created on 2021年6月21日
*/
@Getter
@Setter
public class WxCpUserTransferCustomerResp extends WxCpBaseResp {
private static final long serialVersionUID = -8030598756503590089L;
/**
* 客户转移结果列表
*/
private List<TransferCustomer> customer;
/**
* From json wx cp user transfer customer resp.
*
* @param json the json
* @return the wx cp user transfer customer resp
*/
public static WxCpUserTransferCustomerResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserTransferCustomerResp.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
/**
* 转接客户结果实体
*/
@Getter
@Setter
public static class TransferCustomer implements Serializable {
private static final long serialVersionUID = 8720554208727083338L;
/**
* 客户的external_userid
*/
@SerializedName("external_userid")
private String externalUserid;
/**
* 对此客户进行分配的结果, 0表示成功发起接替,待24小时后自动接替,并不代表最终接替成功
*/
private Integer errcode;
/**
* From json wx cp user transfer customer resp . transfer customer.
*
* @param json the json
* @return the wx cp user transfer customer resp . transfer customer
*/
public static WxCpUserTransferCustomerResp.TransferCustomer fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserTransferCustomerResp.TransferCustomer.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatTransferResp.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 分配离职成员的客户群结果
*
* @author pg created on 2021年6月21日
*/
@Getter
@Setter
public class WxCpUserExternalGroupChatTransferResp extends WxCpBaseResp {
private static final long serialVersionUID = -943124579487821819L;
/**
* 没有成功继承的群列表
*/
@SerializedName("failed_chat_list")
private List<GroupChatFailedTransfer> failedChatList;
/**
* From json wx cp user external group chat transfer resp.
*
* @param json the json
* @return the wx cp user external group chat transfer resp
*/
public static WxCpUserExternalGroupChatTransferResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatTransferResp.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
/**
* The type Group chat failed transfer.
*/
@Getter
@Setter
public static class GroupChatFailedTransfer extends WxCpBaseResp {
private static final long serialVersionUID = -5836775099634587239L;
/**
* 没能成功继承的群ID
*/
@SerializedName("chat_id")
private String chatId;
/**
* From json wx cp user external group chat transfer resp . group chat failed transfer.
*
* @param json the json
* @return the wx cp user external group chat transfer resp . group chat failed transfer
*/
public static WxCpUserExternalGroupChatTransferResp.GroupChatFailedTransfer fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json,
WxCpUserExternalGroupChatTransferResp.GroupChatFailedTransfer.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplate.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.cp.bean.external.msg.Attachment;
import me.chanjar.weixin.cp.bean.external.msg.Text;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 企业群发消息任务
* <p>
* Created by songfan on 2020/7/14.
*
* @author songfan & Mr.Pan
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpMsgTemplate implements Serializable {
private static final long serialVersionUID = 3172331565173474358L;
/**
* 群发任务的类型,默认为single,表示发送给客户,group表示发送给客户群
*/
@SerializedName("chat_type")
private String chatType;
/**
* 客户的外部联系人id列表,仅在chat_type为single时有效,不可与sender同时为空,最多可传入1万个客户
*/
@SerializedName("external_userid")
private List<String> externalUserid;
/**
* 客户群id列表,仅在chat_type为group时有效,最多可一次指定2000个客户群。指定群id之后,收到任务的群主无须再选择客户群,仅对4.1.10及以上版本的企业微信终端生效
*/
@SerializedName("chat_id_list")
private List<String> chatIdList;
/**
* 发送企业群发消息的成员userid,当类型为发送给客户群时必填
*/
private String sender;
/**
* 是否允许成员在待发送客户列表中重新进行选择,默认为false,仅支持客户群发场景
*/
@SerializedName("allow_select")
private Boolean allowSelect;
/**
* 消息文本内容,最多4000个字节
*/
private Text text;
/**
* 附件,最多支持添加9个附件
*/
private List<Attachment> attachments;
/**
* From json wx cp msg template.
*
* @param json the json
* @return the wx cp msg template
*/
public static WxCpMsgTemplate fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpMsgTemplate.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpWelcomeMsg.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpWelcomeMsg.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.cp.bean.external.msg.Attachment;
import me.chanjar.weixin.cp.bean.external.msg.Text;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 新客户欢迎语.
*
* @author <a href="https://github.com/binarywang">Binary Wang</a> created on 2020-08-16
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpWelcomeMsg implements Serializable {
private static final long serialVersionUID = 4170843890468921757L;
@SerializedName("welcome_code")
private String welcomeCode;
private Text text;
private List<Attachment> attachments;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalTagGroupList.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* The type Wx cp user external tag group list.
*
* @author huangxm129
*/
@Getter
@Setter
public class WxCpUserExternalTagGroupList extends WxCpBaseResp {
private static final long serialVersionUID = -3349321791821450679L;
@SerializedName("tag_group")
private List<WxCpUserExternalTagGroupList.TagGroup> tagGroupList;
/**
* The type Tag group.
*/
@Getter
@Setter
public static class TagGroup implements Serializable {
private static final long serialVersionUID = -4301684507150486556L;
@SerializedName("group_id")
private String groupId;
@SerializedName("group_name")
private String groupName;
@SerializedName("create_time")
private Long createTime;
@SerializedName("order")
private Long order;
@SerializedName("deleted")
private Boolean deleted;
@SerializedName("tag")
private List<Tag> tag;
/**
* The type Tag.
*/
@Getter
@Setter
public static class Tag implements Serializable {
private static final long serialVersionUID = -4301684507150486556L;
/**
* 客户群ID
*/
@SerializedName("id")
private String id;
@SerializedName("name")
private String name;
@SerializedName("create_time")
private Long createTime;
@SerializedName("order")
private Long order;
@SerializedName("deleted")
private Boolean deleted;
}
}
public String toJson() {
return WxGsonBuilder.create().toJson(this);
}
/**
* From json wx cp user external tag group list.
*
* @param json the json
* @return the wx cp user external tag group list
*/
public static WxCpUserExternalTagGroupList fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalTagGroupList.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentTaskResult.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.external.moment.ExternalContactList;
import me.chanjar.weixin.cp.bean.external.moment.SenderList;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
/**
* 企业发表内容到客户的朋友圈 获取任务创建结果
*
* @author leiin created on 2021-10-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpGetMomentTaskResult extends WxCpBaseResp {
private static final long serialVersionUID = 2515140928288915077L;
private Integer status;
private String type;
private TaskResult result;
/**
* The type Task result.
*/
@Getter
@Setter
public static class TaskResult extends WxCpBaseResp {
private static final long serialVersionUID = 2162642873632126707L;
@SerializedName("moment_id")
private String momentId;
@SerializedName("invalid_sender_list")
private SenderList invalidSenderList;
@SerializedName("invalid_external_contact_list")
private ExternalContactList invalidExternalContactList;
/**
* From json task result.
*
* @param json the json
* @return the task result
*/
public static TaskResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, TaskResult.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
/**
* From json wx cp get moment task result.
*
* @param json the json
* @return the wx cp get moment task result
*/
public static WxCpGetMomentTaskResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentTaskResult.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpNewExternalUserIdList.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 企业客户微信unionid的升级 - 企业客户external_userid列表
*
* @author Mr.Pan created on 2021/11/18
*/
@Getter
@Setter
public class WxCpNewExternalUserIdList extends WxCpBaseResp {
@SerializedName("items")
private List<NewExternalUserIdInfo> items;
/**
* The type New external user id info.
*/
@Getter
@Setter
public static class NewExternalUserIdInfo implements Serializable {
private static final long serialVersionUID = 8846290993790709261L;
/**
* 外部联系人id
*/
@SerializedName("external_userid")
private String externalUserId;
/**
* 新外部联系人id
*/
@SerializedName("new_external_userid")
private String newExternalUserId;
}
/**
* From json wx cp new external user id list.
*
* @param json the json
* @return the wx cp new external user id list
*/
public static WxCpNewExternalUserIdList fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpNewExternalUserIdList.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayInfo.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayInfo.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import me.chanjar.weixin.cp.util.json.WxCpConclusionAdapter;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 「联系我」方式 对象
*
* @author element
*/
@Data
@NoArgsConstructor
public class WxCpContactWayInfo implements Serializable {
private static final long serialVersionUID = -8697184659526210472L;
@SerializedName("contact_way")
private ContactWay contactWay;
/**
* The type Contact way.
*/
@Getter
@Setter
public static class ContactWay implements Serializable {
private static final long serialVersionUID = -8697184659526210472L;
/**
* 联系方式的配置id
*/
@SerializedName("config_id")
private String configId;
/**
* <pre>
* 必填
* 联系方式类型,1-单人, 2-多人
* </pre>
*/
private TYPE type;
/**
* <pre>
* 必填
* 场景,1-在小程序中联系,2-通过二维码联系
* </pre>
*/
private SCENE scene;
/**
* <pre>
* 非必填
* 在小程序中联系时使用的控件样式
* <b>单人样式(type=1)时可选1,2,3</b>
* <b>多人样式(type=2)时可选1,2</b>
* </pre>
*/
private Integer style;
/**
* <pre>
* 非必填
* 联系方式的备注信息,用于助记,不超过30个字符
* </pre>
*/
private String remark;
/**
* <pre>
* 非必填
* 外部客户添加时是否无需验证,默认为true
* </pre>
*/
@SerializedName("skip_verify")
private Boolean skipVerify = Boolean.TRUE;
/**
* <pre>
* 非必填
* 企业自定义的state参数,用于区分不同的添加渠道,在调用“获取外部联系人详情(WxCpExternalContactService.getContactDetail)” 时会返回该参数值,不超过30个字符
* </pre>
*/
private String state;
/**
* <pre>
* 联系二维码的URL,仅在scene为2时返回
* </pre>
*/
@SerializedName("qr_code")
private String qrCode;
/**
* <pre>
* 使用该联系方式的用户userID列表,在type为1时为必填,且只能有一个
* </pre>
*/
@SerializedName("user")
private List<String> users;
/**
* <pre>
* 非必填
* 使用该联系方式的部门id列表,只在type为2时有效
* </pre>
*/
@SerializedName("party")
private List<String> parties;
/**
* <pre>
* 非必填
* 是否临时会话模式,true表示使用临时会话模式,默认为false
* </pre>
*/
@SerializedName("is_temp")
private Boolean isTemp = Boolean.FALSE;
/**
* <pre>
* 非必填
* 临时会话二维码有效期,以秒为单位。该参数仅在is_temp为true时有效,默认7天
* </pre>
*/
@SerializedName("expires_in")
private Integer expiresIn;
/**
* <pre>
* 非必填
* 临时会话有效期,以秒为单位。该参数仅在is_temp为true时有效,默认为添加好友后24小时
* </pre>
*/
@SerializedName("chat_expires_in")
private Integer chatExpiresIn;
/**
* <pre>
* 非必填
* 可进行临时会话的客户unionid,该参数仅在is_temp为true时有效,如不指定则不进行限制
* </pre>
*/
@SerializedName("unionid")
private String unionId;
/**
*非必填,是否开启同一外部企业客户只能添加同一个员工,默认为否,开启后,同一个企业的客户会优先添加到同一个跟进人
*/
@SerializedName("is_exclusive")
private boolean isExclusive;
/**
* <pre>
* 非必填
* 结束语,会话结束时自动发送给客户,可参考“结束语定义”,仅在is_temp为true时有效
* </pre>
*/
private Conclusion conclusions;
/**
* From json wx cp contact way info . contact way.
*
* @param json the json
* @return the wx cp contact way info . contact way
*/
public static WxCpContactWayInfo.ContactWay fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpContactWayInfo.ContactWay.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
/**
* 结束语定义
*/
@Data
@JsonAdapter(WxCpConclusionAdapter.class)
public static class Conclusion implements Serializable {
private static final long serialVersionUID = -8697184659526210472L;
private String textContent;
private String imgMediaId;
private String imgPicUrl;
private String linkTitle;
private String linkPicUrl;
private String linkDesc;
private String linkUrl;
private String miniProgramTitle;
private String miniProgramPicMediaId;
private String miniProgramAppId;
private String miniProgramPage;
}
}
/**
* From json wx cp contact way info.
*
* @param json the json
* @return the wx cp contact way info
*/
public static WxCpContactWayInfo fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpContactWayInfo.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
/**
* The enum Type.
*/
public enum TYPE {
/**
* 单人
*/
@SerializedName("1")
SINGLE,
/**
* 多人
*/
@SerializedName("2")
MULTI
}
/**
* The enum Scene.
*/
public enum SCENE {
/**
* 在小程序中联系
*/
@SerializedName("1")
MINIPROGRAM,
/**
* 通过二维码联系
*/
@SerializedName("2")
QRCODE
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplateAddResult.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpMsgTemplateAddResult.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* Created by songfan on 2020/7/14.
*
* @author songfan
*/
@Data
public class WxCpMsgTemplateAddResult implements Serializable {
private static final long serialVersionUID = -5166048319463473188L;
@SerializedName("errcode")
private Integer errCode;
@SerializedName("errmsg")
private String errMsg;
@SerializedName("fail_list")
private List<String> failList;
@SerializedName("msgid")
private String msgId;
/**
* From json wx cp msg template add result.
*
* @param json the json
* @return the wx cp msg template add result
*/
public static WxCpMsgTemplateAddResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpMsgTemplateAddResult.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumResult.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* <pre>
* 获取商品图册执行结果
* 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册
* </pre>
*
* @author <a href="https://github.com/Loading-Life">Lo_ading</a>
*/
@Getter
@Setter
public class WxCpProductAlbumResult extends WxCpBaseResp implements Serializable {
private static final long serialVersionUID = 4076734101839851497L;
@SerializedName("product")
private WxCpProductAlbumInfo product;
/**
* From json wx cp product album result.
*
* @param json the json
* @return the wx cp product album result
*/
public static WxCpProductAlbumResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumResult.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentTask.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.cp.bean.external.moment.VisibleRange;
import me.chanjar.weixin.cp.bean.external.msg.Attachment;
import me.chanjar.weixin.cp.bean.external.msg.Text;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 企业发表内容到客户的朋友圈 创建发表任务
*
* @author leiin created on 2021-10-29
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpAddMomentTask implements Serializable {
@SerializedName("visible_range")
private VisibleRange visibleRange;
private Text text;
private List<Attachment> attachments;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* The type Wx cp user external group chat info.
*
* @author yqx created on 2020/3/116
*/
@Getter
@Setter
public class WxCpUserExternalGroupChatInfo extends WxCpBaseResp {
/**
* 客户群详情
*/
@SerializedName("group_chat")
private GroupChat groupChat;
/**
* 客户群详情
*/
@Getter
@Setter
public static class GroupChat implements Serializable {
private static final long serialVersionUID = -4301684507150486556L;
/**
* 客户群ID
*/
@SerializedName("chat_id")
private String chatId;
/**
* 群名
*/
@SerializedName("name")
private String name;
/**
* 群主ID
*/
@SerializedName("owner")
private String owner;
/**
* 群的创建时间
*/
@SerializedName("create_time")
private Long createTime;
/**
* 群公告
*/
@SerializedName("notice")
private String notice;
/**
* 群成员列表
*/
@SerializedName("member_list")
private List<GroupMember> memberList;
/**
* 群管理员列表
*/
@SerializedName("admin_list")
private List<GroupAdmin> adminList;
/**
* 当前群成员版本号。可以配合客户群变更事件减少主动调用本接口的次数
*/
@SerializedName("member_version")
private String memberVersion;
}
/**
* 群成员
*/
@Getter
@Setter
public static class GroupMember implements Serializable {
private static final long serialVersionUID = -4301684507150486556L;
/**
* 群成员id
*/
@SerializedName("userid")
private String userId;
/**
* 成员类型。
* 1 - 企业成员
* 2 - 外部联系人
*/
@SerializedName("type")
private int type;
/**
* 外部联系人在微信开放平台的唯一身份标识(微信unionid)
* 通过此字段企业可将外部联系人与公众号/小程序用户关联起来
* 仅当群成员类型是微信用户(包括企业成员未添加好友),且企业绑定了微信开发者ID有此字段(查看绑定方法)。
* 第三方不可获取,上游企业不可获取下游企业客户的unionid字段
*/
@SerializedName("unionid")
private String unionId;
/**
* 入群时间
*/
@SerializedName("join_time")
private Long joinTime;
/**
* 入群方式。
* 1 - 由成员邀请入群(直接邀请入群)
* 2 - 由成员邀请入群(通过邀请链接入群)
* 3 - 通过扫描群二维码入群
*/
@SerializedName("join_scene")
private int joinScene;
/**
* 该成员入群方式对应的state参数。仅限通过带有state的入群方式入群时会返回该值。
*/
@SerializedName("state")
private String state;
/**
* 邀请者。目前仅当是由本企业内部成员邀请入群时会返回该值
*/
@SerializedName("invitor")
private Invitor invitor;
/**
* 在群里的昵称
*/
@SerializedName("group_nickname")
private String groupNickname;
/**
* 名字。仅当 need_name = 1 时返回
* 如果是微信用户,则返回其在微信中设置的名字
* 如果是企业微信联系人,则返回其设置对外展示的别名或实名
*/
@SerializedName("name")
private String name;
}
/**
* The type Invitor.
*/
@Getter
@Setter
public static class Invitor {
/**
* 邀请者的userid
*/
@SerializedName("userid")
private String userId;
}
/**
* 群管理员列表
*/
@Getter
@Setter
public static class GroupAdmin {
/**
* 群管理员userid
*/
@SerializedName("userid")
private String userId;
}
/**
* From json wx cp user external group chat info.
*
* @param json the json
* @return the wx cp user external group chat info
*/
public static WxCpUserExternalGroupChatInfo fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatInfo.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferResultResp.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserTransferResultResp.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 在职成员的客户转接情况
*
* @author pg created on 2021年6月21日
*/
@Getter
@Setter
public class WxCpUserTransferResultResp extends WxCpBaseResp {
private static final long serialVersionUID = 6897979567174991786L;
@SerializedName("next_cursor")
private String nextCursor;
private List<TransferResult> customer;
/**
* From json wx cp user transfer result resp.
*
* @param json the json
* @return the wx cp user transfer result resp
*/
public static WxCpUserTransferResultResp fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserTransferResultResp.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
/**
* 客户转接结果实体
*/
@Getter
@Setter
public static class TransferResult implements Serializable {
private static final long serialVersionUID = 2847784363733118393L;
/**
* 客户的external_userid
*/
@SerializedName("external_userid")
private String externalUserid;
/**
* 接替状态, 1-接替完毕 2-等待接替 3-客户拒绝 4-接替成员客户达到上限 5-无接替记录
*/
private STATUS status;
/**
* 接替客户的时间,如果是等待接替状态,则为未来的自动接替时间
*/
@SerializedName("takeover_time")
private Long takeOverTime;
/**
* From json wx cp user transfer result resp . transfer result.
*
* @param json the json
* @return the wx cp user transfer result resp . transfer result
*/
public static WxCpUserTransferResultResp.TransferResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserTransferResultResp.TransferResult.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
/**
* The enum Status.
*/
public enum STATUS {
/**
* 接替完毕
*/
@SerializedName("1")
COMPLETE,
/**
* 等待接替
*/
@SerializedName("2")
WAITING,
/**
* 客户拒绝
*/
@SerializedName("3")
REFUSED,
/**
* 接替成员客户达到上限
*/
@SerializedName("4")
LIMIT,
/**
* 无接替记录
*/
@SerializedName("5")
NORECORD
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentCustomerList.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.external.moment.CustomerItem;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 企业发表内容到客户的朋友圈 获取客户朋友圈发表时选择的可见范围
*
* @author leiin created on 2021-10-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpGetMomentCustomerList extends WxCpBaseResp {
private static final long serialVersionUID = -8792120670063917097L;
@SerializedName("next_cursor")
private String nextCursor;
@SerializedName("customer_list")
private List<CustomerItem> customerList;
/**
* From json wx cp get moment customer list.
*
* @param json the json
* @return the wx cp get moment customer list
*/
public static WxCpGetMomentCustomerList fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentCustomerList.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalContactList.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* <pre>
* 外部联系人列表
* Created by Joe Cao on 2019/6/16.
* 参考文档:https://work.weixin.qq.com/api/doc#90001/90143/91570
* </pre>
*
* @author <a href="https://github.com/JoeCao">Joe Cao</a>
*/
public class WxCpUserExternalContactList implements Serializable {
private static final long serialVersionUID = -4301684507150486556L;
@SerializedName("errcode")
@Expose
private Long errcode;
@SerializedName("errmsg")
@Expose
private String errmsg;
@SerializedName("external_userid")
@Expose
private List<String> externalUserId = null;
/**
* Gets errcode.
*
* @return the errcode
*/
public Long getErrcode() {
return errcode;
}
/**
* Sets errcode.
*
* @param errcode the errcode
*/
public void setErrcode(Long errcode) {
this.errcode = errcode;
}
/**
* Gets errmsg.
*
* @return the errmsg
*/
public String getErrmsg() {
return errmsg;
}
/**
* Sets errmsg.
*
* @param errmsg the errmsg
*/
public void setErrmsg(String errmsg) {
this.errmsg = errmsg;
}
/**
* Gets external user id.
*
* @return the external user id
*/
public List<String> getExternalUserId() {
return externalUserId;
}
/**
* Sets external user id.
*
* @param externalUserId the external user id
*/
public void setExternalUserId(List<String> externalUserId) {
this.externalUserId = externalUserId;
}
/**
* From json wx cp user external contact list.
*
* @param json the json
* @return the wx cp user external contact list
*/
public static WxCpUserExternalContactList fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalContactList.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentList.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.external.moment.MomentInfo;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 企业发表内容到客户的朋友圈 获取企业全部的发表列表
*
* @author leiin created on 2021-10-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpGetMomentList extends WxCpBaseResp {
private static final long serialVersionUID = 106159971765109008L;
@SerializedName("next_cursor")
private String nextCursor;
@SerializedName("moment_list")
private List<MomentInfo> momentList;
/**
* From json wx cp get moment list.
*
* @param json the json
* @return the wx cp get moment list
*/
public static WxCpGetMomentList fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentList.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatStatistic.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatStatistic.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 联系客户群统计数据
*
* @author yqx created on 2020/3/16
*/
@Getter
@Setter
public class WxCpUserExternalGroupChatStatistic extends WxCpBaseResp {
private static final long serialVersionUID = -3548998672207956622L;
@SerializedName("total")
private int total;
@SerializedName("next_offset")
private int nextOffset;
@SerializedName("items")
private List<StatisticItem> itemList;
/**
* The type Statistic item.
*/
@Getter
@Setter
public static class StatisticItem implements Serializable {
private static final long serialVersionUID = -7272935708787587856L;
@SerializedName("owner")
private String owner;
@SerializedName("data")
private ItemData itemData;
}
/**
* The type Item data.
*/
@Getter
@Setter
public static class ItemData implements Serializable {
private static final long serialVersionUID = 354382008606856587L;
/**
* 新增客户群数量
*/
@SerializedName("new_chat_cnt")
private int newChatCnt;
/**
* 截至当天客户群总数量
*/
@SerializedName("chat_total")
private int chatTotal;
/**
* 截至当天有发过消息的客户群数量
*/
@SerializedName("chat_has_msg")
private int chatHasMsg;
/**
* 客户群新增群人数。
*/
@SerializedName("new_member_cnt")
private int newMemberCnt;
/**
* 截至当天客户群总人数
*/
@SerializedName("member_total")
private int memberTotal;
/**
* 截至当天有发过消息的群成员数
*/
@SerializedName("member_has_msg")
private int memberHasMsg;
/**
* 截至当天客户群消息总数
*/
@SerializedName("msg_total")
private int msgTotal;
}
/**
* From json wx cp user external group chat statistic.
*
* @param json the json
* @return the wx cp user external group chat statistic
*/
public static WxCpUserExternalGroupChatStatistic fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalGroupChatStatistic.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpContactWayList.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 「联系我」方式 列表返回对象
*
* @author <a href="https://github.com/imyzt">imyzt</a>
*/
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class WxCpContactWayList extends WxCpBaseResp implements Serializable {
private static final long serialVersionUID = -8697184659526210472L;
@SerializedName("contact_way")
private List<ContactWay> contactWay;
/**
* 分页参数,用于查询下一个分页的数据,为空时表示没有更多的分页
*/
@SerializedName("next_cursor")
private String nextCursor;
/**
* The type Contact way.
*/
@Getter
@Setter
public static class ContactWay implements Serializable {
private static final long serialVersionUID = -8697184659526210472L;
/**
* 联系方式的配置id
*/
@SerializedName("config_id")
private String configId;
}
/**
* From json wx cp contact way list.
*
* @param json the json
* @return the wx cp contact way list
*/
public static WxCpContactWayList fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpContactWayList.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupJoinWayResult.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
/**
* 客户群「加入群聊」配置处理结果
*
* @author Jc
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpGroupJoinWayResult extends WxCpBaseResp {
private static final long serialVersionUID = 5621905029624794129L;
@SerializedName("config_id")
private String configId;
/**
* From json wx cp group join way result.
*
* @param json the json
* @return the wx cp group join way result
*/
public static WxCpGroupJoinWayResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupJoinWayResult.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalUnassignList.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 离职员工外部联系人列表
*
* @author yqx & Wang_Wong created on 2020/3/15
*/
@Getter
@Setter
public class WxCpUserExternalUnassignList extends WxCpBaseResp {
@SerializedName("info")
private List<UnassignInfo> unassignInfos;
@SerializedName("is_last")
private boolean isLast;
@SerializedName("next_cursor")
private String nextCursor;
/**
* The type Unassign info.
*/
@Getter
@Setter
public static class UnassignInfo implements Serializable {
private static final long serialVersionUID = -4301684507150486556L;
/**
* 离职成员userid
*/
@SerializedName("handover_userid")
private String handoverUserid;
/**
* 外部联系人userid
*/
@SerializedName("external_userid")
private String externalUserid;
/**
* 成员离职时间
*/
@SerializedName("dimission_time")
private Long dimissionTime;
}
/**
* From json wx cp user external unassign list.
*
* @param json the json
* @return the wx cp user external unassign list
*/
public static WxCpUserExternalUnassignList fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpUserExternalUnassignList.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGetMomentSendResult.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.external.moment.CustomerItem;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.util.List;
/**
* 企业发表内容到客户的朋友圈 获取客户朋友圈发表后的可见客户列表
*
* @author leiin created on 2021-10-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpGetMomentSendResult extends WxCpBaseResp {
private static final long serialVersionUID = -5782811995184523379L;
@SerializedName("next_cursor")
private String nextCursor;
@SerializedName("customer_list")
private List<CustomerItem> customerList;
/**
* From json wx cp get moment send result.
*
* @param json the json
* @return the wx cp get moment send result
*/
public static WxCpGetMomentSendResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpGetMomentSendResult.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.*;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.bean.external.msg.*;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* 入群欢迎语素材.
*
* @author <a href="https://github.com/wslongchen">Mr.Pan</a> created on 2021-11-3
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class WxCpGroupWelcomeTemplateResult extends WxCpBaseResp implements Serializable {
private static final long serialVersionUID = -6406667238670580612L;
private Text text;
private Image image;
private Link link;
private MiniProgram miniprogram;
private File file;
private Video video;
/**
* 欢迎语素材id
* https://developer.work.weixin.qq.com/document/path/92366
*/
@SerializedName("template_id")
private String templateId;
/**
* 是否通知成员将这条入群欢迎语应用到客户群中,0-不通知,1-通知, 不填则通知
*/
private Integer notify;
/**
* From json wx cp group welcome template result.
*
* @param json the json
* @return the wx cp group welcome template result
*/
public static WxCpGroupWelcomeTemplateResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupWelcomeTemplateResult.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpExternalUserIdList.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 企业客户微信unionid的升级 - 企业客户external_userid列表
*
* @author Mr.Pan created on 2021/11/18
*/
@Getter
@Setter
public class WxCpExternalUserIdList extends WxCpBaseResp {
private static final long serialVersionUID = 3922210865083522513L;
@SerializedName("external_userid_info")
private List<ExternalUserIdInfo> externalUserIdInfo;
/**
* The type External user id info.
*/
@Getter
@Setter
public static class ExternalUserIdInfo implements Serializable {
private static final long serialVersionUID = 8846290993790709261L;
/**
* 所属企业id
*/
@SerializedName("corpid")
private String corpId;
/**
* 外部联系人id
*/
@SerializedName("external_userid")
private String externalUserId;
/**
* 新外部联系人id
*/
@SerializedName("new_external_userid")
private String newExternalUserId;
}
/**
* From json wx cp external user id list.
*
* @param json the json
* @return the wx cp external user id list
*/
public static WxCpExternalUserIdList fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpExternalUserIdList.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpProductAlbumListResult.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* <pre>
* 获取商品图册列表执行结果
* 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册列表
* </pre>
*
* @author <a href="https://github.com/Loading-Life">Lo_ading</a>
*/
@Getter
@Setter
public class WxCpProductAlbumListResult extends WxCpBaseResp implements Serializable {
private static final long serialVersionUID = 121265727802015428L;
@SerializedName("product_list")
private List<WxCpProductAlbumInfo> productList;
@SerializedName("next_cursor")
private String nextCursor;
/**
* From json wx cp product album list result.
*
* @param json the json
* @return the wx cp product album list result
*/
public static WxCpProductAlbumListResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumListResult.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpAddMomentResult.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
/**
* 企业发表内容到客户的朋友圈 创建发表任务结果
*
* @author leiin created on 2021-10-29
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpAddMomentResult extends WxCpBaseResp {
private static final long serialVersionUID = -7212260280504857210L;
@SerializedName("jobid")
private String jobId;
/**
* From json wx cp add moment result.
*
* @param json the json
* @return the wx cp add moment result
*/
public static WxCpAddMomentResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpAddMomentResult.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequest.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUpdateRemarkRequest.java | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* 修改客户备注信息请求.
*
* @author <a href="https://github.com/binarywang">Binary Wang</a> created on 2020-09-19
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class WxCpUpdateRemarkRequest implements Serializable {
private static final long serialVersionUID = -4960239393895754138L;
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
/**
* <pre>
* 字段名:userid
* 是否必须:是
* 描述:企业成员的userid
* </pre>
*/
@SerializedName("userid")
private String userId;
/**
* <pre>
* 字段名:external_userid
* 是否必须:是
* 描述:外部联系人userid
* </pre>
*/
@SerializedName("external_userid")
private String externalUserId;
/**
* <pre>
* 字段名:remark
* 是否必须:否
* 描述:此用户对外部联系人的备注,最多20个字符
* </pre>
*/
@SerializedName("remark")
private String remark;
/**
* <pre>
* 字段名:description
* 是否必须:否
* 描述:此用户对外部联系人的描述,最多150个字符
* </pre>
*/
@SerializedName("description")
private String description;
/**
* <pre>
* 字段名:remark_company
* 是否必须:否
* 描述:此用户对外部联系人备注的所属公司名称,最多20个字符
* </pre>
*/
@SerializedName("remark_company")
private String remarkCompany;
/**
* <pre>
* 字段名:remark_mobiles
* 是否必须:否
* 描述:此用户对外部联系人备注的手机号
* </pre>
*/
@SerializedName("remark_mobiles")
private String[] remarkMobiles;
/**
* <pre>
* 字段名:remark_pic_mediaid
* 是否必须:否
* 描述:备注图片的mediaid,
* </pre>
*/
@SerializedName("remark_pic_mediaid")
private String remarkPicMediaId;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRuleList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRuleList.java | package me.chanjar.weixin.cp.bean.external.interceptrule;
import com.google.gson.annotations.SerializedName;
import lombok.*;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* @Date: 2024-03-07 15:54
* @Author: shenliuming
* @return:
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpInterceptRuleList extends WxCpBaseResp implements Serializable {
private static final long serialVersionUID = -830298362453041229L;
/**
* link_id列表
*/
@SerializedName("rule_list")
private List<Rule> ruleList;
public static WxCpInterceptRuleList fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleList.class);
}
@Data
@EqualsAndHashCode(callSuper = false)
public static class Rule implements Serializable {
private static final long serialVersionUID = 4750537220968228300L;
/**
* 规则id
*/
@SerializedName("rule_id")
private String ruleId;
/**
* 规则名称,长度上限20个字符
*/
@SerializedName("rule_name")
private String ruleName;
/**
* 创建时间
*/
@SerializedName("create_time")
private Long createTime;
public static WxCpInterceptRuleList.Rule fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleList.Rule.class);
}
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRuleAddResult.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRuleAddResult.java | package me.chanjar.weixin.cp.bean.external.interceptrule;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* 新建敏感词规则负返回结果
*
* @author didi
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpInterceptRuleAddResult extends WxCpBaseResp implements Serializable {
private static final long serialVersionUID = 8540187819417742703L;
@SerializedName("rule_id")
private String ruleId;
/**
* From json wx cp intercept rule result resp.
*
* @param json the json
* @return the wx cp intercept rule result resp
*/
public static WxCpInterceptRuleAddResult fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleAddResult.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRule.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRule.java | package me.chanjar.weixin.cp.bean.external.interceptrule;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.common.bean.ToJson;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 敏感词规则修改接口请求和详情接口响应共用的实体类
*
* @author didi
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpInterceptRule implements Serializable, ToJson {
private static final long serialVersionUID = 7161086545769110431L;
@SerializedName("rule_name")
private String ruleName;
@SerializedName("rule_id")
private String ruleId;
@SerializedName("word_list")
private List<String> wordList;
@SerializedName("extra_rule")
private ExtraRule extraRule;
@SerializedName("intercept_type")
private int interceptType;
@SerializedName("add_applicable_range")
private ApplicableRange addApplicableRange;
@SerializedName("remove_applicable_range")
private ApplicableRange removeApplicableRange;
@Data
public static class ExtraRule implements Serializable {
private static final long serialVersionUID = -6377386837586111671L;
@SerializedName("semantics_list")
private List<Integer> semanticsList;
}
/**
* From json wx cp intercept rule resp.
*
* @param json the json
* @return the wx cp intercept rule resp
*/
public static WxCpInterceptRule fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRule.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/ApplicableRange.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/ApplicableRange.java | package me.chanjar.weixin.cp.bean.external.interceptrule;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* The type Applicable range.
*
* @author didi
*/
@Data
public class ApplicableRange implements Serializable {
private static final long serialVersionUID = -2473660177998792887L;
@SerializedName("user_list")
private List<String> userList;
@SerializedName("department_list")
private List<Integer> departmentList;
/**
* From json applicable range.
*
* @param json the json
* @return the applicable range
*/
public static ApplicableRange fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, ApplicableRange.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRuleInfo.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRuleInfo.java | package me.chanjar.weixin.cp.bean.external.interceptrule;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* @Date: 2024-03-07 17:02
* @Author: shenliuming
* @return:
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCpInterceptRuleInfo extends WxCpBaseResp implements Serializable {
private static final long serialVersionUID = -425957862453041229L;
@SerializedName("rule")
private Rule rule;
@Data
@EqualsAndHashCode(callSuper = false)
public static class Rule implements Serializable {
@SerializedName("rule_id")
private String ruleId;
@SerializedName("rule_name")
private String ruleName;
@SerializedName("word_list")
private List<String> wordList;
@SerializedName("semantics_list")
private List<Integer> semanticsList;
@SerializedName("intercept_type")
private Integer interceptType;
@SerializedName("applicable_range")
private ApplicableRange applicableRange;
@SerializedName("create_time")
private long createTime;
}
public static WxCpInterceptRuleInfo fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleInfo.class);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRuleAddRequest.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/interceptrule/WxCpInterceptRuleAddRequest.java | package me.chanjar.weixin.cp.bean.external.interceptrule;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.chanjar.weixin.common.bean.ToJson;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* 新增敏感词规则请求参数封装实体类
*
* @author didi created on 2022-04-17
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCpInterceptRuleAddRequest implements Serializable, ToJson {
private static final long serialVersionUID = 7161086545769110431L;
@SerializedName("rule_name")
private String ruleName;
@SerializedName("rule_id")
private String ruleId;
@SerializedName("word_list")
private List<String> wordList;
@SerializedName("semantics_list")
private List<Integer> semanticsList;
@SerializedName("intercept_type")
private int interceptType;
@SerializedName("applicable_range")
private ApplicableRange applicableRange;
/**
* From json wx cp intercept rule resp.
*
* @param json the json
* @return the wx cp intercept rule resp
*/
public static WxCpInterceptRuleAddRequest fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpInterceptRuleAddRequest.class);
}
/**
* To json string.
*
* @return the string
*/
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Image.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Image.java | package me.chanjar.weixin.cp.bean.external.product;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import java.io.Serializable;
/**
* 商品画册图片
*
* @author <a href="https://github.com/Loading-Life">Lo_ading</a>
*/
@Data
public class Image implements Serializable {
private static final long serialVersionUID = -2737415903252627814L;
@SerializedName("media_id")
private String mediaId;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/product/Attachment.java | package me.chanjar.weixin.cp.bean.external.product;
import lombok.Data;
import me.chanjar.weixin.cp.constant.WxCpConsts;
import java.io.Serializable;
/**
* 商品画册附件
*
* @author <a href="https://github.com/Loading-Life">Lo_ading</a>
*/
@Data
public class Attachment implements Serializable {
private static final long serialVersionUID = -4545283630169056262L;
/**
* NOTE: 20211110 字段接口未返回
*/
private String type;
/**
* 附件类型,目前仅支持image
*/
private Image image;
/**
* Sets image.
*
* @param image the image
*/
public void setImage(Image image) {
this.image = image;
this.type = WxCpConsts.ProductAttachmentType.IMAGE;
}
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/VisibleRange.java | package me.chanjar.weixin.cp.bean.external.moment;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* The type Visible range.
*
* @author Boris
*/
@Data
@Accessors(chain = true)
public class VisibleRange implements Serializable {
private static final long serialVersionUID = 5356285705365931051L;
@SerializedName("sender_list")
private SenderList senderList;
@SerializedName("external_contact_list")
private ExternalContactList externalContactList;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/MomentInfo.java | package me.chanjar.weixin.cp.bean.external.moment;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.bean.external.msg.*;
import java.util.List;
/**
* The type Moment info.
*
* @author Borisg
*/
@Data
public class MomentInfo {
@SerializedName("moment_id")
private String momentId;
@SerializedName("creator")
private String creator;
@SerializedName("create_time")
private String createTime;
@SerializedName("create_type")
private Integer createType;
@SerializedName("visible_type")
private Integer visibleType;
private Text text;
private List<Image> image;
private Video video;
private Link link;
private Location location;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/CustomerItem.java | package me.chanjar.weixin.cp.bean.external.moment;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
/**
* The type Customer item.
*
* @author Boris
*/
@Getter
@Setter
public class CustomerItem {
@SerializedName("external_userid")
private String externalUserId;
@SerializedName("userid")
private String userId;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
binarywang/WxJava | https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/moment/ExternalContactList.java | package me.chanjar.weixin.cp.bean.external.moment;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* The type External contact list.
*/
@Getter
@Setter
public class ExternalContactList {
@SerializedName("tag_list")
private List<String> tagList;
}
| java | Apache-2.0 | 84b5c4d2d0774f800237634e5d0336f53c004fe3 | 2026-01-04T14:46:39.499027Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.