|
|
@@ -5,6 +5,8 @@ import org.apache.commons.logging.LogFactory;
|
|
|
import org.apache.shiro.authz.annotation.*;
|
|
|
import org.linlinjava.litemall.admin.annotation.RequiresPermissionsDesc;
|
|
|
import org.linlinjava.litemall.core.util.ResponseUtil;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -50,14 +52,14 @@ public class AdminIndexController {
|
|
|
|
|
|
@RequiresPermissions("index:permission:read")
|
|
|
@RequiresPermissionsDesc(menu={"其他" , "权限测试"}, button="权限读")
|
|
|
- @RequestMapping("/read")
|
|
|
+ @GetMapping("/read")
|
|
|
public Object read() {
|
|
|
return ResponseUtil.ok("hello world, this is admin service");
|
|
|
}
|
|
|
|
|
|
@RequiresPermissions("index:permission:write")
|
|
|
@RequiresPermissionsDesc(menu={"其他" , "权限测试"}, button="权限写")
|
|
|
- @RequestMapping("/write")
|
|
|
+ @PostMapping("/write")
|
|
|
public Object write() {
|
|
|
return ResponseUtil.ok("hello world, this is admin service");
|
|
|
}
|