-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,845 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccount.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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 | ||
* @date 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; | ||
|
||
|
||
|
||
} |
31 changes: 31 additions & 0 deletions
31
...in-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountCount.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
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; | ||
|
||
/** | ||
* @author Totoro | ||
* @date 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; | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseAccountDuration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package me.chanjar.weixin.cp.bean.license; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* | ||
* @author Totoro | ||
* @date 2022-6-27 11:22:53 | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class WxCpTpLicenseAccountDuration implements Serializable { | ||
private static final long serialVersionUID = 7960912263908286975L; | ||
|
||
private Integer months; | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
...n-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveAccount.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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 | ||
* @date 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; | ||
} |
39 changes: 39 additions & 0 deletions
39
...-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseActiveCodeInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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 | ||
* @date 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; | ||
|
||
|
||
} |
38 changes: 38 additions & 0 deletions
38
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseBaseAccount.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
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 | ||
* @date 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; | ||
|
||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseCorpAccount.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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 | ||
* @date 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; | ||
|
||
|
||
} |
28 changes: 28 additions & 0 deletions
28
...-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseInvalidAccount.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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 | ||
* @date 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; | ||
|
||
|
||
} |
52 changes: 52 additions & 0 deletions
52
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseOrder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
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 | ||
* @date 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; | ||
|
||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/license/WxCpTpLicenseSimpleOrder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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; | ||
|
||
/** | ||
* @author Totoro | ||
* @date 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; | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} |
Oops, something went wrong.