From 6839ee7de39e9e9ecf0e6692880f9bde73a33ed2 Mon Sep 17 00:00:00 2001 From: ziin Date: Mon, 2 Mar 2026 16:14:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(user):=20=E6=96=B0=E5=A2=9E=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=A7=AF=E5=88=86=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SystemUsers 实体添加 points 字段及注解 - SystemUsersVO 视图对象同步 points 字段 - 生产环境配置切换为线上数据库地址 --- .../com/yupi/springbootinit/model/entity/SystemUsers.java | 4 ++++ .../yupi/springbootinit/model/vo/user/SystemUsersVO.java | 1 + src/main/resources/application-prod.yml | 6 +++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yupi/springbootinit/model/entity/SystemUsers.java b/src/main/java/com/yupi/springbootinit/model/entity/SystemUsers.java index 4433bee..9478f06 100644 --- a/src/main/java/com/yupi/springbootinit/model/entity/SystemUsers.java +++ b/src/main/java/com/yupi/springbootinit/model/entity/SystemUsers.java @@ -195,4 +195,8 @@ public class SystemUsers { @TableField(value = "web_ai") @ApiModelProperty(value = "能否登录智能回复客户端") private Byte webAi; + + @TableField(value = "points") + @ApiModelProperty(value = "用户积分") + private Integer points; } \ No newline at end of file diff --git a/src/main/java/com/yupi/springbootinit/model/vo/user/SystemUsersVO.java b/src/main/java/com/yupi/springbootinit/model/vo/user/SystemUsersVO.java index 4237d2b..13ca75c 100644 --- a/src/main/java/com/yupi/springbootinit/model/vo/user/SystemUsersVO.java +++ b/src/main/java/com/yupi/springbootinit/model/vo/user/SystemUsersVO.java @@ -50,4 +50,5 @@ public class SystemUsersVO { private Byte webAi; + private Integer points; } \ No newline at end of file diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 05e599b..773ebf3 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -8,19 +8,19 @@ spring: # todo 需替换配置 datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3326/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true + url: jdbc:mysql://47.79.98.113:3326/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true username: root password: wfn53400 # Redis 配置 # todo 需替换配置 redis: database: 1 - host: localhost + host: 47.79.98.113 port: 16379 timeout: 5000 password: ezyPM2UQkPO8O6i8s9 rabbitmq: - host: localhost + host: 47.79.98.113 port: 5672 username: tkdata password: 6rARaRj8Z7UG3ahLzh