package com.yeshi.fanli.service.inter.msg; import java.util.List; import com.yeshi.fanli.entity.bus.msg.MsgOrderDetail; import com.yeshi.fanli.exception.msg.MsgOrderDetailException; public interface MsgOrderDetailService { /** * 添加到订单消息 * * @param detail * @throws MsgOrderDetailException */ public void addMsgOrderDetail(MsgOrderDetail detail) throws MsgOrderDetailException; /** * 根据订单号用户ID更新数据 * * @param detail * @throws MsgOrderDetailException */ public void updateMsgOrderDetail(MsgOrderDetail detail) throws MsgOrderDetailException; /** * 订单消息列表 * * @param uid * @param page * @return */ public List listMsgOrderDetail(Long uid, int page); /** * 根据订单号获取 * @return */ public List listMsgOrderByOrderId(String orderId); /** * 订单消息数 * * @param uid * @return */ public long countMsgOrderDetail(Long uid); /** * 设置所有消息已读 * * @param uid */ public void readMsgByUid(Long uid); }