You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
182 lines
4.0 KiB
182 lines
4.0 KiB
package com.dxhy.itax.service;
|
|
|
|
import com.dxhy.itax.dto.*;
|
|
import com.dxhy.itax.entity.SysUserEntity;
|
|
import com.dxhy.itax.model.UserInfo;
|
|
|
|
import com.dxhy.itax.result.Result;
|
|
import com.dxhy.itax.result.ReturnT;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* Created by lenovo on 2019/3/25.
|
|
*/
|
|
public interface UserService {
|
|
|
|
/**
|
|
* api 查询用户信息
|
|
* @param apiUserDto
|
|
* @return
|
|
*/
|
|
Result queryUserInfo(UserInfoRequestDto apiUserDto);
|
|
/**
|
|
* admin 查询部门下人员列表
|
|
* @param params
|
|
* @return
|
|
*/
|
|
Result listUsersByDeptId(Map<String, Object> params);
|
|
|
|
/**
|
|
* admin 添加人员
|
|
* @param adminUserOperateDto
|
|
* @return
|
|
*/
|
|
Result addUser(AdminUserOperateDto adminUserOperateDto);
|
|
|
|
/**
|
|
* admin 更新人员
|
|
* @param adminUserOperateDto
|
|
* @return
|
|
*/
|
|
Result updateUser(AdminUserOperateDto adminUserOperateDto);
|
|
|
|
/**
|
|
* admin查询用户信息
|
|
* @param userId
|
|
* @return
|
|
*/
|
|
Result userInfo(long userId);
|
|
|
|
/**
|
|
* 删除用户
|
|
* @param userId
|
|
* @return
|
|
*/
|
|
Result updateUserStatus(long userId, int status);
|
|
|
|
/**
|
|
* 查询用户对应的菜单
|
|
* @param userId
|
|
* @return
|
|
*/
|
|
Result listMenusForUser(Long userId);
|
|
|
|
/**
|
|
* 修改密码
|
|
* @param userPasswordDto
|
|
* @return
|
|
*/
|
|
Result updatePassword(UserPasswordDto userPasswordDto);
|
|
|
|
/**
|
|
* 模糊查询用户
|
|
* @param name
|
|
* @return
|
|
*/
|
|
Result queryUserByName(String name);
|
|
|
|
/**
|
|
*
|
|
* @param deptIds
|
|
* @return
|
|
*/
|
|
Result queryUserByDeptId(DeptUserListDto deptIds);
|
|
|
|
|
|
/**
|
|
* 预禁用用户
|
|
* @param userId
|
|
* @return
|
|
*/
|
|
Result preUpdateUserStatus(long userId);
|
|
|
|
/**
|
|
* 重置密码
|
|
* @param userId
|
|
* @param newPassword
|
|
* @return
|
|
*/
|
|
Result resetPassword(long userId, String newPassword);
|
|
|
|
Result queryskinColorList();
|
|
|
|
Result updateSkinColor(UpdateSkinColorDto updateSkinColorDto);
|
|
|
|
|
|
Result queryListUsers(Map<String, Object> params);
|
|
|
|
Result syncUserInfo(SyncUserInfoDto syncUserInfoDto);
|
|
|
|
Result uploadExport(String fileName, MultipartFile file, long userId) throws Exception;
|
|
|
|
/**
|
|
* 查询用户信息
|
|
*
|
|
* @param username 用户名
|
|
* @param password 密码
|
|
* @return
|
|
*/
|
|
public ReturnT<UserInfo> findUser(String username, String password);
|
|
|
|
|
|
/**
|
|
* 更新用户最后登录时间
|
|
*
|
|
* @param userId
|
|
* @return
|
|
*/
|
|
void updateLastLoginTime(Long userId);
|
|
/**
|
|
* 查询管理组/角色分配 人员列表
|
|
* @param managerId
|
|
* @param roleId
|
|
* @param search
|
|
* @param deptIds
|
|
* @return
|
|
*/
|
|
Result queryAuthorizedUserInfo(String managerId, Long roleId, String search, List<String> deptIds);
|
|
/**
|
|
* 查询管理组/角色未分配 人员列表
|
|
* @param roleId
|
|
* @return
|
|
*/
|
|
Result queryUnAuthorizedUserInfo(String managerId ,
|
|
Long roleId,
|
|
String search,
|
|
long userId,
|
|
List<String> deptIds,
|
|
int pageNo,
|
|
int pageSize);
|
|
|
|
/**
|
|
* 查询指定登录用户信息
|
|
* @param username
|
|
* @return
|
|
*/
|
|
public SysUserEntity queryUserInfoByUsername(String username);
|
|
|
|
/**
|
|
* 查询手机号的总记录数
|
|
* @param mobile
|
|
* @return
|
|
*/
|
|
public int queryUserCountByMobile(String mobile,String tenantId);
|
|
|
|
/**
|
|
* 查询邮箱的总记录数
|
|
* @param email
|
|
* @return
|
|
*/
|
|
public int queryUserCountByEmail(String email);
|
|
|
|
/**
|
|
* 导入用的批量插入用户
|
|
* @param sysUserEntitys
|
|
*/
|
|
void impUserCheck(List<SysUserEntity> sysUserEntitys);
|
|
|
|
SysUserEntity findUserByName(String userName);
|
|
}
|
|
|