mirror of https://gitee.com/stylefeng/guns
【UserViewController】增加视图控制器
parent
dc3c688868
commit
407386485a
|
@ -0,0 +1,53 @@
|
|||
package cn.stylefeng.guns.modular.user;
|
||||
|
||||
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 chenjinlong
|
||||
* @date 2021/1/7 19:09
|
||||
*/
|
||||
@Controller
|
||||
@Slf4j
|
||||
@ApiResource(name = "用户管理界面渲染", path = "/view/user")
|
||||
public class UserViewController {
|
||||
|
||||
private String PREFIX = "/modular/system/user";
|
||||
|
||||
/**
|
||||
* 用户管理-首页-视图
|
||||
*
|
||||
* @author chenjinlong
|
||||
* @date 2021/1/7 19:09
|
||||
*/
|
||||
@GetResource(name = "用户管理-首页-视图", path = "")
|
||||
public String indexView() {
|
||||
return PREFIX + "/user.html";
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户管理—新增-视图
|
||||
*
|
||||
* @author chenjinlong
|
||||
* @date 2021/1/7 19:09
|
||||
*/
|
||||
@GetResource(name = "用户管理—新增-视图", path = "/addView")
|
||||
public String addView() {
|
||||
return PREFIX + "/user_add.html";
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户管理_修改_视图
|
||||
*
|
||||
* @author chenjinlong
|
||||
* @date 2021/1/7 19:09
|
||||
*/
|
||||
@GetResource(name = "用户管理-修改-视图", path = "editView")
|
||||
public String editView() {
|
||||
return PREFIX + "/user_edit.html";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue