yujian
2019-09-03 2ddf5b8a1290123e2d1c05bcc851ec35cd217afc
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
56
57
58
59
60
61
62
63
64
65
66
package com.yeshi.fanli.service.inter.push;
 
import java.util.List;
 
import com.yeshi.fanli.entity.push.PushInfo;
import com.yeshi.fanli.exception.push.PushCouponException;
import com.yeshi.fanli.exception.push.PushException;
import com.yeshi.fanli.exception.push.PushInfoException;
 
public interface PushInfoService {
 
    public void deleteBatchByPrimaryKey(List<Long> list);
    
 
    public void save(PushInfo record) throws PushInfoException,Exception;
 
    
    /**
     * 后端查询
     * @param start
     * @param count
     * @param key
     * @param keyType
     * @param state
     * @return
     */
    public List<PushInfo> listQuery(long start, int count, String key, Integer keyType, Integer state, String type);
 
    public long countQuery(String key, Integer keyType, Integer state, String type);
 
 
    /**
     * 后端手动推送
     * @param id
     * @throws Exception
     * @throws PushInfoException
     * @throws PushException
     */
    public void handPush(Long id) throws Exception, PushInfoException, PushException;
 
    
    /**
     * 执行推送
     * @param id
     * @throws Exception
     * @throws PushCouponException
     * @throws PushException
     */
    public void executePush(PushInfo pushInfo) throws Exception, PushInfoException, PushException;
    
    
    /**
     * 需要推送的任务
     * @return
     */
    public List<PushInfo> listTask();
 
 
    /**
     *定时任务推送
     * @param record
     */
    public void taskPush(PushInfo record);
 
    
}