| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- 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> {
- /**
- * 列表
- *
- * @param appCode 系统编码
- * @param category
- * @param keyword
- * @param parentId
- * @param release
- * @return ignore
- */
- List<ModuleEntity> getList(String appCode, String category, String keyword, Integer type, Integer enabledMark, String parentId, boolean release);
- /**
- * 创建
- *
- * @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);
- /**
- * 创建审批中心菜单
- *
- * @param systemId
- */
- void createWorkMenu(String systemId);
- void setAutoEnCode(ModuleEntity entity);
- }
|