IWeCustomerMessageService.java
1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.linkwechat.wecom.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.linkwechat.wecom.domain.WeCustomer;
import com.linkwechat.wecom.domain.WeCustomerMessage;
import com.linkwechat.wecom.domain.WeGroup;
import com.linkwechat.wecom.domain.dto.message.CustomerMessagePushDto;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 群发消息 微信消息表service接口
*
* @author kewen
* @date 2020-12-12
*/
public interface IWeCustomerMessageService extends IService<WeCustomerMessage> {
/**
*
* @param messageId 微信消息表主键id
* @param actualSend 实际发送消息数(客户对应多少人 客户群对应多个群)
* @return int
*/
int updateWeCustomerMessageActualSend( Long messageId, Integer actualSend);
/**
* 保存微信消息 WeCustomerMessage
* @param messageId
* @param messageOriginalId
* @param customerMessagePushDto
* @param size
*/
void saveWeCustomerMessage(long messageId, long messageOriginalId, CustomerMessagePushDto customerMessagePushDto, int size,String content);
/**
*
* @param messageId
* @param msgIds
* @throws JsonProcessingException
*/
void updateMsgId(long messageId, List<String> msgIds) throws JsonProcessingException;
/**
* 发送消息
*
* @param customerMessagePushDto 消息信息
* @param messageId
* @throws JsonProcessingException
*/
public void sendMessgae(CustomerMessagePushDto customerMessagePushDto, long messageId,List<WeCustomer> customers,List<WeGroup> groups) throws JsonProcessingException;
}