test commit
This commit is contained in:
parent
4bf828ce9a
commit
84b3cb6fc0
|
|
@ -0,0 +1,67 @@
|
|||
package com.dyj.examples;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.dyj.common.domain.DyResult;
|
||||
import com.dyj.web.DyWebClient;
|
||||
import com.dyj.web.domain.TextMsg;
|
||||
import com.dyj.web.domain.query.AuthorizeUserListQuery;
|
||||
import com.dyj.web.domain.query.RevokeMsgQuery;
|
||||
import com.dyj.web.domain.query.SendMsgQuery;
|
||||
import com.dyj.web.domain.vo.AuthorizeUserListVo;
|
||||
import com.dyj.web.domain.vo.BaseVo;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = DyJavaExamplesApplication.class)
|
||||
class ChatMsgTest {
|
||||
|
||||
private final String openId = "_000PVg69T4BivjAuETIkxHls3cNlJs2CVXm";
|
||||
|
||||
private final String msgId = "";
|
||||
private final String conversationId = "";
|
||||
|
||||
/**
|
||||
* 发送私信消息
|
||||
*/
|
||||
@Test
|
||||
void sendMessage() {
|
||||
SendMsgQuery sendMsgQuery = SendMsgQuery.builder().msgId("")
|
||||
.openId(openId)
|
||||
.msgId(msgId)
|
||||
.conversationId(conversationId)
|
||||
.toUserId("")
|
||||
.content(TextMsg.builder().text("12321321").build()).build();
|
||||
DyResult<BaseVo> dyResult = DyWebClient.getInstance().sendMessage(sendMsgQuery);
|
||||
System.out.println(JSONArray.toJSONString(dyResult));
|
||||
}
|
||||
|
||||
//查询主动授权私信用户
|
||||
@Test
|
||||
void queryAuthorizeUserList() {
|
||||
AuthorizeUserListQuery query = AuthorizeUserListQuery.builder()
|
||||
.pageNum(1)
|
||||
.pageSize(10)
|
||||
.openId(openId)
|
||||
.build();
|
||||
DyResult<AuthorizeUserListVo> dyResult = DyWebClient.getInstance().queryAuthorizeUserList(query);
|
||||
System.out.println(JSONArray.toJSONString(dyResult));
|
||||
}
|
||||
|
||||
//私信消息撤回
|
||||
@Test
|
||||
void revokeMessage() {
|
||||
RevokeMsgQuery query = RevokeMsgQuery.builder()
|
||||
.msgId(msgId)
|
||||
.conversationId(conversationId)
|
||||
.conversationType(1)
|
||||
.build();
|
||||
DyResult<BaseVo> dyResult = DyWebClient.getInstance().revokeMessage(query);
|
||||
System.out.println(JSONArray.toJSONString(dyResult));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,113 @@
|
|||
package com.dyj.examples;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.dyj.common.enums.GroupSettingTypeEnum;
|
||||
import com.dyj.web.DyWebClient;
|
||||
import com.dyj.web.domain.TextMsg;
|
||||
import com.dyj.web.domain.query.*;
|
||||
import com.dyj.web.domain.vo.CreateFansGroupVo;
|
||||
import com.dyj.web.domain.vo.FansGroupSettingVo;
|
||||
import com.dyj.web.domain.vo.FansGroupVo;
|
||||
import com.dyj.web.domain.vo.SetFansGroupEnterStatusVo;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = DyJavaExamplesApplication.class)
|
||||
class GroupTest {
|
||||
private final String openId = "_000PVg69T4BivjAuETIkxHls3cNlJs2CVXm";
|
||||
|
||||
//创建粉丝群
|
||||
@Test
|
||||
void createFansGroup() {
|
||||
CreateFansGroupQuery query = CreateFansGroupQuery.builder()
|
||||
.openId(openId)
|
||||
.avatarUri("")
|
||||
.itemAutoSync(1)
|
||||
.fansLimit(100)
|
||||
.liveAutoSync(1)
|
||||
.showAtProfile(1)
|
||||
.description("测试群组")
|
||||
.relationType(0)
|
||||
.openAuditSwitch(0)
|
||||
.groupType(5)
|
||||
.groupName("测试群组")
|
||||
.build();
|
||||
CreateFansGroupVo fansGroup = DyWebClient.getInstance().createFansGroup(query);
|
||||
System.out.println(JSONObject.toJSONString(fansGroup));
|
||||
}
|
||||
|
||||
//变更用户入群申请状态
|
||||
@Test
|
||||
void setFansGroupEnterStatus() {
|
||||
SetFansGroupEnterStatusQuery query = SetFansGroupEnterStatusQuery.builder().status(2).openId(openId).applyId("").build();
|
||||
SetFansGroupEnterStatusVo enterStatus = DyWebClient.getInstance().setFansGroupEnterStatus(query);
|
||||
System.out.println(JSONObject.toJSONString(enterStatus));
|
||||
}
|
||||
|
||||
@Test
|
||||
void queryFansGroup() {
|
||||
FansGroupVo fansGroupVo = DyWebClient.getInstance().queryFansGroup(openId);
|
||||
System.out.println(JSONObject.toJSONString(fansGroupVo));
|
||||
}
|
||||
|
||||
//发送群消息
|
||||
@Test
|
||||
void sendGroupMessage() {
|
||||
SendGroupMsgQuery query = SendGroupMsgQuery.builder()
|
||||
.groupId("")
|
||||
.content(TextMsg.builder().text("2321ewzs").build())
|
||||
.groupToken("")
|
||||
.openId(openId)
|
||||
.build();
|
||||
DyWebClient.getInstance().sendGroupMessage(query);
|
||||
}
|
||||
|
||||
@Test
|
||||
void revokeGroupMessage() {
|
||||
System.out.println(DyWebClient.getInstance().revokeGroupMessage(RevokeGroupMsgQuery.builder().openId(openId).msgId("").build()));
|
||||
}
|
||||
|
||||
//设置进群问候语&群公告
|
||||
@Test
|
||||
void queryFansGroupSetting() {
|
||||
FansGroupSettingQuery query = FansGroupSettingQuery.builder()
|
||||
.groupId("")
|
||||
.openId(openId)
|
||||
.msgList(Collections.singletonList(TextMsg.builder().text("啊范德萨打发").build()))
|
||||
.groupSettingType(GroupSettingTypeEnum.NOTICE).build();
|
||||
FansGroupSettingVo settingVo = DyWebClient.getInstance().queryFansGroupSetting(query);
|
||||
System.out.println(JSONObject.toJSONString(settingVo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询群主所在群的用户入群申请状态
|
||||
*/
|
||||
@Test
|
||||
void queryFansGroupEnterStatus() {
|
||||
System.out.println(DyWebClient.getInstance().queryFansGroupEnterStatus(openId, 100, 0));
|
||||
}
|
||||
|
||||
//取消进群问候语&群公告配置。
|
||||
@Test
|
||||
void cancelFansGroupSetting() {
|
||||
FansGroupSettingQuery query = FansGroupSettingQuery.builder()
|
||||
.groupId("")
|
||||
.openId(openId)
|
||||
.groupSettingType(GroupSettingTypeEnum.NOTICE).build();
|
||||
System.out.println(DyWebClient.getInstance().cancelFansGroupSetting(query));
|
||||
}
|
||||
|
||||
//查询用户剩余建群额度
|
||||
@Test
|
||||
void queryFansGroupCount() {
|
||||
System.out.println(DyWebClient.getInstance().queryFansGroupCount(openId));
|
||||
}
|
||||
}
|
||||
|
|
@ -54,34 +54,47 @@ public class AppletCardMsg extends MsgContent {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public static AppletCardMsg build() {
|
||||
return new AppletCardMsg();
|
||||
public static AppletCardMsgBuilder builder() {
|
||||
return new AppletCardMsgBuilder();
|
||||
}
|
||||
|
||||
public AppletCardMsg cardTemplateId(String cardTemplateId) {
|
||||
setAppletCard(cardTemplateId, null, null, null, null);
|
||||
return this;
|
||||
}
|
||||
public static class AppletCardMsgBuilder {
|
||||
private String cardTemplateId;
|
||||
private String path;
|
||||
private String query;
|
||||
private String appId;
|
||||
private String schema;
|
||||
|
||||
public AppletCardMsg path(String path) {
|
||||
setAppletCard(null, path, null, null,null);
|
||||
return this;
|
||||
}
|
||||
public AppletCardMsgBuilder cardTemplateId(String cardTemplateId) {
|
||||
this.cardTemplateId = cardTemplateId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppletCardMsgBuilder path(String path) {
|
||||
this.path = path;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppletCardMsg query(String query) {
|
||||
setAppletCard(null, null, query, null,null);
|
||||
return this;
|
||||
}
|
||||
public AppletCardMsgBuilder query(String query) {
|
||||
this.query = query;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppletCardMsg appId(String appId) {
|
||||
setAppletCard(null, null, null, appId,null);
|
||||
return this;
|
||||
}
|
||||
public AppletCardMsgBuilder appId(String appId) {
|
||||
this.appId = appId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppletCardMsgBuilder schema(String schema) {
|
||||
this.schema = schema;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppletCardMsg build() {
|
||||
AppletCardMsg appletCardMsg = new AppletCardMsg();
|
||||
appletCardMsg.setAppletCard(cardTemplateId, path, query, appId, schema);
|
||||
return appletCardMsg;
|
||||
}
|
||||
|
||||
public AppletCardMsg schema(String schema) {
|
||||
setAppletCard(null, null, null, null,schema);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,17 +40,25 @@ public class AppletCouponMsg extends MsgContent{
|
|||
}
|
||||
}
|
||||
|
||||
public static AppletCouponMsg build() {
|
||||
return new AppletCouponMsg();
|
||||
public static AppletCouponMsgBuilder builder() {
|
||||
return new AppletCouponMsgBuilder();
|
||||
}
|
||||
public static class AppletCouponMsgBuilder {
|
||||
private String activityId;
|
||||
private String couponMetaId;
|
||||
public AppletCouponMsgBuilder activityId(String activityId) {
|
||||
this.activityId = activityId;
|
||||
return this;
|
||||
}
|
||||
public AppletCouponMsgBuilder couponMetaId(String couponMetaId) {
|
||||
this.couponMetaId = couponMetaId;
|
||||
return this;
|
||||
}
|
||||
public AppletCouponMsg build() {
|
||||
AppletCouponMsg appletCouponMsg = new AppletCouponMsg();
|
||||
appletCouponMsg.setAppletCoupon(activityId,couponMetaId);
|
||||
return appletCouponMsg;
|
||||
}
|
||||
}
|
||||
|
||||
public AppletCouponMsg activityId(String activityId) {
|
||||
setAppletCoupon(activityId,null);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AppletCouponMsg couponMetaId(String couponMetaId) {
|
||||
setAppletCoupon(null,couponMetaId);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,18 +38,26 @@ public class AuthPrivateMessageCardMsg extends MsgContent{
|
|||
}
|
||||
}
|
||||
|
||||
public static AuthPrivateMessageCardMsg build(){
|
||||
return new AuthPrivateMessageCardMsg();
|
||||
public static AuthPrivateMessageCardMsgBuilder builder() {
|
||||
return new AuthPrivateMessageCardMsgBuilder();
|
||||
}
|
||||
|
||||
public AuthPrivateMessageCardMsg appInfo(AuthPrivateMessageCardAppInfo appInfo){
|
||||
setAuthPrivateMessageCard(appInfo,null);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AuthPrivateMessageCardMsg toUserInfo(AuthPrivateMessageCardToUserInfo toUserInfo){
|
||||
setAuthPrivateMessageCard(null,toUserInfo);
|
||||
return this;
|
||||
public static class AuthPrivateMessageCardMsgBuilder {
|
||||
private AuthPrivateMessageCardAppInfo appInfo;
|
||||
private AuthPrivateMessageCardToUserInfo toUserInfo;
|
||||
public AuthPrivateMessageCardMsgBuilder appInfo(AuthPrivateMessageCardAppInfo appInfo) {
|
||||
this.appInfo = appInfo;
|
||||
return this;
|
||||
}
|
||||
public AuthPrivateMessageCardMsgBuilder toUserInfo(AuthPrivateMessageCardToUserInfo toUserInfo) {
|
||||
this.toUserInfo = toUserInfo;
|
||||
return this;
|
||||
}
|
||||
public AuthPrivateMessageCardMsg build() {
|
||||
AuthPrivateMessageCardMsg authPrivateMessageCardMsg = new AuthPrivateMessageCardMsg();
|
||||
authPrivateMessageCardMsg.setAuthPrivateMessageCard(appInfo,toUserInfo);
|
||||
return authPrivateMessageCardMsg;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -64,13 +72,20 @@ public class AuthPrivateMessageCardMsg extends MsgContent{
|
|||
this.app_id = app_id;
|
||||
}
|
||||
|
||||
public static AuthPrivateMessageCardAppInfo build(){
|
||||
return new AuthPrivateMessageCardAppInfo();
|
||||
public static AuthPrivateMessageCardAppInfoBuilder builder(){
|
||||
return new AuthPrivateMessageCardAppInfoBuilder();
|
||||
}
|
||||
|
||||
public AuthPrivateMessageCardAppInfo appId(String appId){
|
||||
this.app_id = appId;
|
||||
return this;
|
||||
public static class AuthPrivateMessageCardAppInfoBuilder {
|
||||
private String appId;
|
||||
public AuthPrivateMessageCardAppInfoBuilder appId(String appId){
|
||||
this.appId = appId;
|
||||
return this;
|
||||
}
|
||||
public AuthPrivateMessageCardAppInfo build(){
|
||||
AuthPrivateMessageCardAppInfo authPrivateMessageCardAppInfo = new AuthPrivateMessageCardAppInfo();
|
||||
authPrivateMessageCardAppInfo.setApp_id(appId);
|
||||
return authPrivateMessageCardAppInfo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -94,13 +109,27 @@ public class AuthPrivateMessageCardMsg extends MsgContent{
|
|||
this.open_id = open_id;
|
||||
}
|
||||
|
||||
public static AuthPrivateMessageCardToUserInfo build(){
|
||||
return new AuthPrivateMessageCardToUserInfo();
|
||||
public static AuthPrivateMessageCardToUserInfoBuilder builder(){
|
||||
return new AuthPrivateMessageCardToUserInfoBuilder();
|
||||
}
|
||||
|
||||
public AuthPrivateMessageCardToUserInfo appId(String appId){
|
||||
this.app_id = appId;
|
||||
return this;
|
||||
public static class AuthPrivateMessageCardToUserInfoBuilder {
|
||||
private String appId;
|
||||
private String openId;
|
||||
public AuthPrivateMessageCardToUserInfoBuilder appId(String appId){
|
||||
this.appId = appId;
|
||||
return this;
|
||||
}
|
||||
public AuthPrivateMessageCardToUserInfoBuilder openId(String openId){
|
||||
this.openId = openId;
|
||||
return this;
|
||||
}
|
||||
public AuthPrivateMessageCardToUserInfo build(){
|
||||
AuthPrivateMessageCardToUserInfo authPrivateMessageCardToUserInfo = new AuthPrivateMessageCardToUserInfo();
|
||||
authPrivateMessageCardToUserInfo.setApp_id(appId);
|
||||
authPrivateMessageCardToUserInfo.setOpen_id(openId);
|
||||
return authPrivateMessageCardToUserInfo;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,12 +35,22 @@ public class CardMsg extends MsgContent {
|
|||
this.retain_consult_card.put("card_id", cardId);
|
||||
}
|
||||
|
||||
public static CardMsg build() {
|
||||
return new CardMsg();
|
||||
public static CardMsgBuilder builder() {
|
||||
return new CardMsgBuilder();
|
||||
}
|
||||
|
||||
public CardMsg cardId(String cardId) {
|
||||
this.setRetainConsultCard(cardId);
|
||||
return this;
|
||||
}
|
||||
public static class CardMsgBuilder {
|
||||
private String cardId;
|
||||
|
||||
public CardMsgBuilder cardId(String cardId) {
|
||||
this.cardId = cardId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CardMsg build() {
|
||||
CardMsg cardMsg = new CardMsg();
|
||||
cardMsg.setRetainConsultCard(this.cardId);
|
||||
return cardMsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,13 +35,20 @@ public class ImageMsg extends MsgContent{
|
|||
this.image = image;
|
||||
}
|
||||
|
||||
|
||||
public static ImageMsg build(){
|
||||
return new ImageMsg();
|
||||
public static ImageMsgBuilder builder() {
|
||||
return new ImageMsgBuilder();
|
||||
}
|
||||
|
||||
public ImageMsg mediaId(String mediaId){
|
||||
setImage(mediaId);
|
||||
return this;
|
||||
public static class ImageMsgBuilder {
|
||||
private String mediaId;
|
||||
public ImageMsgBuilder mediaId(String mediaId) {
|
||||
this.mediaId = mediaId;
|
||||
return this;
|
||||
}
|
||||
public ImageMsg build() {
|
||||
ImageMsg imageMsg = new ImageMsg();
|
||||
imageMsg.setImage(mediaId);
|
||||
return imageMsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import java.util.Objects;
|
|||
* @author danmo
|
||||
* @date 2024-04-08 15:56
|
||||
**/
|
||||
public class InvitationMsg extends MsgContent{
|
||||
public class InvitationMsg extends MsgContent {
|
||||
|
||||
|
||||
private JSONObject group_invitation;
|
||||
|
|
@ -20,6 +20,7 @@ public class InvitationMsg extends MsgContent{
|
|||
public InvitationMsg() {
|
||||
super.setMsg_type(MediaTypeEnum.GROUP_INVITATION);
|
||||
}
|
||||
|
||||
public JSONObject getGroup_invitation() {
|
||||
return group_invitation;
|
||||
}
|
||||
|
|
@ -40,17 +41,28 @@ public class InvitationMsg extends MsgContent{
|
|||
}
|
||||
}
|
||||
|
||||
public static InvitationMsg build() {
|
||||
return new InvitationMsg();
|
||||
public static InvitationMsgBuilder builder() {
|
||||
return new InvitationMsgBuilder();
|
||||
}
|
||||
|
||||
public InvitationMsg groupId(String groupId) {
|
||||
setGroupInvitation(groupId, null);
|
||||
return this;
|
||||
}
|
||||
public static class InvitationMsgBuilder {
|
||||
private String groupId;
|
||||
private String groupToken;
|
||||
|
||||
public InvitationMsg groupToken(String groupToken) {
|
||||
setGroupInvitation(null, groupToken);
|
||||
return this;
|
||||
public InvitationMsgBuilder groupId(String groupId) {
|
||||
this.groupId = groupId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public InvitationMsgBuilder groupToken(String groupToken) {
|
||||
this.groupToken = groupToken;
|
||||
return this;
|
||||
}
|
||||
|
||||
public InvitationMsg build() {
|
||||
InvitationMsg invitationMsg = new InvitationMsg();
|
||||
invitationMsg.setGroupInvitation(groupId, groupToken);
|
||||
return invitationMsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,14 +33,25 @@ public class TextMsg extends MsgContent{
|
|||
this.text = text;
|
||||
}
|
||||
|
||||
public static TextMsg build(){
|
||||
return new TextMsg();
|
||||
public static TextMsgBuilder builder(){
|
||||
return new TextMsgBuilder();
|
||||
}
|
||||
|
||||
public TextMsg text(String text){
|
||||
setText(text);
|
||||
return this;
|
||||
public static class TextMsgBuilder{
|
||||
private String text;
|
||||
|
||||
public TextMsgBuilder text(String text){
|
||||
this.text = text;
|
||||
return this;
|
||||
}
|
||||
|
||||
public TextMsg build(){
|
||||
TextMsg textMsg = new TextMsg();
|
||||
textMsg.setText(text);
|
||||
return textMsg;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import java.util.Objects;
|
|||
|
||||
/**
|
||||
* 视频
|
||||
*
|
||||
* @author danmo
|
||||
* @date 2024-04-08 14:23
|
||||
**/
|
||||
|
|
@ -34,12 +35,22 @@ public class VideoMsg extends MsgContent {
|
|||
this.video = video;
|
||||
}
|
||||
|
||||
public static VideoMsg build() {
|
||||
return new VideoMsg();
|
||||
public static VideoMsgBuilder builder() {
|
||||
return new VideoMsgBuilder();
|
||||
}
|
||||
|
||||
public VideoMsg itemId(String itemId) {
|
||||
setVideo(itemId);
|
||||
return this;
|
||||
public static class VideoMsgBuilder {
|
||||
private String itemId;
|
||||
|
||||
public VideoMsgBuilder itemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public VideoMsg build() {
|
||||
VideoMsg videoMsg = new VideoMsg();
|
||||
videoMsg.setVideo(itemId);
|
||||
return videoMsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public class CreateFansGroupQuery extends UserInfoQuery {
|
|||
private Integer fans_limit;
|
||||
|
||||
/**
|
||||
* 2 主播粉丝群 5 万粉群
|
||||
* 2-主播粉丝群 5-万粉群
|
||||
*/
|
||||
private Integer group_type;
|
||||
|
||||
|
|
@ -159,9 +159,9 @@ public class CreateFansGroupQuery extends UserInfoQuery {
|
|||
}
|
||||
|
||||
|
||||
public static CreateFansGroupQuery Builder()
|
||||
public static CreateFansGroupQueryBuilder builder()
|
||||
{
|
||||
return new CreateFansGroupQuery();
|
||||
return new CreateFansGroupQueryBuilder();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -120,6 +120,53 @@ public class SendMsgQuery extends UserInfoQuery {
|
|||
private Integer tenantId;
|
||||
private String clientKey;
|
||||
private String openId;
|
||||
|
||||
public SendMsgQueryBuilder msgId(String msgId) {
|
||||
this.msgId = msgId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SendMsgQueryBuilder conversationId(String conversationId) {
|
||||
this.conversationId = conversationId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SendMsgQueryBuilder toUserId(String toUserId) {
|
||||
this.toUserId = toUserId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SendMsgQueryBuilder content(MsgContent content) {
|
||||
this.content = content;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SendMsgQueryBuilder scene(String scene) {
|
||||
this.scene = scene;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SendMsgQueryBuilder contentList(List<MsgContent> contentList) {
|
||||
this.contentList = contentList;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SendMsgQueryBuilder tenantId(Integer tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SendMsgQueryBuilder clientKey(String clientKey) {
|
||||
this.clientKey = clientKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public SendMsgQueryBuilder openId(String openId) {
|
||||
this.openId = openId;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public SendMsgQuery build() {
|
||||
SendMsgQuery sendMsgQuery = new SendMsgQuery();
|
||||
sendMsgQuery.setMsg_id(msgId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue