feat: 添加用户登录服务及JWT认证功能
refactor: 重构实体类并添加Lombok注解 docs: 更新数据库表结构文档 style: 清理无用代码并优化格式 fix: 修复用户详情服务中的联系方式更新方法 build: 更新pom.xml配置并添加Lombok插件 test: 添加用户登录测试用例 chore: 添加开发和生产环境配置文件
This commit is contained in:
@@ -7,35 +7,38 @@ 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("refunds")
|
||||
public class Refunds {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
private Long id; // 退款ID,主键,自增
|
||||
|
||||
private String refundNo;
|
||||
private Long orderId;
|
||||
private Long orderItemId;
|
||||
private Long userId;
|
||||
private Long shopId;
|
||||
private BigDecimal refundAmount;
|
||||
private String refundReason;
|
||||
private String refundNo; // 退款单号
|
||||
private Long orderId; // 订单ID,外键,关联orders表
|
||||
private Long orderItemId; // 订单项ID,外键,关联order_items表
|
||||
private Long userId; // 用户ID,外键,关联users表
|
||||
private Long shopId; // 店铺ID,外键,关联shops表
|
||||
private BigDecimal refundAmount; // 退款金额
|
||||
private String refundReason; // 退款原因
|
||||
private String refundType; // 退款类型
|
||||
private Integer refundStatus; // 0: 申请中, 1: 退款成功, 2: 退款失败, 3: 已拒绝
|
||||
private String refundAccount;
|
||||
private String transactionId;
|
||||
private Date applyTime;
|
||||
private Date processTime;
|
||||
private String processRemark;
|
||||
private Date createdAt;
|
||||
private Date updatedAt;
|
||||
private Integer refundStatus; // 退款状态:0:申请中, 1:退款成功, 2:退款失败, 3:已拒绝
|
||||
private String refundAccount; // 退款账户
|
||||
private String transactionId; // 交易ID
|
||||
private Date applyTime; // 申请时间
|
||||
private Date processTime; // 处理时间
|
||||
private String processRemark; // 处理备注
|
||||
private Date createdAt; // 创建时间
|
||||
private Date updatedAt; // 更新时间
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user