This commit is contained in:
2024-10-31 14:53:58 +08:00
parent f300236c4d
commit 0b1a5f35c2
10 changed files with 17 additions and 19 deletions

View File

@@ -18,7 +18,7 @@ public class AuthController {
token.setAccessToken("bqddxxwqmfncffacvbpkuxvwvqrhln");
HttpResult<Token> result = new HttpResult<>();
result.setMessage("成功");
result.setCode("200");
result.setCode("A0000");
result.setData(token);
return result;
}
@@ -27,7 +27,7 @@ public class AuthController {
public HttpResult<String> logout() {
HttpResult<String> result = new HttpResult<>();
result.setMessage("成功");
result.setCode("200");
result.setCode("A0000");
result.setData("退出成功");
return result;
}

View File

@@ -1,7 +1,6 @@
package com.njcn.gather.system.dictionary.controller;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@@ -16,7 +15,6 @@ import com.njcn.gather.system.dictionary.pojo.param.DictTypeParam;
import com.njcn.gather.system.dictionary.pojo.po.DictType;
import com.njcn.gather.system.dictionary.service.IDictTypeService;
import com.njcn.web.controller.BaseController;
import com.njcn.web.pojo.dto.SimpleTreeDTO;
import com.njcn.web.utils.HttpResultUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;

View File

@@ -1,7 +1,7 @@
package com.njcn.gather.system.dictionary.pojo.param;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.gather.system.dictionary.pojo.constant.SystemValidMessage;
import com.njcn.gather.system.pojo.constant.SystemValidMessage;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

View File

@@ -1,7 +1,7 @@
package com.njcn.gather.system.dictionary.pojo.param;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.gather.system.dictionary.pojo.constant.SystemValidMessage;
import com.njcn.gather.system.pojo.constant.SystemValidMessage;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -36,16 +36,16 @@ public class DictTypeParam {
@ApiModelProperty("开启等级0-不开启1-开启,默认不开启")
@NotNull(message = SystemValidMessage.OPEN_LEVEL_NOT_NULL)
@Min(value = 0, message = SystemValidMessage.OPEN_LEVEL_FORMAT_ERROR)
@Max(value = 1, message = SystemValidMessage.OPEN_LEVEL_FORMAT_ERROR)
// @NotNull(message = SystemValidMessage.OPEN_LEVEL_NOT_NULL)
// @Min(value = 0, message = SystemValidMessage.OPEN_LEVEL_FORMAT_ERROR)
// @Max(value = 1, message = SystemValidMessage.OPEN_LEVEL_FORMAT_ERROR)
private Integer openLevel;
@ApiModelProperty("开启算法描述0-不开启1-开启,默认不开启")
@NotNull(message = SystemValidMessage.OPEN_DESCRIBE_NOT_NULL)
@Min(value = 0, message = SystemValidMessage.OPEN_DESCRIBE_FORMAT_ERROR)
@Max(value = 1, message = SystemValidMessage.OPEN_DESCRIBE_FORMAT_ERROR)
// @NotNull(message = SystemValidMessage.OPEN_DESCRIBE_NOT_NULL)
// @Min(value = 0, message = SystemValidMessage.OPEN_DESCRIBE_FORMAT_ERROR)
// @Max(value = 1, message = SystemValidMessage.OPEN_DESCRIBE_FORMAT_ERROR)
private Integer openDescribe;

View File

@@ -13,7 +13,7 @@ import com.njcn.common.pojo.exception.BusinessException;
import com.njcn.db.mybatisplus.constant.DbConstant;
import com.njcn.gather.system.dictionary.mapper.DictDataMapper;
import com.njcn.gather.system.dictionary.pojo.dto.DictDataCache;
import com.njcn.gather.system.dictionary.pojo.enums.SystemResponseEnum;
import com.njcn.gather.system.pojo.enums.SystemResponseEnum;
import com.njcn.gather.system.dictionary.pojo.param.DictDataParam;
import com.njcn.gather.system.dictionary.pojo.po.DictData;
import com.njcn.gather.system.dictionary.pojo.po.DictType;

View File

@@ -11,7 +11,7 @@ import com.njcn.common.pojo.enums.common.DataStateEnum;
import com.njcn.common.pojo.exception.BusinessException;
import com.njcn.db.mybatisplus.constant.DbConstant;
import com.njcn.gather.system.dictionary.mapper.DictTypeMapper;
import com.njcn.gather.system.dictionary.pojo.enums.SystemResponseEnum;
import com.njcn.gather.system.pojo.enums.SystemResponseEnum;
import com.njcn.gather.system.dictionary.pojo.param.DictTypeParam;
import com.njcn.gather.system.dictionary.pojo.po.DictType;
import com.njcn.gather.system.dictionary.service.IDictTypeService;

View File

@@ -16,7 +16,7 @@ public class ButtonController {
ButtonVO buttonVO = new ButtonVO();
HttpResult<ButtonVO> result = new HttpResult<>();
result.setMessage("成功");
result.setCode("200");
result.setCode("A0000");
result.setData(buttonVO);
return result;
}

View File

@@ -58,7 +58,7 @@ public class MenuController {
MenuVO menuVO3 = getMenuVORedirect("/system","system","/system/base","Tools","系统配置");
MenuVO menuVO31 = getMenuVO("/system/base","base","/system/base/index","UserFilled","通用配置");
MenuVO menuVO32 = getMenuVO("/system/dict","dict","/system/dict/index","DataAnalysis","数据字典");
MenuVO menuVO32 = getMenuVO("/system/dict","dict","/system/dictionary/dictType/index","DataAnalysis","数据字典");
MenuVO menuVO33 = getMenuVO("/system/template","template","/system/template/index","Memo","报告模板");
MenuVO menuVO34 = getMenuVO("/system/versionRegister","versionRegister","/system/versionRegister/index","SetUp","版本注册");
menuVO3.setChildren(CollectionUtil.toList(menuVO31,menuVO32,menuVO33,menuVO34));
@@ -82,7 +82,7 @@ public class MenuController {
HttpResult<List<MenuVO>> result = new HttpResult<>();
result.setData(menuVOList);
result.setCode("200");
result.setCode("A0000");
result.setMessage("成功");
return result;
}

View File

@@ -1,4 +1,4 @@
package com.njcn.gather.system.dictionary.pojo.constant;
package com.njcn.gather.system.pojo.constant;
/**
* @author hongawen

View File

@@ -1,4 +1,4 @@
package com.njcn.gather.system.dictionary.pojo.enums;
package com.njcn.gather.system.pojo.enums;
import lombok.Getter;