mirror of https://gitee.com/stylefeng/guns
更新工作台和分析页两个界面,更新锁屏界面
parent
6e5af0da59
commit
0de7eee12f
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.guns.core.listener;
|
||||
|
||||
import cn.stylefeng.guns.core.consts.ProjectConstants;
|
||||
import cn.stylefeng.guns.modular.service.InitAdminService;
|
||||
import cn.stylefeng.guns.modular.index.service.InitAdminService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.boot.context.event.ApplicationReadyEvent;
|
||||
import org.springframework.context.ApplicationListener;
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
package cn.stylefeng.guns.modular.blackboard;
|
||||
|
||||
import cn.stylefeng.roses.kernel.resource.api.annotation.ApiResource;
|
||||
import cn.stylefeng.roses.kernel.resource.api.annotation.GetResource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
||||
/**
|
||||
* 工作台和分析页界面渲染
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2020/12/29 21:29
|
||||
*/
|
||||
@Controller
|
||||
@Slf4j
|
||||
@ApiResource(name = "工作台和分析页面")
|
||||
public class BlackboardViewController {
|
||||
|
||||
/**
|
||||
* 工作台
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2018/12/24 22:43
|
||||
*/
|
||||
@GetResource(name = "工作台", path = "/blackboard/platform", requiredPermission = false)
|
||||
public String platform() {
|
||||
return "/modular/blackboard/board_platform.html";
|
||||
}
|
||||
|
||||
/**
|
||||
* 分析页面
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2020/12/29 21:27
|
||||
*/
|
||||
@GetResource(name = "分析页面", path = "/blackboard/analyse", requiredPermission = false)
|
||||
public String analyse() {
|
||||
return "/modular/blackboard/board_analyse.html";
|
||||
}
|
||||
|
||||
}
|
|
@ -1,9 +1,8 @@
|
|||
package cn.stylefeng.guns.modular.controller;
|
||||
package cn.stylefeng.guns.modular.index.controller;
|
||||
|
||||
import cn.stylefeng.roses.kernel.auth.api.context.LoginContext;
|
||||
import cn.stylefeng.roses.kernel.auth.api.pojo.login.LoginUser;
|
||||
import cn.stylefeng.roses.kernel.auth.api.pojo.login.basic.SimpleUserInfo;
|
||||
import cn.stylefeng.roses.kernel.file.FileOperatorApi;
|
||||
import cn.stylefeng.roses.kernel.menu.modular.service.SysMenuService;
|
||||
import cn.stylefeng.roses.kernel.resource.api.annotation.ApiResource;
|
||||
import cn.stylefeng.roses.kernel.resource.api.annotation.GetResource;
|
||||
|
@ -39,7 +38,7 @@ public class IndexViewController {
|
|||
* @author fengshuonan
|
||||
* @date 2020/12/13 17:19
|
||||
*/
|
||||
@GetResource(name = "首页界面", path = "/", requiredPermission = false, requiredLogin = false)
|
||||
@GetResource(name = "首页界面", path = "/", requiredLogin = false, requiredPermission = false)
|
||||
public String indexView(Model model) {
|
||||
|
||||
// 当前用户已经登录,跳转到首页
|
||||
|
@ -65,4 +64,15 @@ public class IndexViewController {
|
|||
return "/login.html";
|
||||
}
|
||||
|
||||
/**
|
||||
* 锁屏界面
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2020/12/29 21:34
|
||||
*/
|
||||
@GetResource(name = "锁屏界面", path = "/lock", requiredPermission = false)
|
||||
public String lock() {
|
||||
return "/modular/index/lock-screen.html";
|
||||
}
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package cn.stylefeng.guns.modular.service;
|
||||
package cn.stylefeng.guns.modular.index.service;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package cn.stylefeng.guns.modular.service;
|
||||
package cn.stylefeng.guns.modular.index.service;
|
||||
|
||||
import cn.stylefeng.guns.core.consts.ProjectConstants;
|
||||
import cn.stylefeng.roses.kernel.resource.modular.entity.SysResource;
|
|
@ -1,4 +1,4 @@
|
|||
package cn.stylefeng.guns.modular.controller;
|
||||
package cn.stylefeng.guns.modular.login;
|
||||
|
||||
import cn.stylefeng.roses.kernel.auth.api.AuthServiceApi;
|
||||
import cn.stylefeng.roses.kernel.auth.api.context.LoginContext;
|
||||
|
@ -11,7 +11,6 @@ import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
|
|||
import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
@ -19,7 +18,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 首页相关的界面渲染
|
||||
* 登录相关的界面渲染
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2020/12/27 16:23
|
|
@ -29,7 +29,7 @@
|
|||
<a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a>
|
||||
</li>
|
||||
<li class="layui-nav-item layui-hide-xs" lay-unselect>
|
||||
<a ew-event="lockScreen" title="锁屏" data-url="${ctxPath}/system/lock"><i class="layui-icon layui-icon-password"></i></a>
|
||||
<a ew-event="lockScreen" title="锁屏" data-url="${ctxPath}/lock"><i class="layui-icon layui-icon-password"></i></a>
|
||||
</li>
|
||||
<li class="layui-nav-item" lay-unselect>
|
||||
<a>
|
||||
|
|
Loading…
Reference in New Issue