SYYTe/maku-boot-system/src/main/java/net/maku/system/service/SysUserPostService.java
2022-08-31 11:22:15 +08:00

39 lines
922 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}