Commit d11b7788 by sikang

添加同盾动态列表

parent bf8d6086
......@@ -41,6 +41,7 @@ import tech.starwin.mvp.beans.RegionBean;
import tech.starwin.mvp.beans.Result;
import tech.starwin.mvp.beans.SysDictBean;
import tech.starwin.mvp.beans.ThirdPartDataBean;
import tech.starwin.mvp.beans.ThirdPartItemBean;
import tech.starwin.mvp.beans.TokenInfoBean;
import tech.starwin.mvp.beans.UserBankInfo;
import tech.starwin.mvp.beans.UserBean;
......@@ -134,6 +135,7 @@ public interface UserApi {
@Field("friendName") String friendName,
@Field("friendMobile") String friendMobile,
@Header("X-AUTH-TOKEN") String token);
@FormUrlEncoded
@PUT("record/contact")
Observable<ResponseBody> submitContactInfo(@Field("parentId") String parentId,
......@@ -319,6 +321,13 @@ public interface UserApi {
Observable<ThirdPartDataBean> getThirdPartAccount(@Header("X-AUTH-TOKEN") String token);
/**
* 同盾列表
*/
@GET("record/thirdparty_data_list")
Observable<List<ThirdPartItemBean>> getThirdPartList(@Header("X-AUTH-TOKEN") String token);
/**
* 提交第三方数据
*/
@PUT("record/thirdparty_data")
......
package tech.starwin.mvp.beans;
/**
* Created by SiKang on 2019/1/14.
*/
public class ThirdPartItemBean {
private String type;// "FACEBOOK",
private String iconUrl;// "http://adminweb.id.starblingbling.com/favicon.png",
private boolean bindFlag;// true
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getIconUrl() {
return iconUrl;
}
public void setIconUrl(String iconUrl) {
this.iconUrl = iconUrl;
}
public boolean isBindFlag() {
return bindFlag;
}
public void setBindFlag(boolean bindFlag) {
this.bindFlag = bindFlag;
}
}
......@@ -549,6 +549,13 @@ public class UserPresenter extends BasePresenter<UserApi> {
}
/**
* 获取同盾列表
*/
public void getThirdPartList(String action) {
handleRequest(action, apiService.getThirdPartList(LoginManager.get().getToken()));
}
/**
* 提交第同盾数据源
*/
public void submitTDData(String action, String dataType, String taskId, String credentialNo, String realName, String mobile) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment