package jnpf.permission.service;
|
|
import jnpf.base.service.SuperService;
|
import jnpf.permission.entity.GroupEntity;
|
import jnpf.permission.model.usergroup.GroupPagination;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 用户管理业务层
|
*
|
* @author :JNPF开发平台组
|
* @version: V3.1.0
|
* @copyright 引迈信息技术有限公司
|
* @date :2022/3/10 17:59
|
*/
|
public interface GroupService extends SuperService<GroupEntity> {
|
|
/**
|
* 获取用户列表
|
*
|
* @param pagination 关键字
|
* @return
|
*/
|
List<GroupEntity> getList(GroupPagination pagination);
|
|
/**
|
* 获取所有格分组信息
|
*
|
* @return
|
*/
|
List<GroupEntity> list();
|
|
Map<String, Object> getGroupMap();
|
|
/**
|
* fullName/encode,id
|
*
|
* @return
|
*/
|
Map<String, Object> getGroupEncodeMap();
|
|
Map<String, Object> getGroupEncodeMap(boolean enabledMark);
|
|
/**
|
* 获取用户详情
|
*
|
* @param id
|
* @return
|
*/
|
GroupEntity getInfo(String id);
|
|
/**
|
* 获取分组详情
|
*
|
* @param fullName
|
* @param encode
|
* @return
|
*/
|
GroupEntity getInfo(String fullName, String encode);
|
|
/**
|
* 添加
|
*
|
* @param entity
|
*/
|
void crete(GroupEntity entity);
|
|
/**
|
* 修改
|
*
|
* @param id
|
* @param entity
|
*/
|
Boolean update(String id, GroupEntity entity);
|
|
/**
|
* 删除
|
*
|
* @param entity
|
*/
|
void delete(GroupEntity entity);
|
|
/**
|
* 判断名称是否重复
|
*
|
* @param fullName
|
* @param id
|
* @return
|
*/
|
Boolean isExistByFullName(String fullName, String id);
|
|
/**
|
* 判断编码是否重复
|
*
|
* @param enCode
|
* @param id
|
* @return
|
*/
|
Boolean isExistByEnCode(String enCode, String id);
|
|
|
/**
|
* 通过分组id获取分组集合
|
*
|
* @param idList
|
* @return
|
*/
|
List<GroupEntity> getListByIds(List<String> idList);
|
|
/**
|
* 通过分组id获取分组集合
|
*
|
* @param idList
|
* @return
|
*/
|
List<GroupEntity> getListByIds(List<String> idList, Boolean filter);
|
}
|