|
@@ -42,7 +42,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
- //@RequiresRoles("admin")
|
|
|
+ @RequiresRoles("admin")
|
|
|
@GetMapping(value = "/list")
|
|
|
public Result<?> queryPageList(
|
|
|
SysTableWhiteList sysTableWhiteList,
|
|
@@ -64,7 +64,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
|
|
|
*/
|
|
|
@AutoLog(value = "系统表白名单-添加")
|
|
|
@ApiOperation(value = "系统表白名单-添加", notes = "系统表白名单-添加")
|
|
|
- //@RequiresRoles("admin")
|
|
|
+ @RequiresRoles("admin")
|
|
|
@PostMapping(value = "/add")
|
|
|
public Result<?> add(@RequestBody SysTableWhiteList sysTableWhiteList) {
|
|
|
if (sysTableWhiteListService.add(sysTableWhiteList)) {
|
|
@@ -82,7 +82,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
|
|
|
*/
|
|
|
@AutoLog(value = "系统表白名单-编辑")
|
|
|
@ApiOperation(value = "系统表白名单-编辑", notes = "系统表白名单-编辑")
|
|
|
- //@RequiresRoles("admin")
|
|
|
+ @RequiresRoles("admin")
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
|
|
public Result<?> edit(@RequestBody SysTableWhiteList sysTableWhiteList) {
|
|
|
if (sysTableWhiteListService.edit(sysTableWhiteList)) {
|
|
@@ -100,7 +100,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
|
|
|
*/
|
|
|
@AutoLog(value = "系统表白名单-通过id删除")
|
|
|
@ApiOperation(value = "系统表白名单-通过id删除", notes = "系统表白名单-通过id删除")
|
|
|
- //@RequiresRoles("admin")
|
|
|
+ @RequiresRoles("admin")
|
|
|
@DeleteMapping(value = "/delete")
|
|
|
public Result<?> delete(@RequestParam(name = "id") String id) {
|
|
|
if (sysTableWhiteListService.deleteByIds(id)) {
|
|
@@ -118,7 +118,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
|
|
|
*/
|
|
|
@AutoLog(value = "系统表白名单-批量删除")
|
|
|
@ApiOperation(value = "系统表白名单-批量删除", notes = "系统表白名单-批量删除")
|
|
|
- //@RequiresRoles("admin")
|
|
|
+ @RequiresRoles("admin")
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
public Result<?> deleteBatch(@RequestParam(name = "ids") String ids) {
|
|
|
if (sysTableWhiteListService.deleteByIds(ids)) {
|
|
@@ -136,7 +136,7 @@ public class SysTableWhiteListController extends JeecgController<SysTableWhiteLi
|
|
|
*/
|
|
|
@AutoLog(value = "系统表白名单-通过id查询")
|
|
|
@ApiOperation(value = "系统表白名单-通过id查询", notes = "系统表白名单-通过id查询")
|
|
|
- //@RequiresRoles("admin")
|
|
|
+ @RequiresRoles("admin")
|
|
|
@GetMapping(value = "/queryById")
|
|
|
public Result<?> queryById(@RequestParam(name = "id", required = true) String id) {
|
|
|
SysTableWhiteList sysTableWhiteList = sysTableWhiteListService.getById(id);
|