Commit 1f1e1c3d authored by Quxl's avatar Quxl

xx

parent cd7a0aef
......@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ResourceUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
......@@ -42,7 +43,7 @@ public class AdminAuthController {
AdminTokenService tokenService;
@ResponseBody
@RequestMapping("adminList")
@PostMapping("adminList")
@ApiOperation("管理员分页查询")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="keyword", value="关键字"),
......@@ -60,7 +61,7 @@ public class AdminAuthController {
@ResponseBody
@Transactional
@RequestMapping("adminSave")
@PostMapping("adminSave")
@ApiOperation("添加管理员")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="realname", value="姓名"),
......@@ -87,7 +88,7 @@ public class AdminAuthController {
}
@ResponseBody
@RequestMapping("adminUpdate")
@PostMapping("adminUpdate")
@ApiOperation("修改管理员")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="adminid", value="管理员ID"),
......@@ -117,7 +118,7 @@ public class AdminAuthController {
}
@ResponseBody
@RequestMapping("adminDilabled")
@PostMapping("adminDilabled")
@ApiOperation("禁用管理员")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="integer", required=true, name="adminid", value="管理员ID", allowMultiple=true),
......@@ -129,7 +130,7 @@ public class AdminAuthController {
}
@ResponseBody
@RequestMapping("groupList")
@PostMapping("groupList")
@ApiOperation("管理组分页查询")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="keyword", value="关键字"),
......@@ -145,7 +146,7 @@ public class AdminAuthController {
}
@ResponseBody
@RequestMapping("allAuth")
@PostMapping("allAuth")
@ApiOperation("全部管理组权限查询")
public Object allAuth() throws FileNotFoundException {
File file = ResourceUtils.getFile("classpath:auth_admin.json");
......@@ -154,7 +155,7 @@ public class AdminAuthController {
}
@ResponseBody
@RequestMapping("groupAuth")
@PostMapping("groupAuth")
@ApiOperation("管理组权限查询")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="integer", required=true, name="group_id", value="组ID"),
......@@ -165,7 +166,7 @@ public class AdminAuthController {
}
@ResponseBody
@RequestMapping("groupSaveOrUpdate")
@PostMapping("groupSaveOrUpdate")
@ApiOperation("保存或更新管理组")
public Object groupSaveOrUpdate(Integer group_id, String group_name, Integer state, String[] pwoer, String group_power) {
Fc_admin_group group = new Fc_admin_group();
......
......@@ -5,6 +5,7 @@ import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
......@@ -29,9 +30,8 @@ public class AdminUserController {
@Autowired
AdminUserService service;
@ResponseBody
@RequestMapping("groupList")
@PostMapping("groupList")
@ApiOperation("评委组分页查询")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="keyword", value="关键字"),
......@@ -47,4 +47,5 @@ public class AdminUserController {
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment