admin
2023-04-12 651f2856e9ae10aacbfb8327d967aacbb6d58333
fanli/src/main/java/com/yeshi/fanli/service/inter/msg/MsgOtherDetailService.java
@@ -1,48 +1,55 @@
package com.yeshi.fanli.service.inter.msg;
import java.util.List;
import com.yeshi.fanli.entity.bus.msg.MsgOtherDetail;
import com.yeshi.fanli.exception.msg.MsgOtherDetailException;
public interface MsgOtherDetailService {
   /**
    * 添加到订单消息
    *
    * @param detail
    * @throws MsgOtherDetailException
    */
   public void addMsgOtherDetail(MsgOtherDetail detail) throws MsgOtherDetailException;
   /**
    * 根据订单号用户ID更新数据
    *
    * @param detail
    * @throws MsgOtherDetailException
    */
   public void updateMsgOtherDetail(MsgOtherDetail detail) throws MsgOtherDetailException;
   /**
    * 订单消息列表
    *
    * @param uid
    * @param page
    * @return
    */
   public List<MsgOtherDetail> listMsgOtherDetail(Long uid, int page);
   /**
    * 订单消息数
    *
    * @param uid
    * @return
    */
   public long countMsgOtherDetail(Long uid);
   /**
    * 设置所有消息已读
    *
    * @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.MsgOrderDetail;
import com.yeshi.fanli.entity.bus.msg.MsgOtherDetail;
import com.yeshi.fanli.exception.msg.MsgOtherDetailException;
public interface MsgOtherDetailService {
   /**
    * 添加到其他消息
    *
    * @param detail
    * @throws MsgOtherDetailException
    */
   public void addMsgOtherDetail(MsgOtherDetail detail) throws MsgOtherDetailException;
   /**
    * 更新数据
    *
    * @param detail
    * @throws MsgOtherDetailException
    */
   public void updateMsgOtherDetail(MsgOtherDetail detail) throws MsgOtherDetailException;
   /**
    * 其他消息列表
    *
    * @param uid
    * @param page
    * @return
    */
   public List<MsgOtherDetail> listMsgOtherDetail(Long uid, int page);
   public List<MsgOtherDetail> listDetail(List<Long> ids);
   /**
    * 其他消息数
    *
    * @param uid
    * @return
    */
   public long countMsgOtherDetail(Long uid);
   /**
    * 设置所有消息已读
    *
    * @param uid
    */
   public void readMsgByUid(Long uid);
   public void deleteByPrimaryKey(Long id);
   public MsgOtherDetail selectByPrimaryKey(Long id);
}