Commit a5c987db by sikang

update api

parent 4c4e8766
...@@ -142,13 +142,6 @@ public interface UserApi { ...@@ -142,13 +142,6 @@ public interface UserApi {
*/ */
@FormUrlEncoded @FormUrlEncoded
@PUT("record/contact") @PUT("record/contact")
Observable<ResponseBody> submitContactInfo(@Field("parentName") String parentName,
@Field("parentMobile") String parentMobile,
@Field("friendName") String friendName,
@Field("friendMobile") String friendMobile);
@FormUrlEncoded
@PUT("record/contact")
Observable<ResponseBody> submitContactInfo(@Field("parentId") String parentId, Observable<ResponseBody> submitContactInfo(@Field("parentId") String parentId,
@Field("parentName") String parentName, @Field("parentName") String parentName,
@Field("parentMobile") String parentMobile, @Field("parentMobile") String parentMobile,
......
...@@ -461,35 +461,6 @@ public class UserPresenter extends BasePresenter<UserApi> { ...@@ -461,35 +461,6 @@ public class UserPresenter extends BasePresenter<UserApi> {
}); });
} }
/**
* 提交联系人信息
*/
public void submitContactInfo(String action, String parentName, String parentPhone, String friendName, String friendPhone) {
handleRequest(apiService.submitContactInfo(parentName, parentPhone, friendName, friendPhone),
new HttpObserver<ResponseBody>() {
@Override
public void onStart() {
view.onHttpStart(action, true);
}
@Override
public void onSuccess(ResponseBody data) {
TrackEventHelper.logEvent(TrackEvent.Api.CONTACT_INFO_SUBMITED);
view.onHttpSuccess(action, data);
}
@Override
public void onError(int code, String msg) {
view.onHttpError(action, msg);
}
@Override
public void onFinish() {
view.onHttpFinish(action);
}
});
}
public void submitContactInfo(String action, ContactInfoBean contactInfo) { public void submitContactInfo(String action, ContactInfoBean contactInfo) {
handleRequest(apiService.submitContactInfo(contactInfo.getParentId(), contactInfo.getParentName(), contactInfo.getParentMobile(), contactInfo.getParentType(), handleRequest(apiService.submitContactInfo(contactInfo.getParentId(), contactInfo.getParentName(), contactInfo.getParentMobile(), contactInfo.getParentType(),
......
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