[关闭]
@lyxiang 2018-03-11T21:47:21.000000Z 字数 5817 阅读 1240

三易校园接口


快递

生成快递单

  1. {
  2. "code": "S200",
  3. "message": null,
  4. "url": null,
  5. "data": {
  6. "id": 8,
  7. "userId": 0,
  8. "bizNo": 20180304001,
  9. "sender": "lyx",
  10. "senderPhone": "17621621705",
  11. "senderAddress": "上海嘉定",
  12. "recipient": "张三",
  13. "recipientPhone": "110",
  14. "recipientAddress": "郑州龙湖",
  15. "deliveryNo": null,
  16. "deliveryFee": null,
  17. "deliveryCompany": null,
  18. "orderStatus": 0,
  19. "createTime": 1520148264258
  20. }
  21. }

获取快递单列表

  1. {
  2. "code": "S200",
  3. "message": null,
  4. "url": null,
  5. "data": {
  6. "pageNum": 1,
  7. "pageSize": 1,
  8. "size": 1,
  9. "orderBy": null,
  10. "startRow": 0,
  11. "endRow": 0,
  12. "total": 1,
  13. "pages": 1,
  14. "list": [
  15. {
  16. "id": 8,
  17. "userId": 0,
  18. "bizNo": 20180304001,
  19. "sender": "lyx",
  20. "senderPhone": "17621621705",
  21. "senderAddress": "上海嘉定",
  22. "recipient": "张三",
  23. "recipientPhone": "110",
  24. "recipientAddress": "郑州龙湖",
  25. "deliveryNo": null,
  26. "deliveryFee": null,
  27. "deliveryCompany": null,
  28. "orderStatus": 1,
  29. "createTime": 1520148264000
  30. }
  31. ],
  32. "firstPage": 1,
  33. "prePage": 0,
  34. "nextPage": 0,
  35. "lastPage": 1,
  36. "isFirstPage": true,
  37. "isLastPage": true,
  38. "hasPreviousPage": false,
  39. "hasNextPage": false,
  40. "navigatePages": 8,
  41. "navigatepageNums": [
  42. 1
  43. ]
  44. }
  45. }

更新快递单信息

  1. {
  2. "code": "S200",
  3. "message": null,
  4. "url": null,
  5. "data": {
  6. "id": 8,
  7. "userId": 0,
  8. "bizNo": 20180304001,
  9. "sender": "lyx",
  10. "senderPhone": "17621621705",
  11. "senderAddress": "上海嘉定",
  12. "recipient": "张三",
  13. "recipientPhone": "110",
  14. "recipientAddress": "郑州龙湖",
  15. "deliveryNo": "1234",
  16. "deliveryFee": null,
  17. "deliveryCompany": "中通快递",
  18. "orderStatus": 2,
  19. "createTime": 1520148264000
  20. }
  21. }

电商

查看商品详情

  1. {
  2. "code": "S200",
  3. "message": null,
  4. "url": null,
  5. "data": {
  6. "id": 1,
  7. "sellerId": 1,
  8. "name": "iPhone x", //商品名称
  9. "subName": "iphone", //商品副名称
  10. "price": 10000, //市场价
  11. "salePrice": 9000, //销售价
  12. "stock": 100, //库存
  13. "soldCount": 0, //销量
  14. "coverPic": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg", //封面图片
  15. "pics": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg", //图片集
  16. "remark": "这是备注",
  17. "shelves": 1,
  18. "createTime": 1513767167000,
  19. "status": 1 //上架
  20. }
  21. }

获取商品列表

  1. {
  2. "code": "S200",
  3. "message": null,
  4. "url": null,
  5. "data": {
  6. "pageNum": 1,
  7. "pageSize": 1,
  8. "size": 1,
  9. "orderBy": null,
  10. "startRow": 0,
  11. "endRow": 0,
  12. "total": 1,
  13. "pages": 1,
  14. "list": [
  15. {
  16. "id": 1,
  17. "sellerId": 1,
  18. "name": "iPhone x",
  19. "subName": "iphone",
  20. "price": 10000,
  21. "salePrice": 9000,
  22. "stock": 100,
  23. "soldCount": 0,
  24. "coverPic": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg",
  25. "pics": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg",
  26. "remark": "这是备注",
  27. "shelves": 1,
  28. "createTime": 1513767167000,
  29. "status": 1
  30. }
  31. ],
  32. "firstPage": 1,
  33. "prePage": 0,
  34. "nextPage": 0,
  35. "lastPage": 1,
  36. "isFirstPage": true,
  37. "isLastPage": true,
  38. "hasPreviousPage": false,
  39. "hasNextPage": false,
  40. "navigatePages": 8,
  41. "navigatepageNums": [
  42. 1
  43. ]
  44. }
  45. }

下单

  1. {
  2. "code": "S200",
  3. "message": null,
  4. "url": null,
  5. "data": {
  6. "total": 9000, //需要支付的金额
  7. "orderId": 3 //订单id
  8. }
  9. }

获取订单列表

  1. {
  2. "code": "S200",
  3. "message": null,
  4. "url": null,
  5. "data": {
  6. "pageNum": 1,
  7. "pageSize": 2,
  8. "size": 2,
  9. "orderBy": null,
  10. "startRow": 0,
  11. "endRow": 1,
  12. "total": 2,
  13. "pages": 1,
  14. "list": [
  15. {
  16. "orderItemList": [
  17. {
  18. "id": 1,
  19. "orderId": 0,
  20. "userId": 1,
  21. "itemId": 1,
  22. "itemName": "iPhone x",
  23. "coverPic": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg",
  24. "count": 1,
  25. "price": 10000,
  26. "salePrice": 9000,
  27. "total": 9000,
  28. "createTime": 1513854716000
  29. }
  30. ],
  31. "order": {
  32. "id": 3,
  33. "userId": 1,
  34. "sellerId": 1,
  35. "total": 9000,
  36. "totalPrice": 10000,
  37. "logisticsFee": 0,
  38. "orderStatus": "WAIT_BUYER_PAY",
  39. "payTime": null,
  40. "payType": null,
  41. "sender": null,
  42. "sendPhone": null,
  43. "sendAddress": null,
  44. "recipient": "小张",
  45. "recipientPhone": "135167700213",
  46. "recipientAddress": "湖北",
  47. "remark": null,
  48. "createTime": 1513854716000
  49. }
  50. },
  51. {
  52. "orderItemList": [
  53. {
  54. "id": 2,
  55. "orderId": 0,
  56. "userId": 1,
  57. "itemId": 1,
  58. "itemName": "iPhone x",
  59. "coverPic": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg",
  60. "count": 1,
  61. "price": 10000,
  62. "salePrice": 9000,
  63. "total": 9000,
  64. "createTime": 1513855336000
  65. }
  66. ],
  67. "order": {
  68. "id": 4,
  69. "userId": 1,
  70. "sellerId": 1,
  71. "total": 9000,
  72. "totalPrice": 10000,
  73. "logisticsFee": 0,
  74. "orderStatus": "WAIT_BUYER_PAY",
  75. "payTime": null,
  76. "payType": null,
  77. "sender": null,
  78. "sendPhone": null,
  79. "sendAddress": null,
  80. "recipient": "小张",
  81. "recipientPhone": "135167700213",
  82. "recipientAddress": "湖北",
  83. "remark": null,
  84. "createTime": 1513855336000
  85. }
  86. }
  87. ],
  88. "firstPage": 1,
  89. "prePage": 0,
  90. "nextPage": 0,
  91. "lastPage": 1,
  92. "isFirstPage": true,
  93. "isLastPage": true,
  94. "hasPreviousPage": false,
  95. "hasNextPage": false,
  96. "navigatePages": 8,
  97. "navigatepageNums": [
  98. 1
  99. ]
  100. }
  101. }

查看订单详情

  1. {
  2. "code": "S200",
  3. "message": null,
  4. "url": null,
  5. "data": {
  6. "orderItemList": [
  7. {
  8. "id": 1,
  9. "orderId": 0,
  10. "userId": 1,
  11. "itemId": 1,
  12. "itemName": "iPhone x",
  13. "coverPic": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg",
  14. "count": 1,
  15. "price": 10000,
  16. "salePrice": 9000,
  17. "total": 9000,
  18. "createTime": 1513854716000
  19. }
  20. ],
  21. "order": {
  22. "id": 3,
  23. "userId": 1,
  24. "sellerId": 1,
  25. "total": 9000,
  26. "totalPrice": 10000,
  27. "logisticsFee": 0,
  28. "orderStatus": "WAIT_BUYER_PAY",
  29. "payTime": null,
  30. "payType": null,
  31. "sender": null,
  32. "sendPhone": null,
  33. "sendAddress": null,
  34. "recipient": "小张",
  35. "recipientPhone": "135167700213",
  36. "recipientAddress": "湖北",
  37. "remark": null,
  38. "createTime": 1513854716000
  39. }
  40. }
  41. }

确认收货

  1. {
  2. "code": "S200",
  3. "message": null,
  4. "url": null,
  5. "data": null
  6. }

菜单列表

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注