parent
a9dba08a8d
commit
f7538c1ed8
@ -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;
|
package org.jeecg.modules.system.service;
|
||||||
|
|
||||||
import org.jeecg.modules.system.entity.SysRoleIndex;
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import org.jeecg.modules.system.entity.SysRoleIndex;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 角色首页配置
|
* @Description: 角色首页配置
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
* @Date: 2022-03-25
|
* @Date: 2022-03-25
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
public interface ISysRoleIndexService extends IService<SysRoleIndex> {
|
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