三易校园接口
快递
生成快递单
- url: m.31xiaoyuan.com/deliveryOrder/insertDeliveryOrder
- method: post
- params:
- sender:lyx 发件人
- senderPhone:17621621705 发件人手机号
- senderAddress:上海 发件人地址
- recipient :jl 收件人
- recipientPhone:110 收件人手机号
- recipientAddress:郑州 收件人地址
{
"code": "S200",
"message": null,
"url": null,
"data": {
"id": 8,
"userId": 0,
"bizNo": 20180304001,
"sender": "lyx",
"senderPhone": "17621621705",
"senderAddress": "上海嘉定",
"recipient": "张三",
"recipientPhone": "110",
"recipientAddress": "郑州龙湖",
"deliveryNo": null,
"deliveryFee": null,
"deliveryCompany": null,
"orderStatus": 0,
"createTime": 1520148264258
}
}
获取快递单列表
- url: m.31xiaoyuan.com/deliveryOrder/getDOList
- method: post
- params:
- pageNo:1 当前页码
- pageSize:10 页面个数
- orderStatus:1 订单状态:0:全部,1:揽件,2:派送
{
"code": "S200",
"message": null,
"url": null,
"data": {
"pageNum": 1,
"pageSize": 1,
"size": 1,
"orderBy": null,
"startRow": 0,
"endRow": 0,
"total": 1,
"pages": 1,
"list": [
{
"id": 8,
"userId": 0,
"bizNo": 20180304001,
"sender": "lyx",
"senderPhone": "17621621705",
"senderAddress": "上海嘉定",
"recipient": "张三",
"recipientPhone": "110",
"recipientAddress": "郑州龙湖",
"deliveryNo": null,
"deliveryFee": null,
"deliveryCompany": null,
"orderStatus": 1,
"createTime": 1520148264000
}
],
"firstPage": 1,
"prePage": 0,
"nextPage": 0,
"lastPage": 1,
"isFirstPage": true,
"isLastPage": true,
"hasPreviousPage": false,
"hasNextPage": false,
"navigatePages": 8,
"navigatepageNums": [
1
]
}
}
更新快递单信息
- url: m.31xiaoyuan.com/deliveryOrder/updateDOInfo
- method: post
- params:
- id:8 快递单id
- deliveryNo:1234 快递单号
- deliveryCompany:中通快递 快递公司
{
"code": "S200",
"message": null,
"url": null,
"data": {
"id": 8,
"userId": 0,
"bizNo": 20180304001,
"sender": "lyx",
"senderPhone": "17621621705",
"senderAddress": "上海嘉定",
"recipient": "张三",
"recipientPhone": "110",
"recipientAddress": "郑州龙湖",
"deliveryNo": "1234",
"deliveryFee": null,
"deliveryCompany": "中通快递",
"orderStatus": 2,
"createTime": 1520148264000
}
}
电商
查看商品详情
- url: localhost:8080/item/getItemDetail
- method: post
- params:
{
"code": "S200",
"message": null,
"url": null,
"data": {
"id": 1,
"sellerId": 1,
"name": "iPhone x", //商品名称
"subName": "iphone", //商品副名称
"price": 10000, //市场价
"salePrice": 9000, //销售价
"stock": 100, //库存
"soldCount": 0, //销量
"coverPic": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg", //封面图片
"pics": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg", //图片集
"remark": "这是备注",
"shelves": 1,
"createTime": 1513767167000,
"status": 1 //上架
}
}
获取商品列表
- url: localhost:8080/item/getItemPage
- method: post
- params:
- pageNo:1 当前页码 必填
- pageSize:1 页码 必填
- menuId:1 菜单 必填
{
"code": "S200",
"message": null,
"url": null,
"data": {
"pageNum": 1,
"pageSize": 1,
"size": 1,
"orderBy": null,
"startRow": 0,
"endRow": 0,
"total": 1,
"pages": 1,
"list": [
{
"id": 1,
"sellerId": 1,
"name": "iPhone x",
"subName": "iphone",
"price": 10000,
"salePrice": 9000,
"stock": 100,
"soldCount": 0,
"coverPic": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg",
"pics": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg",
"remark": "这是备注",
"shelves": 1,
"createTime": 1513767167000,
"status": 1
}
],
"firstPage": 1,
"prePage": 0,
"nextPage": 0,
"lastPage": 1,
"isFirstPage": true,
"isLastPage": true,
"hasPreviousPage": false,
"hasNextPage": false,
"navigatePages": 8,
"navigatepageNums": [
1
]
}
}
下单
- url: localhost:8080/item/submitOrder
- method: post
- params:
- itemId:1 商品id 必填
- count:1.00 购买数量 必填
- addressId:1 收地地址id 必填
{
"code": "S200",
"message": null,
"url": null,
"data": {
"total": 9000, //需要支付的金额
"orderId": 3 //订单id
}
}
获取订单列表
- url: localhost:8080/order/getOrderPage
- method: post
- params:
- pageNo:1 当前页码 必填
- pageSize:1 页码 必填
{
"code": "S200",
"message": null,
"url": null,
"data": {
"pageNum": 1,
"pageSize": 2,
"size": 2,
"orderBy": null,
"startRow": 0,
"endRow": 1,
"total": 2,
"pages": 1,
"list": [
{
"orderItemList": [
{
"id": 1,
"orderId": 0,
"userId": 1,
"itemId": 1,
"itemName": "iPhone x",
"coverPic": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg",
"count": 1,
"price": 10000,
"salePrice": 9000,
"total": 9000,
"createTime": 1513854716000
}
],
"order": {
"id": 3,
"userId": 1,
"sellerId": 1,
"total": 9000,
"totalPrice": 10000,
"logisticsFee": 0,
"orderStatus": "WAIT_BUYER_PAY",
"payTime": null,
"payType": null,
"sender": null,
"sendPhone": null,
"sendAddress": null,
"recipient": "小张",
"recipientPhone": "135167700213",
"recipientAddress": "湖北",
"remark": null,
"createTime": 1513854716000
}
},
{
"orderItemList": [
{
"id": 2,
"orderId": 0,
"userId": 1,
"itemId": 1,
"itemName": "iPhone x",
"coverPic": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg",
"count": 1,
"price": 10000,
"salePrice": 9000,
"total": 9000,
"createTime": 1513855336000
}
],
"order": {
"id": 4,
"userId": 1,
"sellerId": 1,
"total": 9000,
"totalPrice": 10000,
"logisticsFee": 0,
"orderStatus": "WAIT_BUYER_PAY",
"payTime": null,
"payType": null,
"sender": null,
"sendPhone": null,
"sendAddress": null,
"recipient": "小张",
"recipientPhone": "135167700213",
"recipientAddress": "湖北",
"remark": null,
"createTime": 1513855336000
}
}
],
"firstPage": 1,
"prePage": 0,
"nextPage": 0,
"lastPage": 1,
"isFirstPage": true,
"isLastPage": true,
"hasPreviousPage": false,
"hasNextPage": false,
"navigatePages": 8,
"navigatepageNums": [
1
]
}
}
查看订单详情
- url: localhost:8080/order/getOrderDetail
- method: post
- params:
{
"code": "S200",
"message": null,
"url": null,
"data": {
"orderItemList": [
{
"id": 1,
"orderId": 0,
"userId": 1,
"itemId": 1,
"itemName": "iPhone x",
"coverPic": "http://img13.360buyimg.com/n0/jfs/t2122/79/1080684408/109906/74d02e4c/563ae892N0bae072a.jpg",
"count": 1,
"price": 10000,
"salePrice": 9000,
"total": 9000,
"createTime": 1513854716000
}
],
"order": {
"id": 3,
"userId": 1,
"sellerId": 1,
"total": 9000,
"totalPrice": 10000,
"logisticsFee": 0,
"orderStatus": "WAIT_BUYER_PAY",
"payTime": null,
"payType": null,
"sender": null,
"sendPhone": null,
"sendAddress": null,
"recipient": "小张",
"recipientPhone": "135167700213",
"recipientAddress": "湖北",
"remark": null,
"createTime": 1513854716000
}
}
}
确认收货
- url: localhost:8080/item/getItemPage
- method: post
- params:
{
"code": "S200",
"message": null,
"url": null,
"data": null
}
菜单列表
- url: localhost:8080/mall/admin/getMenuList4admin
- method: get