com.didiglobal.logi.security.service.UserProjectService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logi-security-spring-boot-starter Show documentation
Show all versions of logi-security-spring-boot-starter Show documentation
logi-security 提供项目大多都需要的一些基础功能(用户、角色、权限、登录、注册、操作记录)
package com.didiglobal.logi.security.service;
import com.didiglobal.logi.security.common.enums.project.ProjectUserCode;
import java.util.List;
/**
* @author cjm
*/
public interface UserProjectService {
/**
* 根据项目id,获取用户idList
* @param projectId 项目id
* @param code
* @return 用户idList
*/
List getUserIdListByProjectId(Integer projectId, ProjectUserCode code);
/**
* 根据用户idList,获取项目idList
* @param userIdList 用户idList
* @return 项目idList
*/
List getProjectIdListByUserIdList(List userIdList);
/**
* 保存用户与项目的关联信息
* @param projectId 项目id
* @param userIdList 用户idList
*/
void saveUserProject(Integer projectId, List userIdList);
/**
* 删除用户与项目的相关信息
* @param projectId
* @param userIdList
*/
void delUserProject(Integer projectId, List userIdList);
/**
* 保存用户与项目的关联信息
* @param projectId 项目id
* @param ownerIdList 用户idList
*/
void saveOwnerProject(Integer projectId, List ownerIdList);
/**
* 删除用户与项目的相关信息
* @param projectId
* @param ownerIdList
*/
void delOwnerProject(Integer projectId, List ownerIdList);
/**
* 更新用户与项目的关联信息,保存新关系之前会删除old的关联信息
* @param projectId 项目id
* @param userIdList 用户idList
*/
void updateUserProject(Integer projectId, List userIdList);
/**
* 删除用户与项目的关联信息
* @param projectId 项目id
*/
void deleteUserProjectByProjectId(Integer projectId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy