martin 3 年之前
父节点
当前提交
e5c499235c

+ 15 - 6
simulation-oauth-server/pom.xml

@@ -73,18 +73,27 @@
             <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
         </dependency>
         <!-- nacos - 结束 -->
-        <!-- api-common -->
+        <!-- 基础 -->
         <dependency>
-            <groupId>com.css</groupId>
-            <artifactId>api-common</artifactId>
-            <version>${project.version}</version>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-openfeign</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-loadbalancer</artifactId>
         </dependency>
-
-        <!-- 基础 -->
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-web</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-validation</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-actuator</artifactId>

+ 1 - 1
simulation-oauth-server/src/main/java/com/css/simulation/oauth/server/cofiguration/security/MyUserDetailsService.java

@@ -1,8 +1,8 @@
 package com.css.simulation.oauth.server.cofiguration.security;
 
 
-import api.common.pojo.po.UserPO;
 import com.css.simulation.oauth.server.mapper.UserMapper;
+import com.css.simulation.oauth.server.pojo.po.UserPO;
 import org.springframework.security.core.userdetails.UserDetails;
 import org.springframework.security.core.userdetails.UserDetailsService;
 import org.springframework.security.core.userdetails.UsernameNotFoundException;

+ 1 - 1
simulation-oauth-server/src/main/java/com/css/simulation/oauth/server/mapper/UserMapper.java

@@ -1,7 +1,7 @@
 package com.css.simulation.oauth.server.mapper;
 
 
-import api.common.pojo.po.UserPO;
+import com.css.simulation.oauth.server.pojo.po.UserPO;
 import org.apache.ibatis.annotations.*;
 import org.apache.ibatis.type.JdbcType;
 

+ 23 - 0
simulation-oauth-server/src/main/java/com/css/simulation/oauth/server/pojo/po/UserPO.java

@@ -0,0 +1,23 @@
+package com.css.simulation.oauth.server.pojo.po;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+
+/**
+ * 用户。
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+public class UserPO implements Serializable {
+
+    private String id;              // 用户主键(唯一)
+    private String username;        // 登录用户名
+    private String nickname;        // 用户昵称,用于显示
+    private String password;        // 密码(加密)
+    private String isDeleted = "0";
+
+}