admin
2019-04-07 49ad97de94f549291085e69274a2af39da56550e
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
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
     * @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);
}