Gaokun Wang 4 months ago
parent
commit
2eefa3d0b8

+ 3 - 2
eco-nexus-core/auth-biz/src/main/java/org/eco/vip/auth/domain/dept/Dept.java

@@ -19,8 +19,9 @@ import java.util.ArrayList;
 import java.util.List;
 
 /**
- * @author GaoKunW
  * @description Dept
+ *
+ * @author GaoKunW
  * @date 2025/3/10 20:57
  */
 @Data
@@ -31,7 +32,7 @@ public class Dept extends BaseEntity {
      * 部门ID
      */
     @Id
-    private Long deptId;
+    private Long id;
 
     /**
      * 父部门ID

+ 1 - 1
eco-nexus-core/auth-biz/src/main/java/org/eco/vip/auth/domain/user/User.java

@@ -31,7 +31,7 @@ public class User extends BaseEntity {
      * 用户ID
      */
     @Id
-    private Long userId;
+    private Long id;
 
     /**
      * 部门ID

+ 2 - 2
eco-start/src/main/resources/db/mysql/V1_0_0_1__sys-init-ddl.sql

@@ -1,6 +1,6 @@
 create table system_user_t
 (
-    user_id      bigint              not null comment '用户ID'
+    id      bigint                   not null comment '用户ID'
         primary key,
     dept_id      bigint              null comment '部门ID',
     account      varchar(30)         null comment '用户账号',
@@ -31,7 +31,7 @@ create table system_user_t
 
 create table system_dept_t
 (
-    dept_id     bigint              not null comment '部门ID'
+    id     bigint                   not null comment '部门ID'
         primary key,
     parent_id   bigint              null comment '父部门ID',
     dept_name   varchar(30)         null comment '部门名称',