Files
cuimengxue/README.md
2026-02-09 09:51:14 -08:00

80 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 萌贝母婴商城Spring Boot + Vue + Arco Design + MySQL
基于《崔梦雪-开题报告修改版》实现的三端基础版母婴商城,包含顾客端、商家端、管理员端核心功能。
## 1. 技术栈
- 后端: Spring Boot 3 + Spring Web + Spring Data JPA
- 前端: Vue3 + Vite + Arco Design
- 数据库: MySQL 8
## 2. 功能覆盖
### 顾客
- 登录注册
- 搜索/浏览商品
- 购物车管理(加购、移除、结算)
- 下单购买
- 收藏管理
- 评价商品
- 订单管理(退款申请、查看物流、修改地址、删除订单)
- 个人信息修改
### 商家
- 数据概览(订单量、销售额、热销商品)
- 商品管理(增删改查)
- 订单管理(查看、发货、退款处理)
- 评价查看
- 物流查看
- 库存记录查看/删除
- 个人信息修改(通过 `/api/auth/me`
### 管理员
- 数据概览
- 订单管理
- 审核管理(商家入驻审核)
- 用户管理
- 轮播图管理
- 个人信息修改(通过 `/api/auth/me`
## 3. 目录结构
- `/Users/apple/code/bs/mying/backend` 后端工程
- `/Users/apple/code/bs/mying/frontend` 前端工程
- `/Users/apple/code/bs/mying/sql/init.sql` 数据库初始化脚本
## 4. 启动步骤
1. 创建并初始化数据库:
- 执行 `/Users/apple/code/bs/mying/sql/init.sql`
2. 修改后端数据库配置:
- 文件: `/Users/apple/code/bs/mying/backend/src/main/resources/application.yml`
3. 启动后端:
```bash
cd /Users/apple/code/bs/mying/backend
mvn spring-boot:run
```
4. 启动前端:
```bash
cd /Users/apple/code/bs/mying/frontend
npm install
npm run dev
```
5. 访问前端:
- `http://localhost:5173`
## 5. 默认账号
- 管理员: `admin / 123456`
- 商家: `merchant1 / 123456`
- 顾客: `customer1 / 123456`
## 6. 主要接口前缀
- `/api/auth` 登录注册与个人资料
- `/api/public` 商品与轮播公开接口
- `/api/customer` 顾客接口
- `/api/merchant` 商家接口
- `/api/admin` 管理员接口