-
-
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.
🆕 #2372【企业微信】新增客户群opengid转换和入群欢迎语素材管理相关接口
- Loading branch information
1 parent
dd83e16
commit 88301a6
Showing
4 changed files
with
216 additions
and
54 deletions.
There are no files selected for viewing
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
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
45 changes: 45 additions & 0 deletions
45
...a-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpGroupWelcomeTemplateResult.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,45 @@ | ||
package me.chanjar.weixin.cp.bean.external; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
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> | ||
* @date 2021-11-3 | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
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; | ||
|
||
public static WxCpGroupWelcomeTemplateResult fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpGroupWelcomeTemplateResult.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
} |
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