111
This commit is contained in:
parent
db5d869f43
commit
c6a24e287a
@ -12,6 +12,8 @@ import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
import java.util.TimeZone;
|
||||
|
||||
/**
|
||||
* SmartAdmin 项目启动类
|
||||
*
|
||||
@ -33,6 +35,10 @@ public class AdminApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication application = new SpringApplication(AdminApplication.class);
|
||||
|
||||
// 设置 JVM 全局默认时区(建议与数据库一致,比如 "Asia/Shanghai")
|
||||
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
|
||||
|
||||
// 添加 日志监听器,使 log4j2-spring.xml 可以间接读取到配置文件的属性
|
||||
application.addListeners(new LogVariableListener(), new Ip2RegionListener());
|
||||
application.run(args);
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
package net.lab1024.sa.admin.module.business.caseClinicalArticle.domain.form;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 用户评论-临床病例-文章 更新删除状态表单
|
||||
*
|
||||
* @Author xing
|
||||
* @Date 2025-08-12 09:11:31
|
||||
* @Copyright gdxz
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class UserCommentClinicalArticleUpdateDeleteStatusForm {
|
||||
|
||||
@Schema(description = "评论ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "评论ID 不能为空")
|
||||
private Long commentId;
|
||||
|
||||
@Schema(description = "删除状态(0:否 1:是)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "删除状态 不能为空")
|
||||
private Integer deleteStatus;
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package net.lab1024.sa.admin.module.business.caseClinicalVideo.domain.form;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 用户评论-临床病例-视频 更新删除状态表单
|
||||
*
|
||||
* @Author xing
|
||||
* @Date 2025-08-12 09:12:42
|
||||
* @Copyright gdxz
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class UserCommentClinicalVideoUpdateDeleteStatusForm {
|
||||
|
||||
@Schema(description = "评论ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "评论ID 不能为空")
|
||||
private Long commentId;
|
||||
|
||||
@Schema(description = "删除状态(0:否 1:是)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "删除状态 不能为空")
|
||||
private Integer deleteStatus;
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package net.lab1024.sa.admin.module.business.caseExchange.domain.form;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 用户评论-病例交流 更新删除状态表单
|
||||
*
|
||||
* @Author xing
|
||||
* @Date 2025-08-12 09:13:30
|
||||
* @Copyright gdxz
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class UserCommentExchangeUpdateDeleteStatusForm {
|
||||
|
||||
@Schema(description = "评论ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "评论ID 不能为空")
|
||||
private Long commentId;
|
||||
|
||||
@Schema(description = "删除状态(0:否 1:是)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "删除状态 不能为空")
|
||||
private Integer deleteStatus;
|
||||
}
|
||||
@ -146,7 +146,7 @@ sa-token:
|
||||
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
|
||||
active-timeout: -1
|
||||
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
|
||||
is-concurrent: false
|
||||
is-concurrent: true
|
||||
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)(jwt模式下恒false)
|
||||
is-share: false
|
||||
# token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)(jwt模式下无用)
|
||||
|
||||
@ -23,17 +23,22 @@ spring:
|
||||
# redis 连接池配置信息
|
||||
data:
|
||||
redis:
|
||||
database: 1
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
password:
|
||||
database: 9
|
||||
host: '139.155.127.177'
|
||||
port: 30002
|
||||
password: gdxz2022&dj.
|
||||
timeout: 10000ms
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
max-idle: 50
|
||||
max-active: 5
|
||||
min-idle: 1
|
||||
max-idle: 3
|
||||
max-wait: 30000ms
|
||||
prod-redis:
|
||||
database: 10
|
||||
host: '139.155.127.177'
|
||||
port: 30002
|
||||
password: gdxz2022&dj.
|
||||
|
||||
# 邮件,置以SSL的方式发送, 这个需要使用这种方式并且端口是465
|
||||
# 已禁用邮件功能,避免认证失败错误
|
||||
@ -83,16 +88,16 @@ server:
|
||||
# 文件上传 配置
|
||||
file:
|
||||
storage:
|
||||
mode: local
|
||||
mode: cloud
|
||||
local:
|
||||
upload-path: /home/smart_admin_v3/upload/ #文件上传目录
|
||||
url-prefix:
|
||||
cloud:
|
||||
region: oss-cn-hangzhou
|
||||
endpoint: oss-cn-hangzhou.aliyuncs.com
|
||||
bucket-name: 1024lab-smart-admin
|
||||
access-key:
|
||||
secret-key:
|
||||
region: oss-cn-beijing
|
||||
endpoint: oss-cn-beijing.aliyuncs.com
|
||||
bucket-name: caseplatform
|
||||
access-key: LTAI5tKmFrVCghcxX7yHyGhm
|
||||
secret-key: q1aiIZCJJuf92YbKk2cSXnPES4zx26
|
||||
url-prefix: https://${file.storage.cloud.bucket-name}.${file.storage.cloud.endpoint}/
|
||||
private-url-expire-seconds: 3600
|
||||
|
||||
@ -141,7 +146,7 @@ sa-token:
|
||||
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
|
||||
active-timeout: -1
|
||||
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
|
||||
is-concurrent: false
|
||||
is-concurrent: true
|
||||
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)(jwt模式下恒false)
|
||||
is-share: false
|
||||
# token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)(jwt模式下无用)
|
||||
@ -168,4 +173,19 @@ smart:
|
||||
# 数据库配置检测-开关 默认开启 可选(作用是固定间隔读取数据库配置更新任务,关闭后只能重启服务或通过接口修改定时任务,建议开启)
|
||||
db-refresh-enabled: true
|
||||
# 数据库配置检测-执行间隔 默认120秒 可选
|
||||
db-refresh-interval: 60
|
||||
db-refresh-interval: 60
|
||||
|
||||
# [app]
|
||||
app:
|
||||
apiUrl: https://dev-wx.igandan.com
|
||||
secretKey: nmBCF@hEK6eN&h03dYUin@AU3%bMf%$O
|
||||
imagePrefix: https://dev-doc.igandan.com/app
|
||||
platform: case-storge
|
||||
platformPointAccount: GDXZadmin01
|
||||
access-token: XUUHml5iQ9mlFsa8QqOwyBrLI2nGGGxJ
|
||||
|
||||
# 微信
|
||||
wechat:
|
||||
miniapp:
|
||||
appid: wx152ad667d5075f27
|
||||
secret: 0b86e725d8f372fa05dad95a91d41c72
|
||||
Loading…
x
Reference in New Issue
Block a user