【UserViewController】增加视图控制器

pull/64/head
chenjinlong 2021-01-07 19:27:53 +08:00
parent dc3c688868
commit 407386485a
1 changed files with 53 additions and 0 deletions

View File

@ -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";
}
}