package com.gingersoft.gsa.delivery_pick_mode.mvp.contract;

import com.gingersoft.gsa.cloud.base.common.bean.BaseResult;
import com.gingersoft.gsa.cloud.bean.RiceponAddOrderBean;
import com.gingersoft.gsa.delivery_pick_mode.data.model.bean.UpdateOrderStatusBean;
import com.gingersoft.gsa.delivery_pick_mode.mvp.model.MemberAddressInfoBean;
import com.jess.arms.mvp.IModel;
import com.jess.arms.mvp.IView;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;


/**
 * ================================================
 * Description:
 * <p>
 * Created by MVPArmsTemplate on 10/10/2020 14:40
 * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
 * <a href="https://github.com/JessYanCoding">Follow me</a>
 * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
 * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
 * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
 * ================================================
 */
public interface SendOrderContract {
    interface View extends IView {
        void loadMemberInfo(MemberAddressInfoBean.DataBean data);
    }

    interface Model extends IModel {
        /**
         * 獲取配送信息
         */
        Observable<String> getConfirmTakeawayOrderData(Map<String, Object> map);

        Observable<RiceponAddOrderBean> submitOrder(RequestBody requestBody);

        Observable<MemberAddressInfoBean> getMemberAddressInfo(String phone);

        Observable<UpdateOrderStatusBean> gsUpdateOrderStatus(RequestBody requestBody);

        Observable<BaseResult> addPrj(RequestBody requestBody);
    }
}
