admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
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
package com.yeshi.fanli.service.inter.user;
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.user.UserCustomSettings;
import com.yeshi.fanli.exception.user.UserCustomSettingsException;
import com.yeshi.fanli.vo.user.UserSettingsVO;
 
public interface UserCustomSettingsService {
 
    /**
     * 更新各项设置状态
     * 
     * @param uid
     * @param typeNum
     * @param state
     * @throws UserCustomSettingsException
     */
    public void saveModuleState(Long uid, String type, Integer state) throws UserCustomSettingsException;
 
    /**
     * 获取我的所有自定义设置
     * 
     * @param uid
     * @return
     */
    public List<UserCustomSettings> getSettingsByUid(Long uid) throws UserCustomSettingsException;
 
    /**
     * 获取设置信息
     * 
     * @param uid
     *            用户id
     * @param type
     *            类型
     * @return
     */
    public UserCustomSettings getSettingsByUidAndType(Long uid, String type) throws UserCustomSettingsException;
 
    /**
     * 设置列表
     * 
     * @param uid
     * @return
     * @throws UserCustomSettingsException
     */
    public UserSettingsVO getMySettings(Long uid) throws UserCustomSettingsException;
 
    /**
     * 推送时判断是否设置免打扰推送
     * 
     * @param uid
     * @return
     */
    public boolean validateCancelNoticeByUid(Long uid);
 
    /**
     * 查询设置免打扰用户
     * 
     * @return
     */
    public List<Long> getCancelNoticeUsers();
 
    /**
     * 通过用户,类型,状态检索数据
     * 
     * @param uidList
     * @param type
     * @param state
     * @return
     */
    public List<UserCustomSettings> listByUidListAndTypeAndState(List<Long> uidList, String type, Integer state);
 
    /**
     * 是否对外显示手机号
     * @param uid
     * @return
     */
    public boolean validateDisplayPhoneByUid(Long uid);
 
}