📄 messageservice.java
字号:
/*
* Created on 2007-4-30
* Last modified on 2007-6-20
* Powered by YeQiangWei.com
*/
package com.yeqiangwei.club.service.message;
import java.util.List;
import com.yeqiangwei.club.exception.ClubException;
import com.yeqiangwei.club.param.MessageParameter;
import com.yeqiangwei.club.service.model.MessageModel;
import com.yeqiangwei.club.controller.form.MessageForm;
public interface MessageService{
public long countNewMessage(int userId);
public MessageModel getTake(int takeId);
public MessageModel getSend(int sendId);
/**
* 拒收同时列入黑名单
* @param str
* @throws ClubException
*/
public int refuse(String str) throws ClubException;
public int trashs(String ids, boolean istrash);
public int update_space(List<Integer> list, byte space);
public int update_space(String ids, byte space);
public int delete(String ids, String act) throws ClubException;
public int update_isOpened(MessageModel model);
/**
* 支持批量发送的方法
* @param form
* @return
* @throws ClubException
*/
public int sends(MessageForm form) throws ClubException;
/**
* 主要针对收信的方法
* @param model
* @param saveSent 是否保存到发信箱
* @return
* @throws ClubException
*/
public MessageModel create(MessageModel model, boolean saveSent) throws ClubException;
/**
* 针对收信和发信的方法
* @param param
* @return
*/
public List<MessageModel> findByParameter(MessageParameter param);
public long countByParameter(MessageParameter param);
/**
* 针对收信和发信的方法
* @param param
* @return
*/
public MessageModel findOnlyByParameter(MessageParameter param);
/**
* 只针对收信的方法
* @param ids
* @param isDeleted
* @return
*/
//public int trash(String ids[], boolean isDeleted);
/**
* 针对收信和发信的方法
* @param ids
* @param act 根据action判断是删除哪个表的内容
* @return
*/
//public int delete(String ids[], String act);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -