📡 API 基础信息
| 基础地址 | https://apibnh.hywbxnys168.com/api/v1 |
| 管理后台 | https://adminn.hywbxnys168.com/ |
| 小程序 appid | wx51a6872746b4923c |
| 鉴权方式 | Authorization: Bearer {token} |
| 管理员账号 | 13800000000 / admin123 |
🔐 认证模块
| 方法 | 接口路径 | 说明 | 状态 |
| GET | /auth/login | 账号密码登录 | ✅ |
| POST | /auth/wx-login | 微信登录 | ✅ |
| POST | /auth/register | 注册 | ✅ |
| POST | /auth/bind-phone | 绑定手机 | ✅ |
📦 商品模块(Product → wholesale/public 别名)
| 方法 | 前端路径 | 后端路径 | 状态 |
| GET | /public/goods/list | /product/list | ✅ |
| GET | /wholesale/goods/list | /product/list | ✅ |
| GET | /wholesale/categories | /product/category/tree | ✅ |
| POST | /product/up-publish | /product/up-publish | ✅ |
| PUT | /product/{id} | /product/{id} | ✅ |
| DEL | /product/{id} | /product/{id} | ✅ |
📋 订单模块(Order → wholesale/miniprogram 别名)
| 方法 | 前端路径 | 后端路径 | 状态 |
| GET | /wholesale/order/list | /order/list | ✅ |
| GET | /miniprogram/order/** | /order/** | ✅ |
🏪 站点模块(Site → station 别名)
| 方法 | 前端路径 | 后端路径 | 状态 |
| GET | /station/list | /site/list | ✅ |
| GET | /site/list | /site/list | ✅ |
| POST | /site/create | /site/create | ✅ |
| PUT | /site/{id} | /site/{id} | ✅ |
🍽️ 乡宴模块(Banquet)
| 方法 | 前端路径 | 后端路径 | 状态 |
| GET | /banquet/types | /banquet/types | ✅ |
| GET | /banquet/service/items | /banquet/service/items | ✅ |
| GET | /banquet/rental/items | /banquet/rental/items | ✅ |
⚙️ 微服务架构
| 服务 | 端口 | JAR | 状态 |
| bangnong-gateway | 8080 | gateway-1.0.0-SNAPSHOT.jar | ✅ 运行中 |
| bangnong-auth | 8081 | auth-1.0.0-SNAPSHOT.jar | ✅ 运行中 |
| bangnong-system | 8082 | system-1.0.0-SNAPSHOT.jar | ✅ 运行中 |
| bangnong-product | 8083 | product-1.0.0-SNAPSHOT.jar | ✅ 运行中 |
| bangnong-order | 8084 | order-1.0.0-SNAPSHOT.jar | ✅ 运行中 |
| bangnong-banquet | 8088 | banquet-1.0.0-SNAPSHOT.jar | ✅ 运行中 |