feat: 添加用户登录服务及JWT认证功能
refactor: 重构实体类并添加Lombok注解 docs: 更新数据库表结构文档 style: 清理无用代码并优化格式 fix: 修复用户详情服务中的联系方式更新方法 build: 更新pom.xml配置并添加Lombok插件 test: 添加用户登录测试用例 chore: 添加开发和生产环境配置文件
This commit is contained in:
@@ -7,36 +7,40 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 订单主表
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@Data // 自动生成getter、setter、toString、equals、hashCode方法
|
||||
@Builder // 自动生成builder模式的构造器
|
||||
@NoArgsConstructor // 自动生成无参构造器
|
||||
@AllArgsConstructor // 自动生成全参构造器
|
||||
@TableName("orders")
|
||||
public class Orders {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
private Long id; // 订单ID,主键,自增
|
||||
|
||||
private String orderNo;
|
||||
private Long userId;
|
||||
private Long shopId;
|
||||
private BigDecimal totalAmount;
|
||||
private BigDecimal actualAmount;
|
||||
private BigDecimal shippingFee;
|
||||
private Integer orderStatus; // 0: 待付款, 1: 待发货, 2: 待收货, 3: 已完成, 4: 已取消, 5: 已退款
|
||||
private String shippingAddress;
|
||||
private String receiverName;
|
||||
private String receiverPhone;
|
||||
private String orderNo; // 订单号
|
||||
private Long userId; // 用户ID,外键,关联users表
|
||||
private Long shopId; // 店铺ID,外键,关联shops表
|
||||
private BigDecimal totalAmount; // 总金额
|
||||
private BigDecimal actualAmount; // 实际支付金额
|
||||
private BigDecimal shippingFee; // 运费
|
||||
private Integer orderStatus; // 订单状态:0:待付款, 1:待发货, 2:待收货, 3:已完成, 4:已取消, 5:已退款
|
||||
private String shippingAddress; // 收货地址
|
||||
private String receiverName; // 收件人姓名
|
||||
private String receiverPhone; // 收件人电话
|
||||
private String paymentMethod; // 支付方式
|
||||
private Date paymentTime;
|
||||
private Date shippingTime;
|
||||
private Date deliveryTime;
|
||||
private Date completeTime;
|
||||
private String remark;
|
||||
private Date createdAt;
|
||||
private Date updatedAt;
|
||||
private Date paymentTime; // 支付时间
|
||||
private Date shippingTime; // 发货时间
|
||||
private Date deliveryTime; // 送达时间
|
||||
private Date completeTime; // 完成时间
|
||||
private String remark; // 备注
|
||||
private Date createdAt; // 创建时间
|
||||
private Date updatedAt; // 更新时间
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user