| | |
| | | package com.yeshi.fanli.service.inter.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.push.PushCoupon;
|
| | | import com.yeshi.fanli.exception.PushException;
|
| | | import com.yeshi.fanli.exception.push.PushCouponException;
|
| | |
|
| | | public interface PushCouponService {
|
| | |
|
| | | public int deleteByPrimaryKey(Long id);
|
| | |
|
| | | public int insert(PushCoupon record);
|
| | |
|
| | | public int insertSelective(PushCoupon record);
|
| | |
|
| | | public PushCoupon selectByPrimaryKey(Long id);
|
| | |
|
| | | public int updateByPrimaryKeySelective(PushCoupon record);
|
| | |
|
| | | public int updateByPrimaryKey(PushCoupon record);
|
| | |
|
| | | public void deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 后端列表查询
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | public List<PushCoupon> listQuery(long start, int count, String key, Integer state);
|
| | | |
| | | public long countQuery(String key, Integer state) throws PushCouponException;
|
| | | |
| | |
|
| | | public void save(PushCoupon record) throws PushCouponException;
|
| | |
|
| | | /**
|
| | | * 执行推送
|
| | | * @param id
|
| | | * @throws Exception
|
| | | * @throws PushCouponException
|
| | | * @throws PushException
|
| | | */
|
| | | public void executePush(Long id) throws Exception, PushCouponException, PushException;
|
| | | |
| | | |
| | | /**
|
| | | * 有效活动
|
| | | * @return
|
| | | */
|
| | | public List<PushCoupon> listQueryEffective();
|
| | |
|
| | | |
| | | }
|
| | | package com.yeshi.fanli.service.inter.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import com.yeshi.fanli.entity.push.PushCoupon; |
| | | import com.yeshi.fanli.exception.push.PushCouponException; |
| | | import com.yeshi.fanli.exception.push.PushException; |
| | | |
| | | public interface PushCouponService { |
| | | |
| | | public int deleteByPrimaryKey(Long id); |
| | | |
| | | public int insert(PushCoupon record); |
| | | |
| | | public int insertSelective(PushCoupon record); |
| | | |
| | | public PushCoupon selectByPrimaryKey(Long id); |
| | | |
| | | public int updateByPrimaryKeySelective(PushCoupon record); |
| | | |
| | | public int updateByPrimaryKey(PushCoupon record); |
| | | |
| | | public void deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 后端列表查询 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @return |
| | | */ |
| | | public List<PushCoupon> listQuery(long start, int count, String key, Integer state, SystemEnum system); |
| | | |
| | | public long countQuery(String key, Integer state, SystemEnum system) throws PushCouponException; |
| | | |
| | | |
| | | public void save(PushCoupon record) throws PushCouponException, Exception; |
| | | |
| | | /** |
| | | * 执行推送 |
| | | * @param id |
| | | * @throws Exception |
| | | * @throws PushCouponException |
| | | * @throws PushException |
| | | */ |
| | | public void executePush(Long id) throws Exception, PushCouponException, PushException; |
| | | |
| | | |
| | | /** |
| | | * 有效活动 |
| | | * @return |
| | | */ |
| | | public List<PushCoupon> listQueryEffective( SystemEnum system); |
| | | |
| | | |
| | | } |