@Controller @RequestMapping(value="/user") public class UserController extends BaseController
Constructor and Description |
---|
UserController() |
Modifier and Type | Method and Description |
---|---|
JsonUtil |
addUser(SysUser user,
String[] role) |
JsonUtil |
checkUser(String uname,
javax.servlet.http.HttpServletRequest req)
验证用户名是否存在
|
JsonUtil |
del(String id,
boolean flag) |
String |
goAddUser(org.springframework.ui.Model model) |
String |
goRePass(String id,
org.springframework.ui.Model model) |
String |
goUpdateUser(String id,
org.springframework.ui.Model model,
boolean detail) |
JsonUtil |
imgUpload(javax.servlet.http.HttpServletRequest req,
org.springframework.web.multipart.MultipartFile file,
org.springframework.ui.ModelMap model)
头像上传 目前首先相对路径
|
JsonUtil |
rePass(String id,
String pass,
String newPwd)
修改密码
|
String |
showTest() |
String |
showUser(org.springframework.ui.Model model) |
String |
showUser(org.springframework.ui.Model model,
String roleId,
int page,
int limit) |
ReType |
showUser(org.springframework.ui.Model model,
SysUser user,
String page,
String limit) |
JsonUtil |
updateUser(SysUser user,
String[] role) |
authorizationException, initBinder
@GetMapping(value="mainTest") public String showTest()
@GetMapping(value="showUser") public String showUser(org.springframework.ui.Model model)
@GetMapping(value="showUserList") @ResponseBody public ReType showUser(org.springframework.ui.Model model, SysUser user, String page, String limit)
@GetMapping(value="listByRoleId") @ResponseBody public String showUser(org.springframework.ui.Model model, String roleId, int page, int limit)
@GetMapping(value="showAddUser") public String goAddUser(org.springframework.ui.Model model)
@Log(desc="\u6dfb\u52a0\u7528\u6237") @PostMapping(value="addUser") @ResponseBody public JsonUtil addUser(SysUser user, String[] role)
@GetMapping(value="updateUser") public String goUpdateUser(String id, org.springframework.ui.Model model, boolean detail)
@Log(desc="\u66f4\u65b0\u7528\u6237", type=UPDATE) @PostMapping(value="updateUser") @ResponseBody public JsonUtil updateUser(SysUser user, String[] role)
@Log(desc="\u5220\u9664\u7528\u6237", type=DEL) @PostMapping(value="/del") @ResponseBody public JsonUtil del(String id, boolean flag)
@GetMapping(value="goRePass") public String goRePass(String id, org.springframework.ui.Model model)
@Log(desc="\u4fee\u6539\u5bc6\u7801", type=UPDATE) @PostMapping(value="rePass") @ResponseBody public JsonUtil rePass(String id, String pass, String newPwd)
id
- pass
- newPwd
- @PostMapping(value="upload") @ResponseBody public JsonUtil imgUpload(javax.servlet.http.HttpServletRequest req, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile file, org.springframework.ui.ModelMap model)
Copyright © 2019. All rights reserved.