-
Vue
-
Element UI
-
JWT
- Spring
- Spring MVC
- Mybatis
- RestFul 接口
按照销量排序
轮播销量前五
- 头像
- 昵称
- 我的订单
- 购物车
- 我的钱包
- LOGO
- Hi~欢迎来到GFTB
- 登录注册
轮播销量五到二十五
编辑个人资料
加入购物车的物品
历史购物记录
商品详情
- RUD用户
- RUD商品
- RUD订单
- RUD钱包
/api
响应参数 | 备注 |
---|---|
code | 0=Fail, 1=Success |
Msg | String |
GET
/account/:token
POST
/account
DELETE
/account
POST
/user
PATCH
/user/:userId
GET
/user/:userId
GET
/user
DELETE
/user/:id
POST
/commodity
GET
/commodity/:commodityId
PATCH
/commodity/:commodityId
DELETE
/commodity/:commodityId
购物车 Shopping
POST
/shopping
GET
/shopping/:userId
DELETE
/shopping/:shoppingId
POST
/oder
GET
/oder/:oderId
PATCH
/oder/:oderId
DELETE
/oder/:oderId
GET
/money
字段 | 类型 | 其他 |
---|---|---|
userId | int | Primary Key Unique Required |
username | varchar(20) | Required |
password | varchar(30) | Required |
role | int | Required defalut 0 |
address | varchar(50) | |
money | float | defalut 0 |
createDate | timestamp | Required |
updataDate | timestamp | Required |
字段 | 类型 | 其他 |
---|---|---|
commodityId | int | Primary Key Unique Required |
commodityName | varchar(30) | Required |
commodityPic | varchar(200) | |
commodityTag | varchar(8) | |
commodityDetail | text | |
commodityPrice | float | |
commodityShow | int | defalut 1 |
字段 | 类型 | 其他 |
---|---|---|
shoppingId | int | Primary Key Unique Required |
commodityId | int | Required |
userId | int | Required |
字段 | 类型 | 其他 |
---|---|---|
oderId | int | Primary Key Unique Required |
commodityId | int | Required |
customerId | int | Required |
oderNumber | int | Required |
oderAddress | varchar(50) | Required |
oderStatus | int | 0已取消 1未发货 2已发货 3已收货 |
oderShow | int | Required defalut 1 |
createDate | timestamp | Required |
updataDate | timestamp | Required |