Example #1
0
File: Product.php Project: WTer/NJB
 # Request Body
 # {
 #   "Count":"图片数量",
 #   "List":
 #    [
 #      {"ImageId": "图片ID, 对于新图,此项为空",
 #       "Description": "图片描述",
 #       "BigPicture": "大图BASE64编码串",
 #       "SmallPicture": "小图BASE64编码串"},
 #      ……
 #    ]
 # }
 #
 $app->put('/Images/:ProductId', function ($ProductId) use($app) {
     $product = new Product($app);
     echo $product->put_Images($ProductId);
 });
 #
 # 商品查询—单张图片
 #
 # GET https://<endpoint>/Product/Image/[ProductId]
 #
 # Response Body
 # Content-Type: application/json
 # {
 #    "id": "图片ID",
 #    "Description": "图片描述",
 #    "bigportraiturl": "大图BASE64编码串",
 #    "smallportraiturl": "小图BASE64编码串"},
 # }
 #