Commit 030c4d41 by 18356073052

群发消息任务代码重构

1 parent a7904e85
package com.linkwechat.wecom.client; package com.linkwechat.wecom.client;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.DataObject; import com.dtflys.forest.annotation.DataObject;
import com.dtflys.forest.annotation.Query; import com.dtflys.forest.annotation.Query;
import com.dtflys.forest.annotation.Request; import com.dtflys.forest.annotation.Request;
import com.linkwechat.wecom.domain.dto.message.QueryCustomerMessageStatusResultDataObjectDto;
import com.linkwechat.wecom.domain.dto.message.QueryCustomerMessageStatusResultDto; import com.linkwechat.wecom.domain.dto.message.QueryCustomerMessageStatusResultDto;
import com.linkwechat.wecom.domain.dto.message.SendMessageResultDto; import com.linkwechat.wecom.domain.dto.message.SendMessageResultDto;
import com.linkwechat.wecom.domain.dto.message.WeCustomerMessagePushDto; import com.linkwechat.wecom.domain.dto.message.WeCustomerMessagePushDto;
...@@ -22,7 +24,7 @@ public interface WeCustomerMessagePushClient { ...@@ -22,7 +24,7 @@ public interface WeCustomerMessagePushClient {
@Request(url = "/externalcontact/add_msg_template", @Request(url = "/externalcontact/add_msg_template",
type = "POST" type = "POST"
) )
SendMessageResultDto sendCustomerMessageToUser(@DataObject WeCustomerMessagePushDto customerMessagePushDto); SendMessageResultDto sendCustomerMessageToUser(@Body WeCustomerMessagePushDto customerMessagePushDto);
/** /**
* 获取企业群发消息发送结果 * 获取企业群发消息发送结果
...@@ -33,7 +35,7 @@ public interface WeCustomerMessagePushClient { ...@@ -33,7 +35,7 @@ public interface WeCustomerMessagePushClient {
@Request(url = "/externalcontact/get_group_msg_result", @Request(url = "/externalcontact/get_group_msg_result",
type = "POST" type = "POST"
) )
QueryCustomerMessageStatusResultDto queryCustomerMessageStatus(@Query(value = "msgid") String msgid); QueryCustomerMessageStatusResultDto queryCustomerMessageStatus(@Body QueryCustomerMessageStatusResultDataObjectDto queryCustomerMessageStatusResultDataObjectDto);
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!