| | |
| | | package com.yeshi.buwan.service.inter.vip; |
| | | |
| | | import com.yeshi.buwan.domain.vip.UserVIPInfo; |
| | | import com.yeshi.buwan.domain.vip.VIPOrderRecord; |
| | | import com.yeshi.buwan.exception.PPTVException; |
| | | import com.yeshi.buwan.exception.vip.VIPException; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | public interface VIPService { |
| | | |
| | | /** |
| | | * 添加记录 |
| | | * |
| | | * @param record |
| | | */ |
| | | public void addVIPRecord(VIPOrderRecord record) throws VIPException; |
| | | |
| | | |
| | | /** |
| | | * 支付成功 |
| | | * |
| | | * @param id |
| | | * @param payMoney |
| | | * @param payTime |
| | | * @throws VIPException |
| | | */ |
| | | public VIPOrderRecord paySuccess(String id, int payWay, BigDecimal payMoney, Date payTime) throws VIPException, PPTVException; |
| | | |
| | | |
| | | /** |
| | |
| | | public UserVIPInfo getVIPInfo(String uid); |
| | | |
| | | |
| | | /** |
| | | * 获取订单记录 |
| | | * |
| | | * @param uid |
| | | * @param state |
| | | * @return |
| | | */ |
| | | public List<VIPOrderRecord> listOrderRecord(String uid, Integer state, int page, int pageSize); |
| | | |
| | | /** |
| | | * @param uid |
| | | * @param state |
| | | * @return |
| | | */ |
| | | public long countOrderRecord(String uid, Integer state); |
| | | |
| | | |
| | | /** |
| | | * 检测支付状态 |
| | | * |
| | | * @param id |
| | | */ |
| | | public VIPOrderRecord checkOrderPayState(String id); |
| | | |
| | | |
| | | public VIPOrderRecord getOrderRecord(String id); |
| | | |
| | | public void initUserVipInfo(String loginUid); |
| | | |
| | | |
| | | /** |
| | | * 获取vip用户列表 |
| | | * |
| | | * @param minVIPExpireDate |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | public List<UserVIPInfo> listVIPUser(Date minVIPExpireDate, Date maxVIPExpireDate, int page, int pageSize); |
| | | |
| | | /** |
| | | * @param minVIPExpireDate |
| | | * @return |
| | | */ |
| | | public long countVIPUser(Date minVIPExpireDate, Date maxVIPExpireDate); |
| | | |
| | | |
| | | public boolean isVIP(String loginUid); |
| | | |
| | | |
| | | } |