接口说明
获取所有商品。
接口方法
esales.product.all
传入参数
无
返回数据
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | int | 商品编号 |
| name | string | 商品名称 |
| type | int | 商品类型(1:直充,2:卡密) |
| face_value | decimal | 面值 |
| price | decimal | 售价 |
| purchase_quantity_rule | string | 合法的购买数量 |
| status | int | 状态(1:销售中,2:停售) |
示例
{
"code": 0,
"message": "",
"data": [
{
"id": "21423",
"name": "官方卡影视黄金会员1个月激活码",
"type": "2",
"face_value": "10.00",
"price": "9.5100",
"purchase_quantity_rule": "1-1002",
"status": "1"
},
{
"id": "21531",
"name": "官方卡-TV会员1个月激活码",
"type": "2",
"face_value": "10.00",
"price": "9.0000",
"purchase_quantity_rule": "1,2,3,45,7",
"status": "1"
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24