mirror of https://gitee.com/stylefeng/roses
【7.0.4】删除没用接口
parent
12998583cf
commit
16a0f7e5ab
|
@ -61,18 +61,6 @@ public class SysUserController {
|
||||||
@Resource
|
@Resource
|
||||||
private SysUserRoleService sysUserRoleService;
|
private SysUserRoleService sysUserRoleService;
|
||||||
|
|
||||||
/**
|
|
||||||
* 注册用户
|
|
||||||
*
|
|
||||||
* @author chenjinlong
|
|
||||||
* @date 2021/01/16 13:50
|
|
||||||
*/
|
|
||||||
@PostResource(name = "系统用户_注册", path = "/sysUser/register", requiredLogin = false, requiredPermission = false)
|
|
||||||
public ResponseData register(@RequestBody @Validated(SysUserRequest.reg.class) SysUserRequest sysUserRequest) {
|
|
||||||
sysUserService.register(sysUserRequest);
|
|
||||||
return new SuccessResponseData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 增加用户
|
* 增加用户
|
||||||
*
|
*
|
||||||
|
|
|
@ -44,15 +44,6 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
public interface SysUserService extends IService<SysUser>, UserServiceApi {
|
public interface SysUserService extends IService<SysUser>, UserServiceApi {
|
||||||
|
|
||||||
/**
|
|
||||||
* 新用户注册
|
|
||||||
*
|
|
||||||
* @param sysUserRequest 请求参数
|
|
||||||
* @author chenjinlong
|
|
||||||
* @date 2021/1/15 15:17
|
|
||||||
*/
|
|
||||||
void register(SysUserRequest sysUserRequest);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 增加用户
|
* 增加用户
|
||||||
*
|
*
|
||||||
|
|
|
@ -26,7 +26,6 @@ package cn.stylefeng.roses.kernel.system.modular.user.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.collection.CollectionUtil;
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
import cn.hutool.core.util.IdUtil;
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.stylefeng.roses.kernel.auth.api.SessionManagerApi;
|
import cn.stylefeng.roses.kernel.auth.api.SessionManagerApi;
|
||||||
|
@ -137,16 +136,6 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
||||||
@Resource
|
@Resource
|
||||||
private CacheOperatorApi<SysUserDTO> sysUserCacheOperatorApi;
|
private CacheOperatorApi<SysUserDTO> sysUserCacheOperatorApi;
|
||||||
|
|
||||||
@Override
|
|
||||||
public void register(SysUserRequest sysUserRequest) {
|
|
||||||
SysUser sysUser = new SysUser();
|
|
||||||
BeanUtil.copyProperties(sysUserRequest, sysUser);
|
|
||||||
sysUser.setRealName(IdUtil.simpleUUID());
|
|
||||||
SysUserCreateFactory.fillAddSysUser(sysUser);
|
|
||||||
// 保存用户
|
|
||||||
this.save(sysUser);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void add(SysUserRequest sysUserRequest) {
|
public void add(SysUserRequest sysUserRequest) {
|
||||||
|
|
Loading…
Reference in New Issue