From dcd867c64fb95a81033f66d37fd4c005e89785b7 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Fri, 1 Apr 2022 11:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=907.2.2=E3=80=91=E3=80=90expand=E3=80=91?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0Wrapper?= =?UTF-8?q?=E5=8C=85=E8=A3=85=E5=B1=95=E7=A4=BA=E5=8A=A8=E6=80=81=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/SysExpandServiceImpl.java | 1 + .../user/controller/SysUserController.java | 3 ++ .../user/wrapper/UserExpandWrapper.java | 48 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/wrapper/UserExpandWrapper.java diff --git a/kernel-s-expand/expand-business/src/main/java/cn/stylefeng/roses/kernel/expand/modular/modular/service/impl/SysExpandServiceImpl.java b/kernel-s-expand/expand-business/src/main/java/cn/stylefeng/roses/kernel/expand/modular/modular/service/impl/SysExpandServiceImpl.java index 607dce08d..1c07edb3b 100644 --- a/kernel-s-expand/expand-business/src/main/java/cn/stylefeng/roses/kernel/expand/modular/modular/service/impl/SysExpandServiceImpl.java +++ b/kernel-s-expand/expand-business/src/main/java/cn/stylefeng/roses/kernel/expand/modular/modular/service/impl/SysExpandServiceImpl.java @@ -200,6 +200,7 @@ public class SysExpandServiceImpl extends ServiceImpl> page(SysUserRequest sysUserRequest) { return new SuccessResponseData<>(sysUserService.findPage(sysUserRequest)); } diff --git a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/wrapper/UserExpandWrapper.java b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/wrapper/UserExpandWrapper.java new file mode 100644 index 000000000..a54e84def --- /dev/null +++ b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/wrapper/UserExpandWrapper.java @@ -0,0 +1,48 @@ +/* + * Copyright [2020-2030] [https://www.stylefeng.cn] + * + * 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. + * + * Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点: + * + * 1.请不要删除和修改根目录下的LICENSE文件。 + * 2.请不要删除和修改Guns源码头部的版权声明。 + * 3.请保留源码和相关描述文件的项目出处,作者声明等。 + * 4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns + * 5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns + * 6.若您的项目无法满足以上几点,可申请商业授权 + */ +package cn.stylefeng.roses.kernel.system.modular.user.wrapper; + +import cn.hutool.extra.spring.SpringUtil; +import cn.stylefeng.roses.kernel.expand.modular.api.ExpandApi; +import cn.stylefeng.roses.kernel.system.api.pojo.user.SysUserDTO; +import cn.stylefeng.roses.kernel.wrapper.api.BaseWrapper; + +import java.util.Map; + +/** + * 系统用户的拓展 + * + * @author fengshuonan + * @date 2022/4/1 11:30 + */ +public class UserExpandWrapper implements BaseWrapper { + + @Override + public Map doWrap(SysUserDTO beWrappedModel) { + ExpandApi expandApi = SpringUtil.getBean(ExpandApi.class); + return expandApi.getExpandDataInfo("user_expand", beWrappedModel.getUserId()); + } + +}