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,boolean needNotify) throws MsgOrderDetailException;
|
|
/**
|
* 根据订单号用户ID更新数据
|
*
|
* @param detail
|
* @param needNotify-是否需要通知
|
* @throws MsgOrderDetailException
|
*/
|
public void updateMsgOrderDetail(MsgOrderDetail detail,boolean needNotify) throws MsgOrderDetailException;
|
|
/**
|
* 订单消息列表
|
*
|
* @param uid
|
* @param page
|
* @return
|
*/
|
public List<MsgOrderDetail> listMsgOrderDetail(Long uid, int page);
|
|
/**
|
* 根据订单号获取
|
* @return
|
*/
|
public List<MsgOrderDetail> listMsgOrderByOrderId(String orderId);
|
|
/**
|
* 订单消息数
|
*
|
* @param uid
|
* @return
|
*/
|
public long countMsgOrderDetail(Long uid);
|
|
/**
|
* 设置所有消息已读
|
*
|
* @param uid
|
*/
|
public void readMsgByUid(Long uid);
|
}
|