mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-06-09 11:39:58 +08:00
style(domain): 统一实体类字段命名规范并添加Sa-Token集成文档
- 统一SysMenu实体类字段命名从下划线风格改为驼峰命名 - 统一SysPermission实体类字段命名从下划线风格改为驼峰命名 - 统一SysRole实体类字段命名从下划线风格改为驼峰命名 - 统一SysRoleMenu实体类字段命名从下划线风格改为驼峰命名 - 统一SysRolePermission实体类字段命名从下划线风格改为驼峰命名 - 统一SysUserRole实体类字段命名从下划线风格改为驼峰命名 - 更新所有相关MyBatis映射文件中的属性对应关系 - 添加Sa-Token集成指南文档,包含RBAC权限管理实现说明 - 完善Sa-Token框架集成步骤、配置选项及使用示例
This commit is contained in:
@@ -33,7 +33,7 @@ public class SysMenu implements Serializable {
|
||||
/**
|
||||
* 父菜单ID(sys_menu.parent_id,树结构)
|
||||
*/
|
||||
private Long parent_id;
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 菜单类型(sys_menu.type),0=目录,1=菜单,2=按钮
|
||||
@@ -48,20 +48,20 @@ public class SysMenu implements Serializable {
|
||||
/**
|
||||
* 创建时间(sys_menu.create_time)
|
||||
*/
|
||||
private Date create_time;
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建人(sys_menu.create_by)
|
||||
*/
|
||||
private String create_by;
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 更新时间(sys_menu.update_time)
|
||||
*/
|
||||
private Date update_time;
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 更新人(sys_menu.update_by)
|
||||
*/
|
||||
private String update_by;
|
||||
private String updateBy;
|
||||
}
|
||||
@@ -33,25 +33,25 @@ public class SysPermission implements Serializable {
|
||||
/**
|
||||
* 所属菜单ID(sys_permission.menu_id)
|
||||
*/
|
||||
private Long menu_id;
|
||||
private Long menuId;
|
||||
|
||||
/**
|
||||
* 创建时间(sys_permission.create_time)
|
||||
*/
|
||||
private Date create_time;
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建人(sys_permission.create_by)
|
||||
*/
|
||||
private String create_by;
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 更新时间(sys_permission.update_time)
|
||||
*/
|
||||
private Date update_time;
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 更新人(sys_permission.update_by)
|
||||
*/
|
||||
private String update_by;
|
||||
private String updateBy;
|
||||
}
|
||||
@@ -38,21 +38,21 @@ public class SysRole implements Serializable {
|
||||
/**
|
||||
* 创建时间(sys_role.create_time)
|
||||
*/
|
||||
private Date create_time;
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建人(sys_role.create_by)
|
||||
*/
|
||||
private String create_by;
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 更新时间(sys_role.update_time)
|
||||
*/
|
||||
private Date update_time;
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 更新人(sys_role.update_by)
|
||||
*/
|
||||
private String update_by;
|
||||
private String updateBy;
|
||||
|
||||
}
|
||||
@@ -23,31 +23,31 @@ public class SysRoleMenu implements Serializable {
|
||||
/**
|
||||
* 角色ID(sys_role_menu.role_id)
|
||||
*/
|
||||
private Long role_id;
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
* 菜单ID(sys_role_menu.menu_id)
|
||||
*/
|
||||
private Long menu_id;
|
||||
private Long menuId;
|
||||
|
||||
/**
|
||||
* 创建时间(sys_role_menu.create_time)
|
||||
*/
|
||||
private Date create_time;
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建人(sys_role_menu.create_by)
|
||||
*/
|
||||
private String create_by;
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 更新时间(sys_role_menu.update_time)
|
||||
*/
|
||||
private Date update_time;
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 更新人(sys_role_menu.update_by)
|
||||
*/
|
||||
private String update_by;
|
||||
private String updateBy;
|
||||
|
||||
}
|
||||
@@ -23,31 +23,31 @@ public class SysRolePermission implements Serializable {
|
||||
/**
|
||||
* 角色ID(sys_role_permission.role_id)
|
||||
*/
|
||||
private Long role_id;
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
* 权限ID(sys_role_permission.permission_id)
|
||||
*/
|
||||
private Long permission_id;
|
||||
private Long permissionId;
|
||||
|
||||
/**
|
||||
* 创建时间(sys_role_permission.create_time)
|
||||
*/
|
||||
private Date create_time;
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建人(sys_role_permission.create_by)
|
||||
*/
|
||||
private String create_by;
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 更新时间(sys_role_permission.update_time)
|
||||
*/
|
||||
private Date update_time;
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 更新人(sys_role_permission.update_by)
|
||||
*/
|
||||
private String update_by;
|
||||
private String updateBy;
|
||||
|
||||
}
|
||||
@@ -24,31 +24,31 @@ public class SysUserRole implements Serializable {
|
||||
/**
|
||||
* 用户ID(sys_user_role.user_id)
|
||||
*/
|
||||
private Long user_id;
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 角色ID(sys_user_role.role_id)
|
||||
*/
|
||||
private Long role_id;
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
* 创建时间(sys_user_role.create_time)
|
||||
*/
|
||||
private Date create_time;
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建人(sys_user_role.create_by)
|
||||
*/
|
||||
private String create_by;
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 更新时间(sys_user_role.update_time)
|
||||
*/
|
||||
private Date update_time;
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 更新人(sys_user_role.update_by)
|
||||
*/
|
||||
private String update_by;
|
||||
private String updateBy;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user