- 新增 ItemCategories、ItemComments、ItemFavorites、ItemImages、ItemLikes、ItemOffers、Orders、Role 和 UserRole 实体类 - 优化现有实体类 Deliveries 和 Items 的字段命名 - 更新 ProductController 中的方法参数main
parent
d1f18fb442
commit
d84bb530f7
@ -0,0 +1,10 @@
|
||||
package com.trading_platform.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ItemCategories {
|
||||
//商品类别表
|
||||
private int categoryId;//商品类别id
|
||||
private String categoryName;//商品类别名称
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.trading_platform.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ItemComments {
|
||||
//商品评论表
|
||||
private int commentId;//评论id
|
||||
private int userId;//用户id
|
||||
private int itemId;//商品id
|
||||
private String content;//评论内容
|
||||
private String commentAt;//评论时间
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.trading_platform.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ItemFavorites {
|
||||
// 商品收藏表
|
||||
private int favoriteId;// 收藏ID
|
||||
private int userId;// 用户ID
|
||||
private int itemId;// 商品ID
|
||||
private String createAt;// 收藏时间
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.trading_platform.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ItemImages {
|
||||
//商品图片表
|
||||
private int imageId;//图片ID
|
||||
private int itemId;//商品ID
|
||||
private String imagePath;//图片路径
|
||||
private String createAt;//创建时间
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.trading_platform.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ItemLikes {
|
||||
//商品点赞表
|
||||
private int likeId;//点赞ID
|
||||
private int userId;//用户ID
|
||||
private int itemId;//商品ID
|
||||
private String createAt;///点赞时间
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.trading_platform.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ItemOffers {
|
||||
//商品下架表
|
||||
private int offerId;//下架ID
|
||||
private int userId;//卖家ID
|
||||
private int itemId;//商品ID
|
||||
private String reason;//原因
|
||||
private String createAt;//创建时间
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.trading_platform.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Orders {
|
||||
// 订单表
|
||||
private int orderId;// 订单ID
|
||||
private int buyerId;// 买家ID
|
||||
private int itemId;// 商品ID
|
||||
private int sellId;// 卖家ID
|
||||
private String address;// 地址
|
||||
private double totalAmount;// 总价
|
||||
private String status;// 订单状态
|
||||
private String createAt;// 创建时间
|
||||
private String updateAt;// 更新时间
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.trading_platform.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Role {
|
||||
// 角色权限表
|
||||
private int roleId;// 角色ID
|
||||
private String roleName;// 角色名称
|
||||
private String remark;// 备注
|
||||
private String status;// 状态
|
||||
private String createTime;// 创建时间
|
||||
private String updateTime;// 更新时间
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.trading_platform.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UserRole {
|
||||
// 用户角色表
|
||||
private int userId;// 用户ID
|
||||
private int roleId;// 角色ID
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue