PayAPI.java
1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);*/
}