Commit 1f1e1c3d authored by Quxl's avatar Quxl

xx

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