mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-14 06:33:47 +08:00
v2.0
This commit is contained in:
@@ -153,7 +153,7 @@ public class DataSourceConfig {
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Conditional(SystemEnvironmentConfig.class)
|
||||
// @Conditional(SystemEnvironmentConfig.class)
|
||||
@Bean
|
||||
public ServletRegistrationBean<StatViewServlet> druidServlet() {
|
||||
ServletRegistrationBean<StatViewServlet> servletRegistrationBean = new ServletRegistrationBean<>();
|
||||
|
||||
@@ -11,7 +11,7 @@ package net.lab1024.sa.common.constant;
|
||||
*/
|
||||
public class ReloadConst {
|
||||
|
||||
public static final String CONFIG_RELOAD = "config";
|
||||
public static final String CONFIG_RELOAD = "system_config";
|
||||
|
||||
public static final String CACHE_SERVICE = "cache_service";
|
||||
|
||||
|
||||
@@ -21,35 +21,35 @@ import java.time.LocalDateTime;
|
||||
public class CodeBasic {
|
||||
|
||||
@ApiModelProperty("业务名称")
|
||||
@NotBlank(message = "业务名称 不能为空")
|
||||
@NotBlank(message = "1.基础命名 基础命名 不能为空")
|
||||
private String moduleName;
|
||||
|
||||
@ApiModelProperty("java包名")
|
||||
@NotBlank(message = "java包名 不能为空")
|
||||
@NotBlank(message = "1.基础命名 java包名 不能为空")
|
||||
private String javaPackageName;
|
||||
|
||||
@ApiModelProperty("注释")
|
||||
@NotBlank(message = "注释 不能为空")
|
||||
@NotBlank(message = "1.基础命名 注释 不能为空")
|
||||
private String description;
|
||||
|
||||
@ApiModelProperty("前端作者")
|
||||
@NotBlank(message = "前端作者 不能为空")
|
||||
@NotBlank(message = "1.基础命名 前端作者 不能为空")
|
||||
private String frontAuthor;
|
||||
|
||||
@ApiModelProperty("前端时间")
|
||||
@NotNull(message = "前端时间 不能为空")
|
||||
@NotNull(message = "1.基础命名 前端时间 不能为空")
|
||||
private LocalDateTime frontDate;
|
||||
|
||||
@ApiModelProperty("后端作者")
|
||||
@NotBlank(message = "后端作者 不能为空")
|
||||
@NotBlank(message = "1.基础命名 后端作者 不能为空")
|
||||
private String backendAuthor;
|
||||
|
||||
@ApiModelProperty("后端时间")
|
||||
@NotNull(message = "后端时间 不能为空")
|
||||
@NotNull(message = "1.基础命名 后端时间 不能为空")
|
||||
private LocalDateTime backendDate;
|
||||
|
||||
@ApiModelProperty("版权信息")
|
||||
@NotNull(message = "版权信息 不能为空")
|
||||
@NotNull(message = "1.基础命名 版权信息 不能为空")
|
||||
private String copyright;
|
||||
|
||||
}
|
||||
|
||||
@@ -23,15 +23,15 @@ import javax.validation.constraints.NotNull;
|
||||
public class CodeDelete {
|
||||
|
||||
@ApiModelProperty("是否支持删除 ")
|
||||
@NotNull(message = "是否支持删除 不能为空")
|
||||
@NotNull(message = "4.删除 是否支持删除 不能为空")
|
||||
private Boolean isSupportDelete;
|
||||
|
||||
@ApiModelProperty("是否为物理删除")
|
||||
@NotNull(message = "是否为物理删除 不能为空")
|
||||
@NotNull(message = "4.删除 是否为物理删除 不能为空")
|
||||
private Boolean isPhysicallyDeleted;
|
||||
|
||||
@ApiModelProperty("删除类型")
|
||||
@NotBlank(message = "删除类型 不能为空")
|
||||
@NotBlank(message = "4.删除 删除类型 不能为空")
|
||||
@ApiModelPropertyEnum(CodeDeleteEnum.class)
|
||||
@CheckEnum(value = CodeDeleteEnum.class, message = "删除 删除类型 枚举值错误")
|
||||
private String deleteEnum;
|
||||
|
||||
@@ -20,26 +20,26 @@ import javax.validation.constraints.NotNull;
|
||||
public class CodeField {
|
||||
|
||||
@ApiModelProperty("列")
|
||||
@NotBlank(message = "列名 不能为空")
|
||||
@NotBlank(message = " 2.字段列表 列名 不能为空")
|
||||
private String columnName;
|
||||
|
||||
@ApiModelProperty("列备注")
|
||||
private String columnComment;
|
||||
|
||||
@ApiModelProperty("业务名称")
|
||||
@NotBlank(message = "业务名称 不能为空")
|
||||
@ApiModelProperty("字段名词")
|
||||
@NotBlank(message = "2.字段列表 字段名词 不能为空")
|
||||
private String label;
|
||||
|
||||
@ApiModelProperty("字段")
|
||||
@NotBlank(message = "字段 不能为空")
|
||||
@ApiModelProperty("字段命名")
|
||||
@NotBlank(message = "2.字段列表 字段命名 不能为空")
|
||||
private String fieldName;
|
||||
|
||||
@ApiModelProperty("java类型")
|
||||
@NotBlank(message = "java类型 不能为空")
|
||||
@NotBlank(message = "2.字段列表 java类型 不能为空")
|
||||
private String javaType;
|
||||
|
||||
@ApiModelProperty("js类型")
|
||||
@NotBlank(message = "js类型 不能为空")
|
||||
@NotBlank(message = "2.字段列表 js类型 不能为空")
|
||||
private String jsType;
|
||||
|
||||
@ApiModelProperty("字典key")
|
||||
@@ -49,11 +49,11 @@ public class CodeField {
|
||||
private String enumName;
|
||||
|
||||
@ApiModelProperty("主键")
|
||||
@NotNull(message = "主键 不能为空")
|
||||
@NotNull(message = "2.字段列表 主键 不能为空")
|
||||
private Boolean primaryKeyFlag;
|
||||
|
||||
@ApiModelProperty("自增")
|
||||
@NotNull(message = "自增 不能为空")
|
||||
@NotNull(message = "2.字段列表 自增 不能为空")
|
||||
private Boolean autoIncreaseFlag;
|
||||
|
||||
}
|
||||
|
||||
@@ -22,17 +22,17 @@ import java.util.List;
|
||||
@Data
|
||||
public class CodeInsertAndUpdate {
|
||||
|
||||
@NotNull(message = "是否支持增加、修改 不能为空")
|
||||
@NotNull(message = "3.增加、修改 是否支持增加、修改 不能为空")
|
||||
private Boolean isSupportInsertAndUpdate;
|
||||
|
||||
@ApiModelPropertyEnum(CodeGeneratorPageTypeEnum.class)
|
||||
@CheckEnum(value = CodeGeneratorPageTypeEnum.class, message = "增加、修改 页面类型 枚举值错误")
|
||||
@CheckEnum(value = CodeGeneratorPageTypeEnum.class, message = "3.增加、修改 增加、修改 页面类型 枚举值错误")
|
||||
private String pageType;
|
||||
|
||||
@ApiModelProperty("宽度")
|
||||
private String width;
|
||||
|
||||
@NotNull(message = "每行字段数量 不能为空")
|
||||
@NotNull(message = "3.增加、修改 每行字段数量 不能为空")
|
||||
@ApiModelProperty("每行字段数量")
|
||||
private Integer countPerLine;
|
||||
|
||||
|
||||
@@ -23,24 +23,24 @@ import javax.validation.constraints.NotNull;
|
||||
@Data
|
||||
public class CodeInsertAndUpdateField {
|
||||
|
||||
@NotBlank(message = "列名 不能为空")
|
||||
@NotBlank(message = "3.增加、修改 列名 不能为空")
|
||||
@ApiModelProperty("列名")
|
||||
private String columnName;
|
||||
|
||||
@NotNull(message = "必须 不能为空")
|
||||
@NotNull(message = "3.增加、修改 必须 不能为空")
|
||||
@ApiModelProperty("必须")
|
||||
private Boolean requiredFlag;
|
||||
|
||||
@NotNull(message = "插入标识 不能为空")
|
||||
@NotNull(message = "3.增加、修改 插入标识 不能为空")
|
||||
@ApiModelProperty("插入标识")
|
||||
private Boolean insertFlag;
|
||||
|
||||
@NotNull(message = "更新标识 不能为空")
|
||||
@NotNull(message = "3.增加、修改 更新标识 不能为空")
|
||||
@ApiModelProperty("更新标识")
|
||||
private Boolean updateFlag;
|
||||
|
||||
@ApiModelPropertyEnum(value = CodeGeneratorPageTypeEnum.class)
|
||||
@CheckEnum(value = CodeFrontComponentEnum.class, message = "增加、修改 组件类型 枚举值错误", required = true)
|
||||
@CheckEnum(value = CodeFrontComponentEnum.class, message = "3.增加、修改 增加、修改 组件类型 枚举值错误", required = true)
|
||||
private String frontComponent;
|
||||
|
||||
}
|
||||
|
||||
@@ -23,23 +23,23 @@ import java.util.List;
|
||||
@Data
|
||||
public class CodeQueryField {
|
||||
|
||||
@NotBlank(message = "查询条件 不能为空")
|
||||
@ApiModelProperty("查询条件")
|
||||
@NotBlank(message = "5、查询条件 条件名称 不能为空")
|
||||
@ApiModelProperty("条件名称")
|
||||
private String label;
|
||||
|
||||
@NotBlank(message = "字段名 不能为空")
|
||||
@NotBlank(message = "5、查询条件 字段名 不能为空")
|
||||
@ApiModelProperty("字段名")
|
||||
private String fieldName;
|
||||
|
||||
@ApiModelPropertyEnum(CodeQueryFieldQueryTypeEnum.class)
|
||||
@CheckEnum(value = CodeQueryFieldQueryTypeEnum.class, message = "查询条件 查询类型 枚举值错误")
|
||||
@CheckEnum(value = CodeQueryFieldQueryTypeEnum.class, message = "5、查询条件 查询条件 查询类型 枚举值错误")
|
||||
private String queryTypeEnum;
|
||||
|
||||
@NotEmpty(message = "查询条件 不能为空")
|
||||
@ApiModelProperty("查询条件")
|
||||
@NotEmpty(message = "5、查询条件 列 不能为空")
|
||||
@ApiModelProperty("列")
|
||||
private List<String> columnNameList;
|
||||
|
||||
@NotBlank(message = "宽度 不能为空")
|
||||
@NotBlank(message = "5、查询条件 宽度 不能为空")
|
||||
@ApiModelProperty("宽度")
|
||||
private String width;
|
||||
|
||||
|
||||
@@ -19,26 +19,26 @@ import javax.validation.constraints.NotNull;
|
||||
@Data
|
||||
public class CodeTableField {
|
||||
|
||||
@NotBlank(message = "列 不能为空")
|
||||
@ApiModelProperty("列")
|
||||
@NotBlank(message = "6、列表 列名 不能为空")
|
||||
@ApiModelProperty("列名")
|
||||
private String columnName;
|
||||
|
||||
@NotBlank(message = "表格列名 不能为空")
|
||||
@ApiModelProperty("表格列名")
|
||||
@NotBlank(message = "6、列表 字段名词 不能为空")
|
||||
@ApiModelProperty("字段名词")
|
||||
private String label;
|
||||
|
||||
@NotBlank(message = "字段名 不能为空")
|
||||
@ApiModelProperty("字段名")
|
||||
@NotBlank(message = "6、列表 字段命名 不能为空")
|
||||
@ApiModelProperty("字段命名")
|
||||
private String fieldName;
|
||||
|
||||
@NotNull(message = "列表显示 不能为空")
|
||||
@NotNull(message = "6、列表 列表显示 不能为空")
|
||||
@ApiModelProperty("列表显示")
|
||||
private Boolean showFlag;
|
||||
|
||||
@ApiModelProperty("宽度")
|
||||
private Integer width;
|
||||
|
||||
@NotNull(message = "自动省略标识 不能为空")
|
||||
@NotNull(message = "6、列表 自动省略标识 不能为空")
|
||||
@ApiModelProperty("自动省略标识")
|
||||
private Boolean ellipsisFlag;
|
||||
|
||||
|
||||
@@ -77,6 +77,12 @@ public class SmartReloadRunnable implements Runnable {
|
||||
SmartReloadResult result = new SmartReloadResult();
|
||||
SmartReloadObject smartReloadObject = this.abstractSmartReloadCommand.reloadObject(smartReloadItem.getTag());
|
||||
try {
|
||||
if (smartReloadObject == null) {
|
||||
result.setResult(false);
|
||||
result.setException("不能从系统中找到对应的tag:" + smartReloadItem.getTag());
|
||||
return result;
|
||||
}
|
||||
|
||||
Method method = smartReloadObject.getMethod();
|
||||
if (method == null) {
|
||||
result.setResult(false);
|
||||
|
||||
@@ -33,7 +33,8 @@ public class TableColumnController extends SupportBaseController {
|
||||
@PostMapping("/tableColumn/update")
|
||||
@RepeatSubmit
|
||||
public ResponseDTO<String> updateTableColumn(@RequestBody @Valid TableColumnUpdateForm updateForm) {
|
||||
return tableColumnService.updateTableColumns(SmartRequestUtil.getRequestUser(), updateForm);
|
||||
// return tableColumnService.updateTableColumns(SmartRequestUtil.getRequestUser(), updateForm);
|
||||
return ResponseDTO.okMsg("亲,因是演示环境,所以请求没有进行处理!如若想深入体验,请下载代码!");
|
||||
}
|
||||
|
||||
@ApiOperation("恢复默认(删除) @author 卓大")
|
||||
|
||||
@@ -16,7 +16,7 @@ spring:
|
||||
username: druid
|
||||
password: 1024
|
||||
login:
|
||||
enabled: true
|
||||
enabled: false
|
||||
method:
|
||||
pointcut: net.lab1024.sa..*Service.*
|
||||
|
||||
@@ -89,11 +89,11 @@ file:
|
||||
local:
|
||||
path: ${localPath:/home}/smart_admin_v2/upload/
|
||||
cloud:
|
||||
region: oss-cn-qingdao
|
||||
endpoint: oss-cn-qingdao.aliyuncs.com
|
||||
bucket-name: common-sit
|
||||
access-key:
|
||||
secret-key:
|
||||
region: oss-cn-hangzhou
|
||||
endpoint: oss-cn-hangzhou.aliyuncs.com
|
||||
bucket-name: 1024lab-smart-admin
|
||||
access-key: LTAI5t83Zxi5GDUjf2mYNiRG
|
||||
secret-key: K656OL1J7uD1QIAVbq3vXTDcxJbmMS
|
||||
url:
|
||||
expire: 7200000
|
||||
public: https://${file.storage.cloud.bucket-name}.${file.storage.cloud.endpoint}/
|
||||
|
||||
Reference in New Issue
Block a user