feat: 添加用户登录服务及JWT认证功能
refactor: 重构实体类并添加Lombok注解 docs: 更新数据库表结构文档 style: 清理无用代码并优化格式 fix: 修复用户详情服务中的联系方式更新方法 build: 更新pom.xml配置并添加Lombok插件 test: 添加用户登录测试用例 chore: 添加开发和生产环境配置文件
This commit is contained in:
@@ -6,25 +6,29 @@ 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("permissions")
|
||||
public class Permissions {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
private Long id; // 权限ID,主键,自增
|
||||
|
||||
private String permissionName;
|
||||
private String permissionCode;
|
||||
private String description;
|
||||
private String module;
|
||||
private Integer status; // 0: 禁用, 1: 启用
|
||||
private Date createdAt;
|
||||
private Date updatedAt;
|
||||
private String permissionName; // 权限名称
|
||||
private String permissionCode; // 权限编码
|
||||
private String description; // 权限描述
|
||||
private String module; // 所属模块
|
||||
private Integer status; // 状态:0:禁用, 1:启用
|
||||
private Date createdAt; // 创建时间
|
||||
private Date updatedAt; // 更新时间
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user