Update pda-interface-doc.md
Showing
1 changed file
with
152 additions
and
0 deletions
@@ -526,4 +526,156 @@ | @@ -526,4 +526,156 @@ | ||
526 | ``` | 526 | ``` |
527 | > 如果确认的盘点数量和货架商品数量一致,服务端自动设置状态成完成 | 527 | > 如果确认的盘点数量和货架商品数量一致,服务端自动设置状态成完成 |
528 | 528 | ||
529 | +# 获取门店库存位置数量 # | ||
530 | +入口:LineShopsController/getStorageLocation | ||
531 | + | ||
532 | +# 请求参数 # | ||
533 | +| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 | | ||
534 | +| ---------|:--------:| --------:|-----:|------:|-----:|------:| | ||
535 | +|storeId |int | 50 |否 |1| |门店id| | ||
536 | +|productSkus |String | 50 |否 |1 | |sku,多个,","隔开| | ||
537 | + | ||
538 | + | ||
539 | +**请求示例** | ||
540 | +注意,通用的头部没有列出。 | ||
541 | + | ||
542 | +http://192.168.102.210:8080/portal-gateway/LineShopsController/getStorageLocation | ||
543 | + | ||
544 | + { | ||
545 | + "storeId": "10", | ||
546 | + "productSkus": "102004,102005", | ||
547 | + } | ||
548 | + | ||
549 | + | ||
550 | +**响应** | ||
551 | + | ||
552 | +code为200即为成功,否则是失败。 响应JSON格式如下所示: | ||
553 | + | ||
554 | + { | ||
555 | + "code": 200, | ||
556 | + "message": "success", | ||
557 | + "data": [ | ||
558 | + { | ||
559 | + "storeId": 70, | ||
560 | + "productSku": "1385336", | ||
561 | + "goodsShelvesStock": 145, | ||
562 | + "destroyStock": 0 | ||
563 | + }, | ||
564 | + { | ||
565 | + "storeId": 70, | ||
566 | + "productSku": "1385330", | ||
567 | + "goodsShelvesStock": 195, | ||
568 | + "destroyStock": 0 | ||
569 | + } | ||
570 | + ] | ||
571 | + } | ||
572 | + | ||
573 | + | ||
574 | + | ||
575 | +# 根据skus获取商品详情 # | ||
576 | +入口:LineShopsProductController.getProductInfoBySkuList() | ||
577 | + | ||
578 | +# 请求参数 # | ||
579 | +| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 | | ||
580 | +| ---------|:--------:| --------:|-----:|------:|-----:|------:| | ||
581 | +|storeId |int | 50 |否 |1| |门店id| | ||
582 | +|productSkus |String | 50 |否 |1 | |多个,","隔开| | ||
583 | + | ||
584 | + | ||
585 | +**请求示例** | ||
586 | +注意,通用的头部没有列出。 | ||
587 | + | ||
588 | +http://192.168.102.210:8080/portal-gateway/LineShopsProductController/getProductInfoBySkuList | ||
589 | + | ||
590 | + { | ||
591 | + "storeId": "10", | ||
592 | + "productSkus": "1385336,1385330", | ||
593 | + } | ||
594 | + | ||
595 | + | ||
596 | +**响应** | ||
597 | + | ||
598 | +code为200即为成功,否则是失败。 响应JSON格式如下所示: | ||
599 | + | ||
600 | + { | ||
601 | + "code": 200, | ||
602 | + "message": "success", | ||
603 | + "data": [ | ||
604 | + { | ||
605 | + "productId": 512581796, | ||
606 | + "productSkn": 512581796, | ||
607 | + "productSku": 1385330, | ||
608 | + "productSkc": 534360, | ||
609 | + "sizeName": "L", | ||
610 | + "colorName": "黑色", | ||
611 | + "imageUrl": "http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png", | ||
612 | + "productName": "blkheimei通用的男女卫衣给线下店用", | ||
613 | + "brandName": "BLK黑莓", | ||
614 | + "shelveTime": "2016-09-14 15:13", | ||
615 | + "maxSortId": 0, | ||
616 | + "maxSortName": "上衣", | ||
617 | + "middleSortName": "卫衣", | ||
618 | + "smallSortName": "卫衣", | ||
619 | + "genderStr": "通用", | ||
620 | + "attribute": "普通商品", | ||
621 | + "isShopCanSale": "是", | ||
622 | + "isShopOnSale": null, | ||
623 | + "isAdvance": "否", | ||
624 | + "isSpecial": null, | ||
625 | + "isLimited": "否", | ||
626 | + "isJit": "是", | ||
627 | + "marketPrice": "1.0", | ||
628 | + "salesPrice": 1, | ||
629 | + "grossRate": null, | ||
630 | + "replenishSwitch": 0, | ||
631 | + "shopStock": 0, | ||
632 | + "allStock": 0, | ||
633 | + "goodsShelvesStock": 0, | ||
634 | + "destroyStock": 0, | ||
635 | + "imageUrls": null, | ||
636 | + "skcColor": "534360(黑色)", | ||
637 | + "genderAttribute": "通用/普通商品", | ||
638 | + "saleAttribute": "本店可售/JIT", | ||
639 | + "goodsShelvesCode": "1-B1-100-B1-02-H-142" | ||
640 | + }, | ||
641 | + { | ||
642 | + "productId": 512581796, | ||
643 | + "productSkn": 512581796, | ||
644 | + "productSku": 1385336, | ||
645 | + "productSkc": 534362, | ||
646 | + "sizeName": "M", | ||
647 | + "colorName": "绿色", | ||
648 | + "imageUrl": "http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png", | ||
649 | + "productName": "blkheimei通用的男女卫衣给线下店用", | ||
650 | + "brandName": "BLK黑莓", | ||
651 | + "shelveTime": "2016-09-14 15:13", | ||
652 | + "maxSortId": 0, | ||
653 | + "maxSortName": "上衣", | ||
654 | + "middleSortName": "卫衣", | ||
655 | + "smallSortName": "卫衣", | ||
656 | + "genderStr": "通用", | ||
657 | + "attribute": "普通商品", | ||
658 | + "isShopCanSale": "是", | ||
659 | + "isShopOnSale": null, | ||
660 | + "isAdvance": "否", | ||
661 | + "isSpecial": null, | ||
662 | + "isLimited": "否", | ||
663 | + "isJit": "是", | ||
664 | + "marketPrice": "1.0", | ||
665 | + "salesPrice": 1, | ||
666 | + "grossRate": null, | ||
667 | + "replenishSwitch": 0, | ||
668 | + "shopStock": 0, | ||
669 | + "allStock": 0, | ||
670 | + "goodsShelvesStock": 0, | ||
671 | + "destroyStock": 0, | ||
672 | + "imageUrls": null, | ||
673 | + "skcColor": "534362(绿色)", | ||
674 | + "genderAttribute": "通用/普通商品", | ||
675 | + "saleAttribute": "本店可售/JIT", | ||
676 | + "goodsShelvesCode": "1-2-C-148" | ||
677 | + } | ||
678 | + ] | ||
679 | + } | ||
680 | + | ||
529 | 681 |
-
Please register or login to post a comment