SpringBoot企业微信点餐系统

SpringBoot企业微信点餐系统

当买家端买了东西 卖家端会有音乐提示 然后窗口上面提示有新的订单。这里运用了websoceket./

SpringBoot企业微信点餐系统
SpringBoot企业微信点餐系统
SpringBoot企业微信点餐系统
SpringBoot企业微信点餐系统

SpringBoot企业微信点餐系统

使用单元测试

SpringBoot企业微信点餐系统

SpringBoot企业微信点餐系统
SpringBoot企业微信点餐系统

SpringBoot企业微信点餐系统

SpringBoot企业微信点餐系统

虚拟机说明文档

VirtualBox-5.1.22
虚拟机系统 centos7.3
账号 root
密码 123456

包括软件

  • jdk 1.8.0_111
  • nginx 1.11.7
  • mysql 5.7.17
  • redis 3.2.8
jdk
  • 路径 /usr/local/jdk1.8.0_111
nginx
  • 路径 /usr/local/nginx
  • 启动 nginx
  • 重启 nginx -s reload
mysql
  • 配置 /etc/my.conf
  • 账号 root
  • 密码 123456
  • 端口 3306
  • 启动 systemctl start mysqld
  • 停止 systemctl stop mysqld
redis
  • 路径 /usr/local/redis
  • 配置 /etc/reis.conf
  • 端口 6379
  • 密码 123456
  • 启动 systemctl start redis
  • 停止 systemctl stop redis
tomcat
  • 路径 /usr/local/tomcat
  • 启动 systemctl start tomcat
  • 停止 systemctl stop tomcat

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
}

重定向到 /sell/wechat/authorize

returnUrl: http://xxx.com/abc //【必填】

http://xxx.com/abcpenid=oZxSYw5ldcxv6H0EU67GgSXOUrVg

SpringBoot企业微信点餐系统

SpringBoot企业微信点餐系统

文章知识点与官方知识档案匹配,可进一步学习相关知识云原生入门技能树首页概览8592 人正在系统学习中

来源:whoauSiSi

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年5月9日
下一篇 2020年5月9日

相关推荐