111
This commit is contained in:
@@ -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);
|
||||
|
||||
+25
@@ -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;
|
||||
}
|
||||
+25
@@ -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;
|
||||
}
|
||||
+25
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user