package com.yeshi.fanli.service.inter.pdd;
|
|
import com.yeshi.fanli.entity.pdd.UserPDDAuthRecord;
|
|
import java.util.Date;
|
import java.util.List;
|
|
public interface PDDAuthService {
|
|
|
/**
|
* 生成拼多多授权链接
|
*
|
* @param uid
|
* @return
|
*/
|
public String createPDDAuthLink(Long uid, String pid) throws Exception;
|
|
/**
|
* 查询
|
*
|
* @param pid
|
* @param customParams
|
* @return
|
*/
|
public UserPDDAuthRecord selectByPidAndCustomParams(String pid, String customParams);
|
|
|
/**
|
* 查询需要验证的记录
|
*
|
* @param page
|
* @param pageSize
|
* @return
|
*/
|
public List<UserPDDAuthRecord> listNeedValidRecord(Date minCreateTime, int page, int pageSize);
|
|
public long countNeedValidRecord(Date minCreateTime);
|
|
/**
|
* 验证成功
|
*
|
* @param id
|
*/
|
public void authSuccess(String id);
|
|
|
public String getFanliCustomParams(Long uid);
|
|
public UserPDDAuthRecord getLatestRecordByUid(Long uid);
|
}
|