mirror of https://github.com/jeecgboot/jeecg-boot
zhangdaiscott
9 months ago
5 changed files with 104 additions and 19 deletions
@ -0,0 +1,25 @@
|
||||
package org.jeecg.modules.system.constant; |
||||
|
||||
/** |
||||
* 默认首页常量 |
||||
*/ |
||||
public interface DefIndexConst { |
||||
|
||||
/** |
||||
* 默认首页的roleCode |
||||
*/ |
||||
String DEF_INDEX_ALL = "DEF_INDEX_ALL"; |
||||
|
||||
/** |
||||
* 默认首页的缓存key |
||||
*/ |
||||
String CACHE_KEY = "sys:cache:def_index"; |
||||
|
||||
/** |
||||
* 默认首页的初始值 |
||||
*/ |
||||
String DEF_INDEX_NAME = "首页"; |
||||
String DEF_INDEX_URL = "/dashboard/analysis"; |
||||
String DEF_INDEX_COMPONENT = "dashboard/Analysis"; |
||||
|
||||
} |
@ -1,14 +1,43 @@
|
||||
package org.jeecg.modules.system.service; |
||||
|
||||
import org.jeecg.modules.system.entity.SysRoleIndex; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import org.jeecg.modules.system.entity.SysRoleIndex; |
||||
|
||||
/** |
||||
* @Description: 角色首页配置 |
||||
* @Author: jeecg-boot |
||||
* @Date: 2022-03-25 |
||||
* @Date: 2022-03-25 |
||||
* @Version: V1.0 |
||||
*/ |
||||
public interface ISysRoleIndexService extends IService<SysRoleIndex> { |
||||
|
||||
/** |
||||
* 查询默认首页 |
||||
* |
||||
* @return |
||||
*/ |
||||
SysRoleIndex queryDefaultIndex(); |
||||
|
||||
/** |
||||
* 更新默认首页 |
||||
* |
||||
* @param url |
||||
* @param component |
||||
* @param isRoute 是否是路由页面 |
||||
* @return |
||||
*/ |
||||
boolean updateDefaultIndex(String url, String component, boolean isRoute); |
||||
|
||||
/** |
||||
* 创建最原始的默认首页配置 |
||||
* |
||||
* @return |
||||
*/ |
||||
SysRoleIndex initDefaultIndex(); |
||||
|
||||
/** |
||||
* 清理默认首页的redis缓存 |
||||
*/ |
||||
void cleanDefaultIndexCache(); |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue