| | |
| | | package com.yeshi.fanli.service.inter.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.accept.AcceptData;
|
| | | import com.yeshi.fanli.entity.bus.user.TokenRecord;
|
| | | import com.yeshi.fanli.exception.user.TokenRecordException;
|
| | | import com.yeshi.fanli.vo.msg.TokenVO;
|
| | |
|
| | | public interface TokenRecordService {
|
| | |
|
| | |
| | | */
|
| | | public TokenRecord getNearByTypeAndIdentify(String type, String identify);
|
| | |
|
| | | /**
|
| | | * 赠送口令解析
|
| | | * @param token
|
| | | * @param uid
|
| | | * @return
|
| | | * @throws TokenRecordException
|
| | | */
|
| | | public TokenVO discernToken(String token, Long uid, String platform,String version) throws TokenRecordException;
|
| | |
|
| | | |
| | | /**
|
| | | * 口令领取
|
| | | * @param token
|
| | | * @param uid
|
| | | * @throws TokenRecordException
|
| | | */
|
| | | public String receiveToken(String token, Long uid, AcceptData acceptData) throws TokenRecordException;
|
| | |
|
| | | |
| | | public void updateByPrimaryKeySelective(TokenRecord record);
|
| | |
|
| | | /**
|
| | | * 待过期的口令
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | public List<TokenRecord> overdueList(int count);
|
| | |
|
| | | /**
|
| | | * 过期口令
|
| | | * @param list
|
| | | */
|
| | | public void overdue(List<TokenRecord> list);
|
| | |
|
| | | /**
|
| | | * 红包口令失效
|
| | | * @param id
|
| | | */
|
| | | public void invalidByRedPack(Long id);
|
| | |
|
| | |
|
| | | /**
|
| | | * 券口令失效
|
| | | * @param id
|
| | | */
|
| | | public void invalidByCoupon(Long id);
|
| | |
|
| | | /**
|
| | | * 根据类型查询
|
| | | * @param type
|
| | | * @param identify
|
| | | * @return
|
| | | */
|
| | | public TokenRecord getByTypeAndIdentify(String type, String identify);
|
| | |
|
| | | }
|