|
|
@ -1,6 +1,6 @@
|
|
|
|
package com.xxl.job.admin.controller;
|
|
|
|
package com.xxl.job.admin.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import com.xxl.job.admin.controller.annotation.PermessionLimit;
|
|
|
|
import com.xxl.job.admin.controller.annotation.PermissionLimit;
|
|
|
|
import com.xxl.job.admin.core.model.XxlJobGroup;
|
|
|
|
import com.xxl.job.admin.core.model.XxlJobGroup;
|
|
|
|
import com.xxl.job.admin.core.model.XxlJobUser;
|
|
|
|
import com.xxl.job.admin.core.model.XxlJobUser;
|
|
|
|
import com.xxl.job.admin.core.util.I18nUtil;
|
|
|
|
import com.xxl.job.admin.core.util.I18nUtil;
|
|
|
@ -35,7 +35,7 @@ public class UserController {
|
|
|
|
private XxlJobGroupDao xxlJobGroupDao;
|
|
|
|
private XxlJobGroupDao xxlJobGroupDao;
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping
|
|
|
|
@RequestMapping
|
|
|
|
@PermessionLimit(adminuser = true)
|
|
|
|
@PermissionLimit(adminuser = true)
|
|
|
|
public String index(Model model) {
|
|
|
|
public String index(Model model) {
|
|
|
|
|
|
|
|
|
|
|
|
// 执行器列表
|
|
|
|
// 执行器列表
|
|
|
@ -47,7 +47,7 @@ public class UserController {
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/pageList")
|
|
|
|
@RequestMapping("/pageList")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
@PermessionLimit(adminuser = true)
|
|
|
|
@PermissionLimit(adminuser = true)
|
|
|
|
public Map<String, Object> pageList(@RequestParam(required = false, defaultValue = "0") int start,
|
|
|
|
public Map<String, Object> pageList(@RequestParam(required = false, defaultValue = "0") int start,
|
|
|
|
@RequestParam(required = false, defaultValue = "10") int length,
|
|
|
|
@RequestParam(required = false, defaultValue = "10") int length,
|
|
|
|
String username, int role) {
|
|
|
|
String username, int role) {
|
|
|
@ -66,7 +66,7 @@ public class UserController {
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/add")
|
|
|
|
@RequestMapping("/add")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
@PermessionLimit(adminuser = true)
|
|
|
|
@PermissionLimit(adminuser = true)
|
|
|
|
public ReturnT<String> add(XxlJobUser xxlJobUser) {
|
|
|
|
public ReturnT<String> add(XxlJobUser xxlJobUser) {
|
|
|
|
|
|
|
|
|
|
|
|
// valid username
|
|
|
|
// valid username
|
|
|
@ -101,7 +101,7 @@ public class UserController {
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/update")
|
|
|
|
@RequestMapping("/update")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
@PermessionLimit(adminuser = true)
|
|
|
|
@PermissionLimit(adminuser = true)
|
|
|
|
public ReturnT<String> update(HttpServletRequest request, XxlJobUser xxlJobUser) {
|
|
|
|
public ReturnT<String> update(HttpServletRequest request, XxlJobUser xxlJobUser) {
|
|
|
|
|
|
|
|
|
|
|
|
// avoid opt login seft
|
|
|
|
// avoid opt login seft
|
|
|
@ -129,7 +129,7 @@ public class UserController {
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/remove")
|
|
|
|
@RequestMapping("/remove")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
@PermessionLimit(adminuser = true)
|
|
|
|
@PermissionLimit(adminuser = true)
|
|
|
|
public ReturnT<String> remove(HttpServletRequest request, int id) {
|
|
|
|
public ReturnT<String> remove(HttpServletRequest request, int id) {
|
|
|
|
|
|
|
|
|
|
|
|
// avoid opt login seft
|
|
|
|
// avoid opt login seft
|
|
|
|