PayAPI.java 1.71 KB
package com.cnlive.goldenline.api;

import com.cnlive.goldenline.ui.model.ErrorMessage;

import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Query;

/**
 * Created by zhangshuai on 2016-06-16.
 */
public interface PayAPI {

    /**
     * 支付宝,未支付订单Json
     **/
    @GET("/zGWpay.html")
    void getPreOrder1(@Query("body") String body,                 //订单信息
                      @Query("total_fee") String total_fee,       //订单总价
                      @Query("user_id") String user_id,    //用户id
                      @Query("attach_uid") String attach_uid,    //用户id
                      @Query("attach_type") String attach_type,    //支付类型  0==充值套餐 , 1==充值金币
                      @Query("attach_type_child") String attach_type_child,    //套餐类型/金币数量  套餐id  1==25元套餐,2==68元套餐,3==138元套餐,4==248元套餐
                      @Query("type") String type,
                      @Query("dm3") String dm3,
                      Callback<ErrorMessage> callback);

    /**
     * 微信,未支付订单Json
     */
    /*@GET("")
    void getPreOrder2(@Query("body") String body,                 //订单信息
                     @Query("total_free") int total_free,       //订单总价
                     @Query("attach.uid") String attach_uid,    //用户id
                     @Query("attach.type") String attach_type,    //支付类型  0==充值套餐 , 1==充值金币
                     @Query("attach.child") String attach_type_child,    //套餐类型/金币数量  套餐id  1==25元套餐,2==68元套餐,3==138元套餐,4==248元套餐
                     Callback<String> callback);*/

}