SYYTe/maku-boot-system/src/main/java/net/maku/system/service/SysUserPostService.java

39 lines
922 B
Java
Raw Normal View History

2022-04-22 15:26:39 +08:00
package net.maku.system.service;
import net.maku.framework.common.service.BaseService;
import net.maku.system.entity.SysUserPostEntity;
import java.util.List;
/**
* 用户岗位关系
*
* @author 阿沐 babamu@126.com
*/
public interface SysUserPostService extends BaseService<SysUserPostEntity> {
/**
* 保存或修改
* @param userId 用户ID
* @param postIdList 岗位ID列表
*/
void saveOrUpdate(Long userId, List<Long> postIdList);
/**
* 根据岗位id列表删除用户岗位关系
* @param postIdList 岗位id列表
*/
void deleteByPostIdList(List<Long> postIdList);
/**
* 根据用户id列表删除用户岗位关系
* @param userIdList 用户id列表
*/
void deleteByUserIdList(List<Long> userIdList);
/**
* 岗位ID列表
* @param userId 用户ID
*/
List<Long> getPostIdList(Long userId);
}