Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
c7b58a0
fix: 修复本地文件管理删除文件异常或不成功的情况
Dec 3, 2024
e314346
feat: 新增验证码配置开关
AiMing317 Dec 5, 2024
f3936fa
Merge branch 'dev' of https://gitee.com/continew/continew-admin into …
Charles7c Dec 5, 2024
61fe39d
refactor: 优化登录验证码开关代码
Charles7c Dec 5, 2024
d7ae7b4
chore: continew-starter 2.7.4 => 2.7.5
Charles7c Dec 6, 2024
cdd1c63
release: v3.4.1
Charles7c Dec 8, 2024
43cc429
refactor(auth): 菜单路由为空时默认返回空列表而非 null
Charles7c Dec 8, 2024
8fdcde6
docs: 更新 README 文档
Charles7c Dec 9, 2024
af403d0
fix(generator): 修复 PostgreSQL 菜单 SQL 脚本模板错误 (#107)
Charles7c Dec 11, 2024
9d0e1fc
chore: 移除初始数据脚本 update_user、update_time 字段赋值(此优化无需跟进升级)
Charles7c Dec 11, 2024
4c8ebf2
refactor: 消除前端红色报警、更新表格创建者和更新者字段索引,自定义单选框数据 (#108)
luoqiz Dec 12, 2024
9ebecdc
refactor(generator): 生成菜单脚本添加ID (#109)
luoqiz Dec 12, 2024
75d2662
fix(generator): 前端页面生成表单类型 (#110)
luoqiz Dec 12, 2024
a7296a3
feat(generator): 生成预览支持批量
Charles7c Dec 12, 2024
b519364
feat(generator): 代码生成新增 Mapper.xml 模板
Charles7c Dec 12, 2024
a90a32c
chore: 优化部分代码
Charles7c Dec 18, 2024
899354a
fix: 完善部分 in 查询前的空集合处理
Charles7c Dec 19, 2024
4920d7b
chore: 更新 nginx.conf 部署配置文件
Charles7c Dec 22, 2024
cff8307
chore(schedule): 完善部分说明
Charles7c Dec 22, 2024
fdd0617
fix(system/notice): 修复公告通知范围字段类型错误
Dec 22, 2024
160ab8d
fix(system/notice): 修复通知公告分页 通知范围字段类型回显错误
Dec 23, 2024
2bab917
chore: 优化 Issue 模板
Charles7c Dec 25, 2024
6bcff72
chore: continew-starter 2.7.5 => 2.8.0
Charles7c Dec 25, 2024
95f2617
feat(system/client): 新增客户端管理
Dec 26, 2024
83fe36a
fix: 修复租户套餐和数据连接删除时的验证问题
xtanyu Dec 26, 2024
3ae6119
fix: 租户编号不使用大写字母
xtanyu Dec 26, 2024
c90e80e
refactor: 优化认证及客户端相关代码
Charles7c Dec 26, 2024
c870014
fix(system/user): 修复导入用户部门名称校验注解使用错误
iguaning Dec 27, 2024
a70fd0d
Merge branch 'continew-dev' into tenant-db
xtanyu Dec 27, 2024
438615f
refactor: 优化认证及客户端相关代码
Charles7c Dec 27, 2024
144251b
refactor: 调整 starter 内的 BaseResp、BaseDetailResp 到 admin 项目
Charles7c Dec 27, 2024
229bd9b
refactor(system/client): 完善客户端管理
Charles7c Dec 27, 2024
8c53700
fix: 修复 PostgreSQL Liquibase 数据脚本缺失
Charles7c Dec 30, 2024
4f39854
chore: 完善演示环境任务重置演示环境数据定时任务
Charles7c Dec 30, 2024
91924ac
fix(system/user): 修复新增用户时日志记录获取 description 为空的问题
Charles7c Jan 2, 2025
7e3257b
fix: 调整 PostgreSQL 连接配置以消除部分类型使用报错
Charles7c Jan 2, 2025
3fb9922
fix: 修复部分过期配置信息
Charles7c Jan 2, 2025
a305eac
fix(system/client): 修复 PostgreSQL 和 MySQL 初始数据脚本错误 (#123)
onekr-billy Jan 3, 2025
d12c68d
chore: continew-starter 2.8.0 => 2.8.1
Charles7c Jan 6, 2025
ee46e47
revert(generator): 还原静态模型变量设置,修复 Menu.ftl 生成报错
Charles7c Jan 8, 2025
f1d0b49
refactor: 调整 starter 内的 CommonUserService、ContainerPool 到 admin 项目
Charles7c Jan 9, 2025
a24136d
chore: 优化登录日志描述
Charles7c Jan 9, 2025
b5bbdb2
chore: 丰富部门、角色、用户初始测试数据,方便开发场景
Charles7c Jan 9, 2025
146f5b2
chore: continew-starter 2.8.1 => 2.8.2
Charles7c Jan 9, 2025
653802e
feat(generator): 源项目内生成代码文件 (#125)
luoqiz Jan 12, 2025
498e680
refactor: 调整 starter 内的 BaseDO、BaseCreateDO、BaseUpdateDO 到 admin 项目
Charles7c Jan 12, 2025
b7c5fd2
fix: 修复演示环境任务重置演示环境数据定时任务
Charles7c Jan 12, 2025
0fab8e4
chore(generator): 优化代码生成模板
Charles7c Jan 13, 2025
aab3931
fix(system/log): 修复邮箱登录,手机号登录对应日志没有记录操作人问题
iguaning Jan 14, 2025
31231cd
Merge branch 'continew-dev' into tenant-db
xtanyu Jan 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<img src="https://img.shields.io/badge/RELEASE-v3.4.1-%23ff3f59.svg" alt="Release" />
</a>
<a href="https://github.com/continew-org/continew-starter" title="ContiNew Starter" target="_blank">
<img src="https://img.shields.io/badge/ContiNew Starter-2.8.0-%236CB52D.svg" alt="ContiNew Starter" />
<img src="https://img.shields.io/badge/ContiNew Starter-2.8.2-%236CB52D.svg" alt="ContiNew Starter" />
</a>
<a href="https://spring.io/projects/spring-boot" title="Spring Boot" target="_blank">
<img src="https://img.shields.io/badge/Spring Boot-3.2.12-%236CB52D.svg?logo=Spring-Boot" alt="Spring Boot" />
Expand Down Expand Up @@ -229,7 +229,7 @@ public class DeptController extends BaseController<DeptService, DeptResp, DeptDe
| <a href="https://arco.design/vue/docs/start" target="_blank">Arco Design</a> | 2.56.0 | 字节跳动推出的前端 UI 框架,年轻化的色彩和组件设计。 |
| <a href="https://www.typescriptlang.org/zh/" target="_blank">TypeScript</a> | 5.0.4 | TypeScript 是微软开发的一个开源的编程语言,通过在 JavaScript 的基础上添加静态类型定义构建而成。 |
| <a href="https://vite.dev/" target="_blank">Vite</a> | 5.1.5 | 下一代的前端工具链,为开发提供极速响应。 |
| [ContiNew Starter](https://github.com/continew-org/continew-starter) | 2.8.0 | ContiNew Starter 包含了一系列经过企业实践优化的依赖包(如 MyBatis-Plus、SaToken),可轻松集成到应用中,为开发人员减少手动引入依赖及配置的麻烦,为 Spring Boot Web 项目的灵活快速构建提供支持。 |
| [ContiNew Starter](https://github.com/continew-org/continew-starter) | 2.8.2 | ContiNew Starter 包含了一系列经过企业实践优化的依赖包(如 MyBatis-Plus、SaToken),可轻松集成到应用中,为开发人员减少手动引入依赖及配置的麻烦,为 Spring Boot Web 项目的灵活快速构建提供支持。 |
| <a href="https://spring.io/projects/spring-boot" target="_blank">Spring Boot</a> | 3.2.12 | 简化 Spring 应用的初始搭建和开发过程,基于“约定优于配置”的理念,使开发人员不再需要定义样板化的配置。(Spring Boot 3.0 开始,要求 Java 17 作为最低版本) |
| <a href="https://undertow.io/" target="_blank">Undertow</a> | 2.3.17.Final | 采用 Java 开发的灵活的高性能 Web 服务器,提供包括阻塞和基于 NIO 的非堵塞机制。 |
| <a href="https://sa-token.dev33.cn/" target="_blank">Sa-Token + JWT</a> | 1.39.0 | 轻量级 Java 权限认证框架,让鉴权变得简单、优雅。 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.apache.ibatis.reflection.MetaObject;
import top.continew.admin.common.context.UserContextHolder;
import top.continew.starter.extension.crud.model.entity.BaseDO;
import top.continew.admin.common.model.entity.BaseDO;

import java.time.LocalDateTime;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@

package top.continew.admin.common.constant;

import top.continew.starter.extension.crud.constant.ContainerPool;

/**
* 数据源容器相关常量(Crane4j 数据填充组件使用)
*
* @author Charles7c
* @since 2024/1/20 12:33
*/
public class ContainerConstants extends ContainerPool {
public class ContainerConstants {

/**
* 用户昵称
*/
public static final String USER_NICKNAME = ContainerPool.USER_NICKNAME;
public static final String USER_NICKNAME = "UserNickname";

/**
* 用户角色 ID 列表
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ public class SysConstants {
public static final String ALL_PERMISSION = "*:*:*";

/**
* 账号登录 URI
* 登录 URI
*/
public static final String LOGIN_URI = "/auth/account";
public static final String LOGIN_URI = "/auth/login";

/**
* 退出 URI
* 登出 URI
*/
public static final String LOGOUT_URI = "/auth/logout";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ public class UserContext implements Serializable {
*/
private Long tenantId;

/*
* 客户端类型
*/
private String clientType;

/**
* 客户端 ID
*/
private String clientId;

public UserContext(Set<String> permissions, Set<RoleContext> roles, Integer passwordExpirationDays) {
this.permissions = permissions;
this.setRoles(roles);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.core.convert.Convert;
import cn.hutool.extra.spring.SpringUtil;
import top.continew.admin.common.service.CommonUserService;
import top.continew.starter.core.util.ExceptionUtils;
import top.continew.starter.extension.crud.service.CommonUserService;

/**
* 用户上下文 Holder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package top.continew.admin.common.base;
package top.continew.admin.common.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import cn.dev33.satoken.context.SaHolder;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package top.continew.admin.common.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import top.continew.starter.extension.crud.model.entity.BaseIdDO;

import java.io.Serial;
import java.time.LocalDateTime;

/**
* 实体类基类
*
* <p>
* 通用字段:创建人、创建时间
* </p>
*
* @author Charles7c
* @since 2025/1/12 23:00
*/
@Data
public class BaseCreateDO extends BaseIdDO {

@Serial
private static final long serialVersionUID = 1L;

/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
private Long createUser;

/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package top.continew.admin.common.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import top.continew.starter.extension.crud.model.entity.BaseIdDO;

import java.io.Serial;
import java.time.LocalDateTime;

/**
* 实体类基类
*
* @author Charles7c
* @since 2025/1/12 23:00
*/
@Data
public class BaseDO extends BaseIdDO {

@Serial
private static final long serialVersionUID = 1L;

/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT)
private Long createUser;

/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;

/**
* 修改人
*/
@TableField(fill = FieldFill.UPDATE)
private Long updateUser;

/**
* 修改时间
*/
@TableField(fill = FieldFill.UPDATE)
private LocalDateTime updateTime;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package top.continew.admin.common.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serial;
import java.time.LocalDateTime;

import top.continew.starter.extension.crud.model.entity.BaseIdDO;

/**
* 实体类基类
*
* <p>
* 通用字段:创建人、创建时间
* </p>
*
* @author Charles7c
* @since 2025/1/12 23:00
*/
@Data
public class BaseUpdateDO extends BaseIdDO {

@Serial
private static final long serialVersionUID = 1L;

/**
* 修改人
*/
@TableField(fill = FieldFill.UPDATE)
private Long updateUser;

/**
* 修改时间
*/
@TableField(fill = FieldFill.UPDATE)
private LocalDateTime updateTime;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package top.continew.admin.common.model.resp;

import cn.crane4j.annotation.Assemble;
import cn.crane4j.annotation.Mapping;
import cn.crane4j.annotation.condition.ConditionOnPropertyNotNull;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.continew.admin.common.constant.ContainerConstants;

import java.io.Serial;
import java.time.LocalDateTime;

/**
* 详情响应基类
*
* @author Charles7c
* @since 2024/12/27 20:32
*/
@Data
public class BaseDetailResp extends BaseResp {

@Serial
private static final long serialVersionUID = 1L;

/**
* 修改人
*/
@JsonIgnore
@ConditionOnPropertyNotNull
@Assemble(container = ContainerConstants.USER_NICKNAME, props = @Mapping(ref = "updateUserString"))
private Long updateUser;

/**
* 修改人
*/
@Schema(description = "修改人", example = "李四")
@ExcelProperty(value = "修改人", order = Integer.MAX_VALUE - 2)
private String updateUserString;

/**
* 修改时间
*/
@Schema(description = "修改时间", example = "2023-08-08 08:08:08", type = "string")
@ExcelProperty(value = "修改时间", order = Integer.MAX_VALUE - 1)
private LocalDateTime updateTime;
}
Loading