dever 6 years ago
parent
commit
f3fbdc5117
4 changed files with 416 additions and 2 deletions
  1. 207 0
      doc/api_data.js
  2. 207 0
      doc/api_data.json
  3. 1 1
      doc/api_project.js
  4. 1 1
      doc/api_project.json

+ 207 - 0
doc/api_data.js

@@ -585,6 +585,27 @@ define({ "api": [
             "optional": false,
             "field": "num",
             "description": "<p>产品数量,多个用逗号隔开</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "name",
+            "description": "<p>收货人姓名</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "address",
+            "description": "<p>收货人地址</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "mobile",
+            "description": "<p>收货人联系电话</p>"
           }
         ]
       }
@@ -719,6 +740,127 @@ define({ "api": [
     "filename": "/root/input/doc/apidoc.php",
     "groupTitle": "Product"
   },
+  {
+    "type": "get",
+    "url": "product/?l=api.checkCode",
+    "title": "根据兑换码获取产品信息",
+    "version": "1.0.0",
+    "name": "api_checkCode",
+    "group": "Product",
+    "description": "<p>根据兑换码获取产品信息</p>",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "signature",
+            "description": "<p>signature</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "code",
+            "description": "<p>兑换码</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "fields": {
+        "Success 200": [
+          {
+            "group": "Success 200",
+            "type": "Object[]",
+            "optional": false,
+            "field": "product",
+            "description": "<p>产品信息</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.id",
+            "description": "<p>产品id</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.name",
+            "description": "<p>名称</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.pic",
+            "description": "<p>产品封面</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.focus",
+            "description": "<p>产品轮播图 多个用逗号隔开</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.content",
+            "description": "<p>内容</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.price",
+            "description": "<p>显示价格</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Number",
+            "optional": false,
+            "field": "product.pay_price",
+            "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",
@@ -750,6 +892,71 @@ define({ "api": [
             "optional": false,
             "field": "code",
             "description": "<p>兑换码</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "name",
+            "description": "<p>收货人姓名</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "address",
+            "description": "<p>收货人地址</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "mobile",
+            "description": "<p>收货人联系电话</p>"
+          }
+        ]
+      }
+    },
+    "filename": "/root/input/doc/apidoc.php",
+    "groupTitle": "Product"
+  },
+  {
+    "type": "get",
+    "url": "product/?l=api.delCarts",
+    "title": "从购物车删除产品",
+    "version": "1.0.0",
+    "name": "api_delCarts",
+    "group": "Product",
+    "description": "<p>从购物车删除产品</p>",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "signature",
+            "description": "<p>signature</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "product_id",
+            "description": "<p>产品id</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "fields": {
+        "Success 200": [
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "data",
+            "description": "<p>返回ok</p>"
           }
         ]
       }

+ 207 - 0
doc/api_data.json

@@ -585,6 +585,27 @@
             "optional": false,
             "field": "num",
             "description": "<p>产品数量,多个用逗号隔开</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "name",
+            "description": "<p>收货人姓名</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "address",
+            "description": "<p>收货人地址</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "mobile",
+            "description": "<p>收货人联系电话</p>"
           }
         ]
       }
@@ -719,6 +740,127 @@
     "filename": "/root/input/doc/apidoc.php",
     "groupTitle": "Product"
   },
+  {
+    "type": "get",
+    "url": "product/?l=api.checkCode",
+    "title": "根据兑换码获取产品信息",
+    "version": "1.0.0",
+    "name": "api_checkCode",
+    "group": "Product",
+    "description": "<p>根据兑换码获取产品信息</p>",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "signature",
+            "description": "<p>signature</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "code",
+            "description": "<p>兑换码</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "fields": {
+        "Success 200": [
+          {
+            "group": "Success 200",
+            "type": "Object[]",
+            "optional": false,
+            "field": "product",
+            "description": "<p>产品信息</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.id",
+            "description": "<p>产品id</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.name",
+            "description": "<p>名称</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.pic",
+            "description": "<p>产品封面</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.focus",
+            "description": "<p>产品轮播图 多个用逗号隔开</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.content",
+            "description": "<p>内容</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "product.price",
+            "description": "<p>显示价格</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Number",
+            "optional": false,
+            "field": "product.pay_price",
+            "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",
@@ -750,6 +892,71 @@
             "optional": false,
             "field": "code",
             "description": "<p>兑换码</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "name",
+            "description": "<p>收货人姓名</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "address",
+            "description": "<p>收货人地址</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "mobile",
+            "description": "<p>收货人联系电话</p>"
+          }
+        ]
+      }
+    },
+    "filename": "/root/input/doc/apidoc.php",
+    "groupTitle": "Product"
+  },
+  {
+    "type": "get",
+    "url": "product/?l=api.delCarts",
+    "title": "从购物车删除产品",
+    "version": "1.0.0",
+    "name": "api_delCarts",
+    "group": "Product",
+    "description": "<p>从购物车删除产品</p>",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "signature",
+            "description": "<p>signature</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "product_id",
+            "description": "<p>产品id</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "fields": {
+        "Success 200": [
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "data",
+            "description": "<p>返回ok</p>"
           }
         ]
       }

+ 1 - 1
doc/api_project.js

@@ -13,7 +13,7 @@ define({
   "apidoc": "0.3.0",
   "generator": {
     "name": "apidoc",
-    "time": "2018-09-25T10:30:16.143Z",
+    "time": "2018-09-26T07:38:51.322Z",
     "url": "http://apidocjs.com",
     "version": "0.17.6"
   }

+ 1 - 1
doc/api_project.json

@@ -13,7 +13,7 @@
   "apidoc": "0.3.0",
   "generator": {
     "name": "apidoc",
-    "time": "2018-09-25T10:30:16.143Z",
+    "time": "2018-09-26T07:38:51.322Z",
     "url": "http://apidocjs.com",
     "version": "0.17.6"
   }