Commit 07304175 by 吴迪

【新增】修改代码

parent 38691092
......@@ -63,7 +63,6 @@ public class ShiroConfig {
//不需要登录的接口
filterMap.put("/*/authApi/login", "anon");
filterMap.put("/*/api/**", "anon");
filterMap.put("/indexCarouselManage/**", "anon");
filterMap.put("/**", "oauth2");
shiroFilter.setFilterChainDefinitionMap(filterMap);
......
......@@ -58,6 +58,20 @@ public class IndexCarouselManageController extends AbstractController {
return R.ok().put("indexCarouselManage", indexCarouselManage);
}
/**
* 信息
*/
@Login
@RequestMapping("/api/info/{id}")
// @RequiresPermissions("generator:indexcarouselmanage:info")
public R apiInfo(@PathVariable("id") Integer id){
IndexCarouselManageEntity indexCarouselManage = indexCarouselManageService.getById(id);
return R.ok().put("indexCarouselManage", indexCarouselManage);
}
/**
* 保存
*/
......
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