yujian
2019-01-19 a9129b96fa14c77df166f367be1d8220c8f9d0b7
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
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();
 
 
}