admin
2019-02-22 e358583d644fa39fc1e93b14b3cafff3644980e4
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 org.fanli.facade.user.service.account.user;
 
import java.util.List;
 
import org.fanli.facade.user.entity.account.user.UserCustomSettings;
import org.fanli.facade.user.exception.account.UserCustomSettingsException;
import org.fanli.facade.user.vo.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();
 
 
}