# sell
慕课网springboot企业微信点餐系统<br>
## API
### 商品列表
```
GET /sell/buyer/product/list
```
参数
```
无
```
返回
```
{
"code": 0,
"msg": "成功",
"data": [
{
"name": "热榜",
"type": 1,
"foods": [
{
"id": "123456",
"name": "皮蛋粥",
"price": 1.2,
"description": "好吃的皮蛋粥",
"icon": "http://xxx.com",
}
]
},
{
"name": "好吃的",
"type": 2,
"foods": [
{
"id": "123457",
"name": "慕斯蛋糕",
"price": 10.9,
"description": "美味爽口",
"icon": "http://xxx.com",
}
]
}
]
}
```
### 创建订单
```
POST /sell/buyer/order/create
```
参数
```
name: "张三"
phone: "18868822111"
address: "慕课网总部"
openid: "ew3euwhd7sjw9diwkq" //用户的微信openid
items: [{
productId: "1423113435324",
productQuantity: 2 //购买数量
}]
```
返回
```
{
"code": 0,
"msg": "成功",
"data": {
"orderId": "147283992738221"
}
}
```
### 订单列表
```
GET /sell/buyer/order/list
```
参数
```
openid: 18eu2jwk2kse3r42e2e
page: 0 //从第0页开始
size: 10
```
返回
```
{
"code": 0,
"msg": "成功",
"data": [
{
"orderId": "161873371171128075",
"buyerName": "张三",
"buyerPhone": "18868877111",
"buyerAddress": "慕课网总部",
"buyerOpenid": "18eu2jwk2kse3r42e2e",
"orderAmount": 0,
"orderStatus": 0,
"payStatus": 0,
"createTime": 1490171219,
"updateTime": 1490171219,
"orderDetailList": null
},
{
"orderId": "161873371171128076",
"buyerName": "张三",
"buyerPhone": "18868877111",
"buyerAddress": "慕课网总部",
"buyerOpenid": "18eu2jwk2kse3r42e2e",
"orderAmount": 0,
"orderStatus": 0,
"payStatus": 0,
"createTime": 1490171219,
"updateTime": 1490171219,
"orderDetailList": null
}]
}
```
### 查询订单详情
```
GET /sell/buyer/order/detail
```
参数
```
openid: 18eu2jwk2kse3r42e2e
orderId: 161899085773669363
```
返回
```
{
"code": 0,
"msg": "成功",
"data": {
"orderId": "161899085773669363",
"buyerName": "李四",
"buyerPhone": "18868877111",
"buyerAddress": "慕课网总部",
"buyerOpenid": "18eu2jwk2kse3r42e2e",
"orderAmount": 18,
"orderStatus": 0,
"payStatus": 0,
"createTime": 1490177352,
"updateTime": 1490177352,
"orderDetailList": [
{
"detailId": "161899085974995851",
"orderId": "161899085773669363",
"productId": "157875196362360019",
"productName": "招牌奶茶",
"productPrice": 9,
"productQuantity": 2,
"productIcon": "http://xxx.com",
"productImage": "http://xxx.com"
}
]
}
}
```
### 取消订单
```
POST /sell/buyer/order/cancel
```
参数
```
openid: 18eu2jwk2kse3r42e2e
orderId: 161899085773669363
```
返回
```
{
"code": 0,
"msg": "成功",
"data": null
}
```
### 获取openid
```
重定向到 /sell/wechat/authorize
```
参数
```
returnUrl: http://xxx.com/abc //【必填】
```
返回
```
http://xxx.com/abc?openid=oZxSYw5ldcxv6H0EU67GgSXOUrVg
```
### 支付订单
```
重定向 /sell/pay/create
```
参数
```
orderId: 161899085773669363
returnUrl: http://xxx.com/abc/order/161899085773669363
```
返回
```
http://xxx.com/abc/order/161899085773669363
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Spring Boot企业微信点餐系统.zip (232个子文件)
.babelrc 98B
app.fc95ecb15d823cfb3172a7b93aaa741d.css 226KB
style.css 6KB
reset.css 2KB
reset.css 2KB
.DS_Store 6KB
.editorconfig 147B
sell-icon.eot 2KB
.eslintignore 23B
list.ftl 5KB
list.ftl 4KB
index.ftl 3KB
detail.ftl 3KB
list.ftl 2KB
nav.ftl 1KB
create.ftl 1KB
index.ftl 1KB
success.ftl 740B
error.ftl 736B
header.ftl 237B
success.ftl 107B
.gitkeep 0B
pay.html 1KB
index.html 616B
index.html 375B
sell_fe_buyer.iml 458B
OrderServiceImpl.java 9KB
SellerProductController.java 5KB
SellerOrderController.java 4KB
PayServiceImpl.java 4KB
ProductServiceImpl.java 3KB
OrderServiceImplTest.java 3KB
BuyerOrderController.java 3KB
WechatController.java 3KB
SellerCategoryController.java 3KB
SellerUserController.java 3KB
BuyerProductController.java 3KB
ProductServiceImplTest.java 2KB
SellerAuthorizeAspect.java 2KB
PushMessageServiceImpl.java 2KB
ProductCategoryRepositoryTest.java 2KB
PayController.java 2KB
OrderDTO.java 2KB
CookieUtil.java 2KB
BuyerServiceImpl.java 2KB
OrderMasterRepositoryTest.java 1KB
CategoryServiceImplTest.java 1KB
WebSocket.java 1KB
ProductInfoRepositoryTest.java 1KB
OrderDetailRepositoryTest.java 1KB
OrderForm2OrderDTOConverter.java 1KB
ResultEnum.java 1KB
WechatPayConfig.java 1KB
ProductInfo.java 1KB
WechatOpenConfig.java 1KB
SellerInfoRepositoryTest.java 1KB
OrderMaster.java 1KB
WechatMpConfig.java 1KB
CategoryServiceImpl.java 1KB
WeixinController.java 1011B
WechatAccountConfig.java 977B
PayServiceImplTest.java 967B
SellExceptionHandler.java 931B
SellerServiceImplTest.java 815B
ProductCategory.java 793B
ProductService.java 793B
PushMessageServiceImplTest.java 782B
OrderService.java 733B
OrderForm.java 699B
OrderMaster2OrderDTOConverter.java 683B
LoggerTest.java 677B
OrderDetail.java 649B
Date2LongSerializer.java 638B
ResultVOUtil.java 620B
SellerServiceImpl.java 567B
ProjectUrlConfig.java 545B
ProductInfoVO.java 524B
ProductForm.java 509B
MathUtil.java 458B
SellException.java 434B
OrderMasterRepository.java 428B
KeyUtil.java 428B
ProductVO.java 411B
CategoryService.java 406B
WebSocketConfig.java 406B
OrderStatusEnum.java 400B
EnumUtil.java 386B
CartDTO.java 385B
ProductStatusEnum.java 385B
PayStatusEnum.java 379B
JsonUtil.java 378B
ProductCategoryRepository.java 371B
PayService.java 362B
ProductInfoRepository.java 344B
OrderDetailRepository.java 331B
SellApplication.java 329B
SellApplicationTests.java 324B
SellerInfo.java 315B
BuyerService.java 297B
SellerService.java 297B
共 232 条
- 1
- 2
- 3
资源评论
白如意i
- 粉丝: 6650
- 资源: 3230
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 本科毕业设计基于C# wpf人脸识别的考勤系统的设计与实现源码.zip
- 基于Ruoyi+uniapp实现学生考勤系统 学生考勤源码+项目说明.zip
- feae6bc968ca68a099455d8b8a8dea35
- 基于Pytorch训练CIRAR10上分类算法.zip
- Pytorch-pytorch深度学习教程之Tensorboard.zip
- 基于C++和Python开发yolov8-face作为人脸检测器dlib作为人脸识别器的人脸考勤系统源码+项目说明.zip
- Pytorch-pytorch深度学习教程之变分自动编码器.zip
- Pytorch-pytorch深度学习教程之神经风格迁移.zip
- Pytorch-pytorch深度学习教程之深度残差网络.zip
- Pytorch-pytorch深度学习教程之循环神经网络.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功