Showing
1 changed file
with
74 additions
and
0 deletions
@@ -897,4 +897,78 @@ productId: 22255 | @@ -897,4 +897,78 @@ productId: 22255 | ||
897 | md5: "7755bf7e87f3bdea3709f3c154e91cb5", | 897 | md5: "7755bf7e87f3bdea3709f3c154e91cb5", |
898 | message: "product collocation list" | 898 | message: "product collocation list" |
899 | } | 899 | } |
900 | +``` | ||
901 | + | ||
902 | + | ||
903 | + | ||
904 | + | ||
905 | +## 舒适度## | ||
906 | + | ||
907 | +(method=web.productComfort.data) | ||
908 | +请求方式:POST | ||
909 | +#### 请求参数 | ||
910 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
911 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
912 | +|product_id|int| 是| 10575|null|产品ID| | ||
913 | + | ||
914 | + | ||
915 | +注意,通用的头部没有列出。 | ||
916 | +请求示例 | ||
917 | +http://192.168.102.202:8080/gateway/?method=web.productComfort.data&product_id=22255 | ||
918 | +### 响应 | ||
919 | +code为200即为成功且只会返回200,每次都会有响应结果。 | ||
920 | +响应JSON格式如下所示: | ||
921 | +```json | ||
922 | +{ | ||
923 | +alg: "SALT_MD5", | ||
924 | +code: 200, | ||
925 | +data: [ | ||
926 | +{ | ||
927 | +caption: { | ||
928 | +caption: "弹性", | ||
929 | +high: "大", | ||
930 | +low: "小" | ||
931 | +}, | ||
932 | +wearSense: { | ||
933 | +id: 1, | ||
934 | +value: 4 | ||
935 | +} | ||
936 | +}, | ||
937 | +{ | ||
938 | +caption: { | ||
939 | +caption: "厚度", | ||
940 | +high: "厚", | ||
941 | +low: "薄" | ||
942 | +}, | ||
943 | +wearSense: { | ||
944 | +id: 2, | ||
945 | +value: 1 | ||
946 | +} | ||
947 | +}, | ||
948 | +{ | ||
949 | +caption: { | ||
950 | +caption: "柔软度", | ||
951 | +high: "硬", | ||
952 | +low: "软" | ||
953 | +}, | ||
954 | +wearSense: { | ||
955 | +id: 3, | ||
956 | +value: 1 | ||
957 | +} | ||
958 | +}, | ||
959 | +{ | ||
960 | +caption: { | ||
961 | +caption: "透气性", | ||
962 | +high: "强", | ||
963 | +low: "弱" | ||
964 | +}, | ||
965 | +wearSense: { | ||
966 | +id: 4, | ||
967 | +value: 4 | ||
968 | +} | ||
969 | +} | ||
970 | +], | ||
971 | +md5: "76591219c2aa4c630515dd50d465cba6", | ||
972 | +message: "product comfort" | ||
973 | +} | ||
900 | ``` | 974 | ``` |
-
Please register or login to post a comment