yujian
2020-06-23 310a187c241a30f8bc237bad9af15afb18e68290
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.yeshi.fanli.service.inter.user.cloud;
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.user.cloud.CloudOrderMenuEnum;
import com.yeshi.fanli.entity.bus.user.cloud.UserCloud;
import com.yeshi.fanli.entity.dynamic.GoodsEvaluate;
import com.yeshi.fanli.exception.user.cloud.UserCloudException;
 
public interface UserCloudService {
 
    /**
     *  查询有效
     * @return
     */
    public UserCloud getValidByUid(Long uid);
 
    /**
     * 统计所有
     * @param uid
     * @return
     */
    public long countByUid(Long uid);
 
    /**
     * 最后一条
     * @param uid
     * @return
     */
    public UserCloud getLastByUid(Long uid);
 
    /**
     * 更新登录微信信息
     * @param uid
     * @param wxId
     * @param wxName
     * @param wxPortrait
     */
    public void updateWXInfo(Long uid, String wxId, String wxName, String wxPortrait) throws UserCloudException;
 
    /**
     * 支付完成开通云发单信息
     * @param uid
     * @param orderId
     * @param menuEnum
     * @throws UserCloudException
     */
    public void openCloud(Long uid, Long orderId, CloudOrderMenuEnum menuEnum) throws UserCloudException;
 
    
    /**
     * 刷新群
     * @param uid
     * @throws UserCloudException
     */
    public void searchGroup(Long uid) throws UserCloudException;
 
    
    /**
     * 发送自定义商品
     * @param uid
     * @param id
     */
    public void autoSendCustomGoods(Long uid, Long id);
 
    /**
     * 自动发送动态
     * @param uid
     * @param id
     */
    public void autoSendByDynamic(Long uid, String id);
 
    /**
     * 手动云发单 - 动态
     * @param uid
     * @param id
     * @throws UserCloudException
     */
    public void sendByDynamic(Long uid, String id) throws UserCloudException;
 
    /**
     * 手动云发单 - 商品
     * @param uid
     * @param goodsId
     * @param goodsType
     * @throws UserCloudException
     */
    public void sendCustomGoods(Long uid, Long goodsId, Integer goodsType, Long sellerId) throws UserCloudException;
 
    /**
     * 定时发送云发单
     * @param id
     */
    public void fixedTimeSend(List<GoodsEvaluate> listActivity, List<GoodsEvaluate> listGoods, boolean timeLimit);
 
    public List<UserCloud> query(int page, int count, String key, Integer state);
 
    public long count(String key, Integer state);
 
    /**
     * 缓存微信匹配群
     * @param wxId
     * @param groupId
     */
    public void cacheMatchGroup(String wxId, String groupId);
 
    /**
     * 站内信通知用户微信下线
     * @param uid
     */
    public void offlineNotificationZNX(Long uid);
 
}