| | |
| | | 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);
|
| | |
|
| | | }
|
| | | 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); |
| | | |
| | | } |