package com.zxhl.cms.net.api;

import com.zxhl.cms.ad.upload.model.Response;
import com.zxhl.cms.common.NetConfig;
import com.zxhl.cms.net.model.other.Alipay;
import com.zxhl.cms.net.model.other.AppConfigEntity;
import com.zxhl.cms.net.model.other.InviteEntity;
import com.zxhl.cms.net.model.other.NavEntity;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by gaoleichao on 2018/7/2.
 */

public interface ICfgInfoApi {
    /**
     * 获取邀请配置
     *
     * @return
     */
    @GET(NetConfig.Invite.URL_INVITE_SHAREDATA)
    Observable<Response<InviteEntity>> getInviteAward();


    /**
     * 获取邀请配置
     *
     * @return
     */
    @GET(NetConfig.Other.URL_CONFIG)
    Observable<Response<AppConfigEntity>> getConfig(@Query("md5") String md5, @Query("cv") String cv);




    /**
     * 获取邀请配置
     *
     * @return
     */
    @POST(NetConfig.Other.URL_EVENT)
    Observable<Response<Object>> requestEvent(@Query("module") String module, @Body Object data);

}
