Showing
1 changed file
with
133 additions
and
0 deletions
@@ -695,4 +695,137 @@ | @@ -695,4 +695,137 @@ | ||
695 | "message": "NetSale Information List." | 695 | "message": "NetSale Information List." |
696 | } | 696 | } |
697 | 697 | ||
698 | +``` | ||
699 | + | ||
700 | + | ||
701 | +# 新增搭配信息 | ||
702 | + | ||
703 | +> 接口名: `/collocation/insertCollocation` | ||
704 | + | ||
705 | +### 入参 | ||
706 | +{"productSkn":50000055, "imageUrl":"imageUrl","content":"content","orderBy":1,"infoStr":"[{"id":50017821,"width":"295","height":"394","top":"151","left":"230","label":"50017821"}]"} | ||
707 | + | ||
708 | +------------------------- | ||
709 | +|属性名称|类型|例子|说明|是否必填| | ||
710 | +|--------|----|----|----|--------| | ||
711 | +|productSkn|number||商品skn|| | ||
712 | +|imageUrl|字符串||图片URL|| | ||
713 | +|content|字符串||搭配介绍|| | ||
714 | +|orderBy|number||顺序值|从1开始| | ||
715 | +|infoStr|json字符串||搭配的方位信息|| | ||
716 | + | ||
717 | +--------------------- | ||
718 | + | ||
719 | +### 返回 | ||
720 | + | ||
721 | +``` json | ||
722 | +{ | ||
723 | + "code": 200, | ||
724 | + "data": [], | ||
725 | + "md5": "d751713988987e9331980363e24189ce", | ||
726 | + "message": "insert collocation success." | ||
727 | +} | ||
728 | + | ||
729 | +``` | ||
730 | + | ||
731 | + | ||
732 | +# 修改搭配信息 | ||
733 | + | ||
734 | +> 接口名: `/collocation/insertCollocation` | ||
735 | + | ||
736 | +### 入参 | ||
737 | +{"id":1 "productSkn":50000055, "imageUrl":"imageUrl","content":"content","orderBy":1,"infoStr":"[{"id":50017821,"width":"295","height":"394","top":"151","left":"230","label":"50017821"}]"} | ||
738 | + | ||
739 | +------------------------- | ||
740 | +|属性名称|类型|例子|说明|是否必填| | ||
741 | +|--------|----|----|----|--------| | ||
742 | +|id|number||搭配的id|必填| | ||
743 | +|imageUrl|字符串||图片URL|| | ||
744 | +|content|字符串||搭配介绍|| | ||
745 | +|orderBy|number||顺序值|从1开始| | ||
746 | +|infoStr|json字符串||搭配的方位信息|| | ||
747 | + | ||
748 | +--------------------- | ||
749 | + | ||
750 | +### 返回 | ||
751 | + | ||
752 | +``` json | ||
753 | +{ | ||
754 | + "code": 200, | ||
755 | + "data": [], | ||
756 | + "md5": "d751713988987e9331980363e24189ce", | ||
757 | + "message": "update collocation success." | ||
758 | +} | ||
759 | + | ||
760 | +``` | ||
761 | + | ||
762 | + | ||
763 | +# 删除搭配信息 | ||
764 | + | ||
765 | +> 接口名: `/collocation/delCollocationById` | ||
766 | + | ||
767 | +### 入参 | ||
768 | +{"param":28952 } | ||
769 | + | ||
770 | +------------------------- | ||
771 | +|属性名称|类型|例子|说明|是否必填| | ||
772 | +|--------|----|----|----|--------| | ||
773 | +|id|number||搭配的id|必填| | ||
774 | + | ||
775 | +--------------------- | ||
776 | + | ||
777 | +### 返回 | ||
778 | + | ||
779 | +``` json | ||
780 | +{ | ||
781 | + "code": 200, | ||
782 | + "data": [], | ||
783 | + "md5": "d751713988987e9331980363e24189ce", | ||
784 | + "message": "delete collocation success." | ||
785 | +} | ||
786 | + | ||
787 | +``` | ||
788 | + | ||
789 | + | ||
790 | +# 获取单个搭配信息 | ||
791 | + | ||
792 | +> 接口名: `/collocation/selectCollocationById` | ||
793 | + | ||
794 | +### 入参 | ||
795 | +{"param":28952 } | ||
796 | + | ||
797 | +------------------------- | ||
798 | +|属性名称|类型|例子|说明|是否必填| | ||
799 | +|--------|----|----|----|--------| | ||
800 | +|id|number||搭配的id|必填| | ||
801 | + | ||
802 | +--------------------- | ||
803 | + | ||
804 | +### 返回 | ||
805 | + | ||
806 | +``` json | ||
807 | +{ | ||
808 | + "code": 200, | ||
809 | + "data": { | ||
810 | + "content": "content1", | ||
811 | + "createTime": 1457083379, | ||
812 | + "id": 28952, | ||
813 | + "imageUrl": "http:///goodsimgimageUrl1?imageView/1/w/150/h/150", | ||
814 | + "info": [ | ||
815 | + { | ||
816 | + "height": 394, | ||
817 | + "id": 50017831, | ||
818 | + "label": "50017821", | ||
819 | + "left": 230, | ||
820 | + "top": 151, | ||
821 | + "width": 299 | ||
822 | + } | ||
823 | + ], | ||
824 | + "orderBy": 1, | ||
825 | + "productSkn": 50000055 | ||
826 | + }, | ||
827 | + "md5": "a375479b786f4c747d39c6066f4d147e", | ||
828 | + "message": "query collocation success." | ||
829 | +} | ||
830 | + | ||
698 | ``` | 831 | ``` |
-
Please register or login to post a comment