package com.yeshi.fanli.service.inter.push;
|
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.push.PushInfo;
|
import com.yeshi.fanli.exception.push.PushCouponException;
|
import com.yeshi.fanli.exception.push.PushException;
|
import com.yeshi.fanli.exception.push.PushInfoException;
|
|
public interface PushInfoService {
|
|
public void deleteBatchByPrimaryKey(List<Long> list);
|
|
|
public void save(PushInfo record) throws PushInfoException,Exception;
|
|
|
/**
|
* 后端查询
|
* @param start
|
* @param count
|
* @param key
|
* @param keyType
|
* @param state
|
* @return
|
*/
|
public List<PushInfo> listQuery(long start, int count, String key, Integer keyType, Integer state, String type);
|
|
public long countQuery(String key, Integer keyType, Integer state, String type);
|
|
|
/**
|
* 后端手动推送
|
* @param id
|
* @throws Exception
|
* @throws PushInfoException
|
* @throws PushException
|
*/
|
public void handPush(Long id) throws Exception, PushInfoException, PushException;
|
|
|
/**
|
* 执行推送
|
* @param id
|
* @throws Exception
|
* @throws PushCouponException
|
* @throws PushException
|
*/
|
public void executePush(PushInfo pushInfo) throws Exception, PushInfoException, PushException;
|
|
|
/**
|
* 需要推送的任务
|
* @return
|
*/
|
public List<PushInfo> listTask();
|
|
|
/**
|
*定时任务推送
|
* @param record
|
*/
|
public void taskPush(PushInfo record);
|
|
|
}
|