package jnpf.base.service;
|
|
import jnpf.base.ActionResult;
|
import jnpf.base.entity.ModuleEntity;
|
import jnpf.base.model.module.*;
|
import jnpf.base.vo.DownloadVO;
|
import jnpf.exception.DataException;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 系统功能
|
*
|
* @author JNPF开发平台组
|
* @version V3.1.0
|
* @copyright 引迈信息技术有限公司
|
* @date 2019年9月27日 上午9:18
|
*/
|
public interface ModuleService extends SuperService<ModuleEntity> {
|
/**
|
* 列表
|
*
|
* @return ignore
|
*/
|
List<ModuleEntity> getList(MenuListModel param);
|
|
/**
|
* 创建
|
*
|
* @param entity 实体对象
|
*/
|
void create(ModuleEntity entity);
|
|
/**
|
* 更新
|
*
|
* @param id 主键值
|
* @param entity 实体对象
|
* @return ignore
|
*/
|
boolean update(String id, ModuleEntity entity);
|
|
/**
|
* 删除
|
*
|
* @param entity 实体对象
|
*/
|
void delete(ModuleEntity entity);
|
|
/**
|
* 信息
|
*
|
* @param id 主键值
|
* @return ignore
|
*/
|
ModuleEntity getInfo(String id);
|
|
/**
|
* 列表
|
*
|
* @param filterFlowWork
|
* @param moduleAuthorize
|
* @param moduleUrlAddressAuthorize
|
* @return ignore
|
*/
|
List<ModuleEntity> getList(boolean filterFlowWork, List<String> moduleAuthorize, List<String> moduleUrlAddressAuthorize);
|
|
/**
|
* 列表
|
*
|
* @return ignore
|
*/
|
List<ModuleEntity> getList();
|
|
/**
|
* 租户菜单列表
|
*
|
* @return ignore
|
*/
|
List<ModuleEntity> getListTenant();
|
|
/**
|
* 通过id获取子菜单
|
*
|
* @param id 主键
|
* @return ignore
|
*/
|
List<ModuleEntity> getListByParentId(String id);
|
|
/**
|
* 信息
|
*
|
* @param id 主键值
|
* @return ignore
|
*/
|
ModuleEntity getInfo(String id, String systemId);
|
|
/**
|
* 信息
|
*
|
* @param id 主键值
|
* @return ignore
|
*/
|
ModuleEntity getInfo(String id, String systemId, String parentId);
|
|
/**
|
* 验证名称
|
*
|
* @param entity ignore
|
* @param category 分类
|
* @param systemId 分类
|
* @return ignore
|
*/
|
boolean isExistByFullName(ModuleEntity entity, String category, String systemId);
|
|
/**
|
* 验证编码
|
*
|
* @param entity 实体
|
* @param category 分类
|
* @param systemId 分类
|
* @return ignore
|
*/
|
boolean isExistByEnCode(ModuleEntity entity, String category, String systemId);
|
|
/**
|
* 路由地址判重
|
*
|
* @param entity 实体
|
* @param category 分类
|
* @param systemId 分类
|
* @return ignore
|
*/
|
boolean isExistByAddress(ModuleEntity entity, String category, String systemId);
|
|
/**
|
* 删除
|
*
|
* @param systemId 实体对象
|
*/
|
void deleteBySystemId(String systemId);
|
|
/**
|
* 导出数据
|
*
|
* @param id 主键
|
* @return DownloadVO ignore
|
*/
|
DownloadVO exportData(String id);
|
|
/**
|
* 导入数据
|
*
|
* @param exportModel 导出模型
|
* @param type
|
* @return ignore
|
* @throws DataException ignore
|
*/
|
ActionResult importData(ModuleExportModel exportModel, Integer type) throws DataException;
|
|
/**
|
* 功能设计发布功能自动创建app pc菜单
|
*
|
* @return
|
*/
|
List<ModuleEntity> getModuleList(String visualId);
|
|
/**
|
* 通过系统id获取菜单
|
*
|
* @param ids
|
* @param moduleAuthorize
|
* @param moduleUrlAddressAuthorize
|
* @return
|
*/
|
List<ModuleEntity> getModuleBySystemIds(List<String> ids, List<String> moduleAuthorize, List<String> moduleUrlAddressAuthorize, Integer type);
|
|
List<ModuleEntity> getModuleByIds(List<String> moduleIds);
|
|
/**
|
* 通过ids获取系统菜单
|
*
|
* @param enCodeList
|
* @return
|
*/
|
List<ModuleEntity> getListByEnCode(List<String> enCodeList);
|
|
/**
|
* @param mark
|
* @param id
|
* @param moduleAuthorize
|
* @param moduleUrlAddressAuthorize
|
* @return
|
*/
|
List<ModuleEntity> findModuleAdmin(int mark, String id, List<String> moduleAuthorize, List<String> moduleUrlAddressAuthorize);
|
|
void getParentModule(List<ModuleEntity> data, Map<String, ModuleEntity> moduleEntityMap);
|
|
/**
|
* 通过urlAddressList找id
|
*
|
* @param ids
|
* @param urlAddressList
|
* @return
|
*/
|
List<ModuleEntity> getListByUrlAddress(List<String> ids, List<String> urlAddressList);
|
|
/**
|
* 功能发布app pc菜单名称列表
|
*
|
* @return
|
*/
|
ModuleNameVO getModuleNameList(String visualId);
|
|
/**
|
* 获取表单关联的菜单数据列表
|
*
|
* @param page
|
* @return ignore
|
*/
|
List<ModuleSelectorVo> getFormMenuList(ModulePagination page);
|
|
/**
|
* 获取应用菜单列表
|
*
|
* @param type 3代表表单
|
* @param webType 页面类型(1、纯表单,2、表单加列表,4、数据视图)
|
* @param categorys 菜单类型(web,app)
|
* @return
|
*/
|
List<MenuSelectAllVO> getSystemMenu(Integer type, List<Integer> webType, List<String> categorys);
|
|
/**
|
* 根据参数查询菜单分页数据
|
*
|
* @param pagination
|
* @return
|
*/
|
List<ModuleSelectorVo> getPageList(ModulePagination pagination);
|
|
void setAutoEnCode(ModuleEntity entity);
|
}
|