| | |
| | | package com.yeshi.fanli.service.inter.user.vip;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.vip.GiveVIPApplyInfo;
|
| | | import com.yeshi.fanli.exception.ParamsException;
|
| | | import com.yeshi.fanli.exception.user.vip.GiveVIPApplyInfoException;
|
| | | import com.yeshi.fanli.exception.user.vip.UserVIPPreInfoException;
|
| | |
|
| | | //会员赠送记录
|
| | | public interface GiveVIPApplyInfoService {
|
| | |
|
| | | /**
|
| | | * 添加赠送会员记录
|
| | | * @Title: addGiveVIPApplyInfo
|
| | | * @Description: |
| | | * @param info
|
| | | * @return
|
| | | * @throws GiveVIPApplyInfoException |
| | | * GiveVIPApplyInfo 返回类型
|
| | | * @throws
|
| | | */
|
| | | public GiveVIPApplyInfo addGiveVIPApplyInfo(GiveVIPApplyInfo info)
|
| | | throws ParamsException, GiveVIPApplyInfoException;
|
| | |
|
| | | public GiveVIPApplyInfo selectByPrimaryKey(String id);
|
| | |
|
| | | /**
|
| | | * 修改信息
|
| | | * @Title: updateGiveVIPApplyInfo
|
| | | * @Description: |
| | | * @param info |
| | | * void 返回类型
|
| | | * @throws
|
| | | */
|
| | | public void updateGiveVIPApplyInfo(GiveVIPApplyInfo info);
|
| | |
|
| | | /**
|
| | | * 保存图片
|
| | | * @Title: saveImgs
|
| | | * @Description: |
| | | * @param id
|
| | | * @param imgList |
| | | * void 返回类型
|
| | | * @throws
|
| | | */
|
| | | public void saveImgs(String id, List<String> imgList);
|
| | |
|
| | | /**
|
| | | * 根据源用户拉取数据
|
| | | * @Title: listBySourceUid
|
| | | * @Description: |
| | | * @param uid
|
| | | * @return |
| | | * List<GiveVIPApplyInfo> 返回类型
|
| | | * @throws
|
| | | */
|
| | | public List<GiveVIPApplyInfo> listByTargetUid(Long uid, int page, int pageSize);
|
| | |
|
| | | public long countByTargetUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 根据状态查询
|
| | | * @Title: listNeedVerify
|
| | | * @Description: |
| | | * @param page
|
| | | * @param pageSize
|
| | | * @return |
| | | * List<GiveVIPApplyInfo> 返回类型
|
| | | * @throws
|
| | | */
|
| | | public List<GiveVIPApplyInfo> listByStateAndTargetUid(Long targetUid, Integer state, int page, int pageSize);
|
| | |
|
| | | public long countByStateAndTargetUid(Long targetUid,Integer state);
|
| | |
|
| | | /**
|
| | | * 通过
|
| | | * @Title: pass
|
| | | * @Description: |
| | | * @param id
|
| | | * @throws GiveVIPApplyInfoException |
| | | * void 返回类型
|
| | | * @throws
|
| | | */
|
| | | public void pass(String id, Long adminId) throws GiveVIPApplyInfoException,UserVIPPreInfoException;
|
| | |
|
| | | /**
|
| | | * 拒绝
|
| | | * @Title: reject
|
| | | * @Description: |
| | | * @param id
|
| | | * @param adminId 审核人员ID
|
| | | * @param reason 拒绝理由
|
| | | * @throws GiveVIPApplyInfoException |
| | | * void 返回类型
|
| | | * @throws
|
| | | */
|
| | | public void reject(String id, Long adminId, String reason) throws GiveVIPApplyInfoException;
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.user.vip; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.vip.GiveVIPApplyInfo; |
| | | import com.yeshi.fanli.exception.ParamsException; |
| | | import com.yeshi.fanli.exception.user.vip.GiveVIPApplyInfoException; |
| | | import com.yeshi.fanli.exception.user.vip.UserVIPPreInfoException; |
| | | |
| | | //会员赠送记录 |
| | | public interface GiveVIPApplyInfoService { |
| | | |
| | | /** |
| | | * 添加赠送会员记录 |
| | | * @Title: addGiveVIPApplyInfo |
| | | * @Description: |
| | | * @param info |
| | | * @return |
| | | * @throws GiveVIPApplyInfoException |
| | | * GiveVIPApplyInfo 返回类型 |
| | | * @throws |
| | | */ |
| | | public GiveVIPApplyInfo addGiveVIPApplyInfo(GiveVIPApplyInfo info) |
| | | throws ParamsException, GiveVIPApplyInfoException; |
| | | |
| | | public GiveVIPApplyInfo selectByPrimaryKey(String id); |
| | | |
| | | /** |
| | | * 修改信息 |
| | | * @Title: updateGiveVIPApplyInfo |
| | | * @Description: |
| | | * @param info |
| | | * void 返回类型 |
| | | * @throws |
| | | */ |
| | | public void updateGiveVIPApplyInfo(GiveVIPApplyInfo info); |
| | | |
| | | /** |
| | | * 保存图片 |
| | | * @Title: saveImgs |
| | | * @Description: |
| | | * @param id |
| | | * @param imgList |
| | | * void 返回类型 |
| | | * @throws |
| | | */ |
| | | public void saveImgs(String id, List<String> imgList); |
| | | |
| | | /** |
| | | * 根据目标用户拉取数据 |
| | | * @Title: listBySourceUid |
| | | * @Description: |
| | | * @param uid |
| | | * @return |
| | | * List<GiveVIPApplyInfo> 返回类型 |
| | | * @throws |
| | | */ |
| | | public List<GiveVIPApplyInfo> listByTargetUid(Long uid, int page, int pageSize); |
| | | |
| | | public long countByTargetUid(Long uid); |
| | | |
| | | /** |
| | | * 根据源用户ID拉取数据 |
| | | * @Title: listBySourceUid |
| | | * @Description: |
| | | * @param uid |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | * List<GiveVIPApplyInfo> 返回类型 |
| | | * @throws |
| | | */ |
| | | public List<GiveVIPApplyInfo> listBySourceUid(Long uid, int page, int pageSize); |
| | | |
| | | public long countBySourceUid(Long uid); |
| | | |
| | | /** |
| | | * 根据状态查询 |
| | | * @Title: listNeedVerify |
| | | * @Description: |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | * List<GiveVIPApplyInfo> 返回类型 |
| | | * @throws |
| | | */ |
| | | public List<GiveVIPApplyInfo> listByStateAndTargetUid(Long targetUid, Integer state, int page, int pageSize); |
| | | |
| | | public long countByStateAndTargetUid(Long targetUid, Integer state); |
| | | |
| | | /** |
| | | * 通过 |
| | | * @Title: pass |
| | | * @Description: |
| | | * @param id |
| | | * @throws GiveVIPApplyInfoException |
| | | * void 返回类型 |
| | | * @throws |
| | | */ |
| | | public void pass(String id, Long adminId) throws GiveVIPApplyInfoException, UserVIPPreInfoException; |
| | | |
| | | /** |
| | | * 拒绝 |
| | | * @Title: reject |
| | | * @Description: |
| | | * @param id |
| | | * @param adminId 审核人员ID |
| | | * @param reason 拒绝理由 |
| | | * @throws GiveVIPApplyInfoException |
| | | * void 返回类型 |
| | | * @throws |
| | | */ |
| | | public void reject(String id, Long adminId, String reason) throws GiveVIPApplyInfoException; |
| | | |
| | | } |