39 lines
922 B
Java
39 lines
922 B
Java
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);
|
||
} |