排队活动4.4.md 9.85 KB

1、用户选择/修改活动商品的sku信息

用户选择/修改活动商品的sku信息(?method=app.limitProduct.userChoiceSku)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
uid int 205455 用户id
productSkn int 12556 skn
productSku int 25665 sku
productSkc int 15566 skc
colorName String 蓝色 颜色
sizeName String L 尺码

注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/gateway?method=app.limitProduct.userChoiceSku&uid=12342&productSkn=56665&productSku=222&colorName=蓝色&sizeName=L&productSkc=15556

响应

code为200即为成功,否则是失败。 响应参数,data部分
响应成功JSON格式如下所示:

{
  "code": 200,
  "message": "成功",
  "md5": "6d729d4b35f10fc73531210bd7ecff91",
  "alg": "SALT_MD5",
  "data": []
}

响应失败JSON格式如下所示:

{
  "code": 500,
  "message": "失败",
  "md5": "6d729d4b35f10fc73531210bd7ecff91",
  "alg": "SALT_MD5",
  "data": []
}

2、根据uid和skn查询选择的sku信息

根据uid和活动id查询选择的sku信息(?method=app.drawline.getUserChoiceSku)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
uid int 205455 用户id
productSkn int 12556 skn

注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/activity?method=app.drawline.getUserChoiceSku&uid=12342&productSkn=56665

响应

code为200即为成功,否则是失败。 响应参数,data部分
响应成功JSON格式如下所示:

{
  "code": 200,
  "message": "操作成功",
  "md5": "9db2bfc15fdd507d2f5845c8bc74d337",
  "alg": "SALT_MD5",
  "data": {
    "userSkuId": 11,
    "uid": 12342,
    "activityId": 56665,
    "productSku": 222,
    "productSkc": 333,
    "colorName": "蓝色",
    "sizeName": "L"
  }
}

3、根据skn获取平台配置的sku的商品详细信息

根据skn获取平台配置的sku的商品详细信息(?method=app.limitProduct.getGoodListBySkus)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
skn String 205455 用户id

注意,通用的头部没有列出。
请求示例
http://192.168.102.205:8080/activity?method=app.limitProduct.getGoodListBySkus&skn=12342

响应

code为200即为成功,否则是失败。 响应参数,data部分
响应成功JSON格式如下所示:

{
    "code": 200, 
    "message": "操作成功", 
    "md5": "9db2bfc15fdd507d2f5845c8bc74d337", 
    "alg": "SALT_MD5", 
    "data": {
  "formatMarketPrice": "¥275.00",
  "formatSalesPrice": "¥275.00",
  "goodsList": [
    {
      "colorId": 2,
      "colorImage": "http://img13.static.yhbimg.com/goodsimg/2012/03/02/17/0242814e14d8ac1525c92de0a84d0f70eb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
      "colorName": "黑",
      "factorySn": "",
      "firstShelveTime": 1310648698,
      "goodsImagesList": [],
      "goodsName": "OVK 08 CUTE SKULL TEE",
      "goodsSizeBoList": [
        {
          "attributeId": "",
          "createTime": 0,
          "goodsId": null,
          "goodsSizeSkuId": 102050,
          "goodsSizeStorageNum": null,
          "id": 201,
          "orderBy": 1169,
          "sizeName": "L",
          "sortId": 0,
          "updateTime": 0
        },
        {
          "attributeId": "",
          "createTime": 0,
          "goodsId": null,
          "goodsSizeSkuId": 102034,
          "goodsSizeStorageNum": null,
          "id": 211,
          "orderBy": 1163,
          "sizeName": "XL",
          "sortId": 0,
          "updateTime": 0
        }
      ],
      "id": 14,
      "isDefault": "N",
      "isDown": "N",
      "matchExplain": "",
      "productId": 13,
      "productSkc": 14,
      "status": 1,
      "viewNum": 0
    },
    {
      "colorId": 3,
      "colorImage": "http://img11.static.yhbimg.com/goodsimg/2012/03/02/15/01562d80dbd0f5acc9e8b96668836006ff.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
      "colorName": "灰",
      "factorySn": "",
      "firstShelveTime": 1310648698,
      "goodsImagesList": [],
      "goodsName": "OVK 08 CUTE SKULL TEE",
      "goodsSizeBoList": [
        {
          "attributeId": "",
          "createTime": 0,
          "goodsId": null,
          "goodsSizeSkuId": 102037,
          "goodsSizeStorageNum": null,
          "id": 203,
          "orderBy": 1175,
          "sizeName": "M",
          "sortId": 0,
          "updateTime": 0
        },
        {
          "attributeId": "",
          "createTime": 0,
          "goodsId": null,
          "goodsSizeSkuId": 102050,
          "goodsSizeStorageNum": null,
          "id": 201,
          "orderBy": 1169,
          "sizeName": "L",
          "sortId": 0,
          "updateTime": 0
        },
        {
          "attributeId": "",
          "createTime": 0,
          "goodsId": null,
          "goodsSizeSkuId": 102034,
          "goodsSizeStorageNum": null,
          "id": 211,
          "orderBy": 1163,
          "sizeName": "XL",
          "sortId": 0,
          "updateTime": 0
        }
      ],
      "id": 15,
      "isDefault": "Y",
      "isDown": "N",
      "matchExplain": "",
      "productId": 13,
      "productSkc": 15,
      "status": 1,
      "viewNum": 0
    }
  ],
  "marketPrice": "",
  "phrase": "OVERKILL OVK 08 CUTE SKULL 短袖TEE.正面胸口的图案和背后相互呼应,清新活力。超炫的骷髅图案,带来不一样的靓点 ",
  "productId": "50001796",
  "productName": "OVERKILL OVK 08 CUTE SKULL 短袖TEE",
  "productSkn": "50001796",
  "productUrl": "",
  "salesPhrase": "275",
  "salesPrice": "275"
}
}

4、参加SKU排队活动时检测APP版本号

参加SKU排队活动时检测APP版本号(method=app.drawline.addQueue)

请求参数

参数名称 参数类型 长度 可否为空 示例 默认值 备注
activityId Integer 1-5 活动id
app_version String 5-10 版本号
uid Integer 5-10
userType Byte 1 用户类型
sort Integer 1-7 排队序号
limit Integer 1-3 分页大小

注意,通用的头部没有列出。 请求示例http://127.0.0.1:8090/activity/?method=app.drawline.addQueue&limitProductCode=3&app_version=4.0.1&uid=109&activityId=11

响应

code为200即为成功,否则是失败。 响应JSON格式如下所示:

{
  "code": 900001006,
  "message": "版本过低,请更新",
  "md5": "f4a7a490bb6666b005008d795ed14e5d",
  "alg": "SALT_MD5",
  "data": {}
}

5、我的限购码

我的限购码(method=app.limitcode.query)

请求参数

参数名称 参数类型 长度 可否为空 示例 默认值 备注
uid int 5-10 用户id

注意,通用的头部没有列出。 请求示例http://127.0.0.1:8080/gateway/?method=app.limitcode.query&uid=12710899

响应

code为200即为成功,否则是失败。

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": {
    "invalidLimitCodeProducts": [],
    "limitCodeProducts": [{
"defaultUrl":"http://img11.static.yhbimg.com/goodsimg/2016/04/15/11/011c20479a68be0e4ef15cca3b2ce89f6d.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"limitCode":"2aD3U14L2",
"limitProductCode":"2016041511502657",
"price":"¥1499.00",
"productName":"大牌合作超强联手PUMA x McQ Brace Mid black强势来袭",
"productSkn":"51162585",
"productSku":"578965",
"color_name":"黑色"
"size_name":"42码",
"status":"1"
}]
  },
  "md5": "3023b84ee63d9ea554cbbd0bf40fef62",
  "message": "操作成功"
}

6、限定商品详情

限定商品详情(method=app.limitProduct.limitProductDetail)

请求参数

| 参数名称 | 参数类型 |长度 | 可否为空 | 示例 | 默认值 | 备注 | |:-------| -----:|-----:|-----:|-----:|----:| |uid|int|5-10|是||0|用户id| |limitProductCode|16-20|String|否||无||

注意,通用的头部没有列出。 请求示例http://127.0.0.1:8080/gateway/?method=app.limitcode.query&uid=12710899&limitProductCode=2016022420292150

响应

code为200即为成功,否则是失败。

{
  "alg": "SALT_MD5",
  "code": 200,
  "data":
  {"alertFlag":true,
"attachment":
[{"attachName":"",
"attachType":1,
"attachUrl":"",
"id":25197,
"intro":"",
"isDefault":1,
"orderBy":1,
"productId":167,
"status":0},
"batchNo":"2016040718244343",
"defaultUrl":"http://img12.static.yhbimg.com/goodsimg/2016/04/19/11/028199c467efae8038f9705534c8277225.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"description":"",
"hotFlag":1,
"id":167,
"limitProductCode":"2016041911341815",
"limitProductType":1,
"oldSaleTime":1461297600,
"orderBy":9,
"colorName":"黑色",
"sizeName":"42码",
"selectSKU":"51187",
"relatedSKU":true,
"queueType":"1",
"price":"¥1099.00",
"productName":"大牌合作超强联手PUMA x McQ Brace Lo Femme White",
"productSkn":51162584,
"reminderNum":22702,
"saleStatus":0,
"saleTime":"2016年4月22日",
"shareUrl":"http://m.yohobuy.com/product/detail/limit?code=2016041911341815",
"showFlag":1,
"showStatus":6},
"md5":"19d342768d9ec4db0ab21bb5d96430df",
"message":"detail limitproduct info"
}