| | |
| | | package com.ks.vip.service; |
| | | |
| | | |
| | | import com.ks.vip.exception.VipCenterException; |
| | | import com.ks.vip.pojo.DO.VipCenter; |
| | | import com.ks.vip.pojo.DO.VipCombo; |
| | | import com.ks.vip.pojo.DO.VipGrade; |
| | | import com.ks.vip.pojo.DO.VipGradePotence; |
| | | import com.ks.vip.pojo.Enums.VIPEnum; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | public interface VipCenterService { |
| | | |
| | | public long count(VipCenter t); |
| | | public long count(VipCenter t); |
| | | |
| | | public List<VipCenter> listByPage(int page, int pageSize, VipCenter t); |
| | | public List<VipCenter> listByPage(int page, int pageSize, VipCenter t); |
| | | |
| | | public void insertSelective(VipCenter t); |
| | | public void insertSelective(VipCenter t); |
| | | |
| | | public void updateByPrimaryKeySelective(VipCenter t); |
| | | public void updateByPrimaryKeySelective(VipCenter t); |
| | | |
| | | public VipCenter getByUid(String id); |
| | | public VipCenter getByUid(String id); |
| | | |
| | | public void deteleByUid(String id); |
| | | public void deteleByUid(String id); |
| | | |
| | | public void saveVipCenter(String uid, Long gradeId, Integer validDays, Long orderId); |
| | | |
| | | /** |
| | | * 添加会员权益 |
| | | * |
| | | * @param uid |
| | | * @param gradeId |
| | | * @param validHours |
| | | * @param orderId |
| | | */ |
| | | public void saveVipCenter(String uid, Long gradeId, Integer validHours, Long orderId); |
| | | |
| | | |
| | | /** |
| | | * 获取当前用户会员权益 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public VipGradePotence getVipPotence(String uid); |
| | | |
| | | /** |
| | | * 获取当前用户会员等级信息 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public VipGrade getVipGrade(String uid); |
| | | |
| | | |
| | | /** |
| | | * 获取当前用户会员等级枚举 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public VIPEnum getVIPEnumByUid(String uid); |
| | | |
| | | |
| | | /** |
| | | * 获取用户在某个时间点的等级 |
| | | * |
| | | * @param uid |
| | | * @param date |
| | | * @return |
| | | */ |
| | | public VIPEnum getVIPEnumByUid(String uid, Date date); |
| | | |
| | | /** |
| | | * 后台保存会员信息 |
| | | * @param t |
| | | * @throws VipCenterException |
| | | */ |
| | | public void saveManageWeb(VipCenter t) throws VipCenterException; |
| | | } |