package com.goafanti.message.service;

import com.goafanti.common.model.JtMessageProducer;
import com.goafanti.core.mybatis.page.Pagination;

public interface JtMessageProducerService {

	/**
	 * 新增系统消息
	 * @param messageProducer
	 * @return
	 */
	int addMessage(JtMessageProducer messageProducer);
	
	/**
	 * 系统向注册用户发送信息
	 * @param messageId
	 * @return
	 */
	int addSendMessage(String messageId);
	
	/**
	 * 查看消息信息
	 * @param messageId
	 * @return
	 */
	JtMessageProducer getMessageById(String messageId);
	                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
	/**
	 * 修改消息
	 * @param messageProducer
	 * @return
	 */
	int updateMessageById(JtMessageProducer messageProducer);
	
	/**
	 * 消息列表
	 * @return
	 */
	Pagination<JtMessageProducer> getMessageList(JtMessageProducer messageProducer, String sendStartTime, String sendEndTime, String code,Integer subject,Integer pageNo,Integer pageSize);

	int saveMobileMessage(String messageCode);
}
