All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.didiglobal.logi.security.service.UserProjectService Maven / Gradle / Ivy

The newest version!
package com.didiglobal.logi.security.service;

import java.util.List;

/**
 * @author cjm
 */
public interface UserProjectService {

    /**
     * 根据项目id,获取用户idList
     * @param projectId 项目id
     * @return 用户idList
     */
    List getUserIdListByProjectId(Integer projectId);

    /**
     * 根据用户idList,获取项目idList
     * @param userIdList 用户idList
     * @return 项目idList
     */
    List getProjectIdListByUserIdList(List userIdList);

    /**
     * 保存用户与项目的关联信息
     * @param projectId 项目id
     * @param userIdList 用户idList
     */
    void saveUserProject(Integer projectId, List userIdList);

    /**
     * 更新用户与项目的关联信息,保存新关系之前会删除old的关联信息
     * @param projectId 项目id
     * @param userIdList 用户idList
     */
    void updateUserProject(Integer projectId, List userIdList);


    /**
     * 删除用户与项目的关联信息
     * @param projectId 项目id
     */
    void deleteUserProjectByProjectId(Integer projectId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy