|
@@ -447,12 +447,12 @@ define({ "api": [
|
|
|
},
|
|
|
{
|
|
|
"type": "get",
|
|
|
- "url": "product/?l=api.addCarts",
|
|
|
- "title": "添加产品到购物车",
|
|
|
+ "url": "product/?l=api.addAddress",
|
|
|
+ "title": "添加收货地址",
|
|
|
"version": "1.0.0",
|
|
|
- "name": "api_addCarts",
|
|
|
+ "name": "api_addAddress",
|
|
|
"group": "Product",
|
|
|
- "description": "<p>添加产品到购物车</p>",
|
|
|
+ "description": "<p>添加收货地址</p>",
|
|
|
"parameter": {
|
|
|
"fields": {
|
|
|
"Parameter": [
|
|
@@ -467,15 +467,22 @@ define({ "api": [
|
|
|
"group": "Parameter",
|
|
|
"type": "String",
|
|
|
"optional": false,
|
|
|
- "field": "product_id",
|
|
|
- "description": "<p>产品id</p>"
|
|
|
+ "field": "name",
|
|
|
+ "description": "<p>收货人姓名</p>"
|
|
|
},
|
|
|
{
|
|
|
"group": "Parameter",
|
|
|
"type": "String",
|
|
|
"optional": false,
|
|
|
- "field": "num",
|
|
|
- "description": "<p>数量</p>"
|
|
|
+ "field": "address",
|
|
|
+ "description": "<p>收货人地址</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "mobile",
|
|
|
+ "description": "<p>收货人联系电话</p>"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -498,12 +505,12 @@ define({ "api": [
|
|
|
},
|
|
|
{
|
|
|
"type": "get",
|
|
|
- "url": "product/?l=api.carts",
|
|
|
- "title": "获取购物车列表",
|
|
|
+ "url": "product/?l=api.addCarts",
|
|
|
+ "title": "添加产品到购物车",
|
|
|
"version": "1.0.0",
|
|
|
- "name": "api_buy",
|
|
|
+ "name": "api_addCarts",
|
|
|
"group": "Product",
|
|
|
- "description": "<p>获取购物车列表</p>",
|
|
|
+ "description": "<p>添加产品到购物车</p>",
|
|
|
"parameter": {
|
|
|
"fields": {
|
|
|
"Parameter": [
|
|
@@ -513,6 +520,20 @@ define({ "api": [
|
|
|
"optional": false,
|
|
|
"field": "signature",
|
|
|
"description": "<p>signature</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "product_id",
|
|
|
+ "description": "<p>产品id</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "num",
|
|
|
+ "description": "<p>数量</p>"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -520,26 +541,12 @@ define({ "api": [
|
|
|
"success": {
|
|
|
"fields": {
|
|
|
"Success 200": [
|
|
|
- {
|
|
|
- "group": "Success 200",
|
|
|
- "type": "Object[]",
|
|
|
- "optional": false,
|
|
|
- "field": "carts",
|
|
|
- "description": "<p>购物车信息</p>"
|
|
|
- },
|
|
|
{
|
|
|
"group": "Success 200",
|
|
|
"type": "String",
|
|
|
"optional": false,
|
|
|
- "field": "carts.product",
|
|
|
- "description": "<p>产品信息</p>"
|
|
|
- },
|
|
|
- {
|
|
|
- "group": "Success 200",
|
|
|
- "type": "String",
|
|
|
- "optional": false,
|
|
|
- "field": "carts.num",
|
|
|
- "description": "<p>数量</p>"
|
|
|
+ "field": "data",
|
|
|
+ "description": "<p>返回ok</p>"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -626,6 +633,85 @@ define({ "api": [
|
|
|
"filename": "/root/input/doc/apidoc.php",
|
|
|
"groupTitle": "Product"
|
|
|
},
|
|
|
+ {
|
|
|
+ "type": "get",
|
|
|
+ "url": "product/?l=api.carts",
|
|
|
+ "title": "获取购物车列表",
|
|
|
+ "version": "1.0.0",
|
|
|
+ "name": "api_buy",
|
|
|
+ "group": "Product",
|
|
|
+ "description": "<p>获取购物车列表</p>",
|
|
|
+ "parameter": {
|
|
|
+ "fields": {
|
|
|
+ "Parameter": [
|
|
|
+ {
|
|
|
+ "group": "Parameter",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "signature",
|
|
|
+ "description": "<p>signature</p>"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "success": {
|
|
|
+ "fields": {
|
|
|
+ "Success 200": [
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "Object[]",
|
|
|
+ "optional": false,
|
|
|
+ "field": "carts",
|
|
|
+ "description": "<p>购物车信息</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "carts.product",
|
|
|
+ "description": "<p>产品信息</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "carts.num",
|
|
|
+ "description": "<p>数量</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "Object[]",
|
|
|
+ "optional": false,
|
|
|
+ "field": "address",
|
|
|
+ "description": "<p>收货地址</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "address.name",
|
|
|
+ "description": "<p>收货人姓名</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "address.address",
|
|
|
+ "description": "<p>收货人地址</p>"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "group": "Success 200",
|
|
|
+ "type": "String",
|
|
|
+ "optional": false,
|
|
|
+ "field": "address.mobile",
|
|
|
+ "description": "<p>收货人联系电话</p>"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "filename": "/root/input/doc/apidoc.php",
|
|
|
+ "groupTitle": "Product"
|
|
|
+ },
|
|
|
{
|
|
|
"type": "get",
|
|
|
"url": "product/?l=api.code",
|