| | |
| | | package com.yeshi.fanli.service.inter.msg;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.msg.UserSystemMsg;
|
| | | import com.yeshi.fanli.entity.bus.msg.UserSystemMsgTypeEnum;
|
| | | import com.yeshi.fanli.entity.system.SystemZnx;
|
| | | import com.yeshi.fanli.exception.msg.UserSystemMsgException;
|
| | |
|
| | | /**
|
| | | * 用户系统消息
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public interface UserSystemMsgService {
|
| | | /**
|
| | | * 添加系统消息
|
| | | * |
| | | * @param uid
|
| | | * @param title
|
| | | * @param content
|
| | | * @param timeLevel
|
| | | * -是否紧急
|
| | | * @param sz
|
| | | * -站内信对应表
|
| | | */
|
| | | public void addUserSystemMsg(Long uid, UserSystemMsgTypeEnum type, String title, String content, int timeTag,
|
| | | SystemZnx sz) throws UserSystemMsgException;
|
| | |
|
| | | /**
|
| | | * 获取最近一次的系统消息
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public UserSystemMsg getLatestUserSystemMsg(Long uid);
|
| | |
|
| | | /**
|
| | | * 用户系统消息列表
|
| | | * |
| | | * @param uid
|
| | | * @param page
|
| | | * @param pageSize
|
| | | * @return
|
| | | */
|
| | | public List<UserSystemMsg> listUserSystemMsg(Long uid, int page, int pageSize);
|
| | |
|
| | | /**
|
| | | * 用户系统消息数
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countUserSystemMsg(Long uid);
|
| | |
|
| | | /**
|
| | | * 设置系统消息解决了
|
| | | * |
| | | * @param uid
|
| | | * @param id
|
| | | * @throws UserSystemMsgException
|
| | | */
|
| | | public void setSystemMsgSolved(Long uid, Long id) throws UserSystemMsgException;
|
| | |
|
| | | /**
|
| | | * 设置所有消息已读
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | public void readMsgByUid(Long uid);
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.msg; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.bus.msg.MsgOtherDetail; |
| | | import com.yeshi.fanli.entity.bus.msg.UserSystemMsg; |
| | | import com.yeshi.fanli.entity.bus.msg.UserSystemMsgTypeEnum; |
| | | import com.yeshi.fanli.entity.system.SystemZnx; |
| | | import com.yeshi.fanli.exception.msg.UserSystemMsgException; |
| | | |
| | | /** |
| | | * 用户系统消息 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | public interface UserSystemMsgService { |
| | | /** |
| | | * 添加系统消息 |
| | | * |
| | | * @param uid |
| | | * @param title |
| | | * @param content |
| | | * @param timeLevel |
| | | * -是否紧急 |
| | | * @param sz |
| | | * -站内信对应表 |
| | | */ |
| | | public void addUserSystemMsg(Long uid, UserSystemMsgTypeEnum type, String title, String content, int timeTag, |
| | | SystemZnx sz) throws UserSystemMsgException; |
| | | |
| | | /** |
| | | * 同步系统站内信 |
| | | * |
| | | * @param uid |
| | | */ |
| | | public void syncSystemZNX(Long uid); |
| | | |
| | | /** |
| | | * 获取最近一次的系统消息 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public UserSystemMsg getLatestUserSystemMsg(Long uid); |
| | | |
| | | /** |
| | | * 用户系统消息列表 |
| | | * |
| | | * @param uid |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | public List<UserSystemMsg> listUserSystemMsg(Long uid, int page, int pageSize); |
| | | |
| | | public List<UserSystemMsg> listDetail(List<Long> ids); |
| | | |
| | | /** |
| | | * 用户系统消息数 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public long countUserSystemMsg(Long uid); |
| | | |
| | | /** |
| | | * 设置系统消息解决了 |
| | | * |
| | | * @param uid |
| | | * @param id |
| | | * @throws UserSystemMsgException |
| | | */ |
| | | public void setSystemMsgSolved(Long uid, Long id) throws UserSystemMsgException; |
| | | |
| | | /** |
| | | * 设置所有消息已读 |
| | | * |
| | | * @param uid |
| | | */ |
| | | public void readMsgByUid(Long uid); |
| | | |
| | | } |