| | |
| | | package com.yeshi.fanli.service.inter.user;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.PreviewInfo;
|
| | | import com.yeshi.fanli.entity.bus.user.PreviewInfo.PreviewEnum;
|
| | | import com.yeshi.fanli.exception.user.PreviewInfoException;
|
| | | import com.yeshi.fanli.vo.money.MoneyStatisticVO;
|
| | | import com.yeshi.fanli.vo.user.MineInfoVO;
|
| | |
|
| | | public interface PreviewInfoService {
|
| | |
|
| | | /**
|
| | | * 保存信息
|
| | | * @param uid
|
| | | * @param type
|
| | | * @param content
|
| | | */
|
| | | public void save(Long createUid, Long preUid, PreviewEnum type, String content);
|
| | |
|
| | | /**
|
| | | * 根据用户+类型查询
|
| | | * @param uid
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | public PreviewInfo get(Long uid, PreviewEnum previewEnum);
|
| | |
|
| | | /**
|
| | | * 保存提现记录
|
| | | * @param uid
|
| | | * @param time
|
| | | * @param money
|
| | | * @throws PreviewInfoException
|
| | | */
|
| | | public void saveExtractRecord(Long uid, String dayTime, BigDecimal money) throws PreviewInfoException;
|
| | |
|
| | | /**
|
| | | * 删除提现记录
|
| | | * @param uid
|
| | | * @param tid
|
| | | * @throws PreviewInfoException
|
| | | */
|
| | | public void deleteExtractRecord(Long uid, long tid);
|
| | |
|
| | | /**
|
| | | * 保存个人信息
|
| | | * @param infoVO
|
| | | * @param file
|
| | | * @throws PreviewInfoException
|
| | | */
|
| | | public void saveMineInfo(MineInfoVO infoVO) throws PreviewInfoException;
|
| | |
|
| | | /**
|
| | | * 保存到账信息
|
| | | * @param uid
|
| | | * @param money
|
| | | * @param time
|
| | | * @param orderNo
|
| | | * @throws PreviewInfoException
|
| | | */
|
| | | public String saveMoneyArrival(Long uid, BigDecimal money, String time, String orderNo, String platform) throws PreviewInfoException, Exception;
|
| | |
|
| | | public void saveMoneyInfo(Long uid, MoneyStatisticVO vo) throws PreviewInfoException;
|
| | |
|
| | | /**
|
| | | * 查询Redis缓存信息
|
| | | * @param uid
|
| | | * @param previewEnum
|
| | | * @return
|
| | | */
|
| | | public String getRedisContent(Long uid, PreviewEnum previewEnum);
|
| | |
|
| | | /**
|
| | | * 预览提现记录
|
| | | * @param uid
|
| | | * @throws PreviewInfoException
|
| | | */
|
| | | public void previewExtractRecord(Long uid) throws PreviewInfoException;
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.user; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.PreviewInfo; |
| | | import com.yeshi.fanli.entity.bus.user.PreviewInfo.PreviewEnum; |
| | | import com.yeshi.fanli.exception.user.PreviewInfoException; |
| | | import com.yeshi.fanli.vo.money.MoneyStatisticVO; |
| | | import com.yeshi.fanli.vo.user.MineInfoVO; |
| | | |
| | | public interface PreviewInfoService { |
| | | |
| | | /** |
| | | * 保存信息 |
| | | * @param uid |
| | | * @param type |
| | | * @param content |
| | | */ |
| | | public void save(Long createUid, Long preUid, PreviewEnum type, String content); |
| | | |
| | | /** |
| | | * 根据用户+类型查询 |
| | | * @param uid |
| | | * @param type |
| | | * @return |
| | | */ |
| | | public PreviewInfo get(Long uid, PreviewEnum previewEnum); |
| | | |
| | | /** |
| | | * 保存提现记录 |
| | | * @param uid |
| | | * @param time |
| | | * @param money |
| | | * @throws PreviewInfoException |
| | | */ |
| | | public void saveExtractRecord(Long uid, String dayTime, BigDecimal money) throws PreviewInfoException; |
| | | |
| | | /** |
| | | * 删除提现记录 |
| | | * @param uid |
| | | * @param tid |
| | | * @throws PreviewInfoException |
| | | */ |
| | | public void deleteExtractRecord(Long uid, long tid); |
| | | |
| | | /** |
| | | * 保存个人信息 |
| | | * @param infoVO |
| | | * @param file |
| | | * @throws PreviewInfoException |
| | | */ |
| | | public void saveMineInfo(MineInfoVO infoVO) throws PreviewInfoException; |
| | | |
| | | /** |
| | | * 保存到账信息 |
| | | * @param uid |
| | | * @param money |
| | | * @param time |
| | | * @param orderNo |
| | | * @throws PreviewInfoException |
| | | */ |
| | | public String saveMoneyArrival(Long uid, BigDecimal money, String time, String orderNo, String platform) throws PreviewInfoException, Exception; |
| | | |
| | | public void saveMoneyInfo(Long uid, MoneyStatisticVO vo) throws PreviewInfoException; |
| | | |
| | | /** |
| | | * 查询Redis缓存信息 |
| | | * @param uid |
| | | * @param previewEnum |
| | | * @return |
| | | */ |
| | | public String getRedisContent(Long uid, PreviewEnum previewEnum); |
| | | |
| | | /** |
| | | * 预览提现记录 |
| | | * @param uid |
| | | * @throws PreviewInfoException |
| | | */ |
| | | public void previewExtractRecord(Long uid) throws PreviewInfoException; |
| | | |
| | | } |