接口逻辑补充零碎修改等

This commit is contained in:
mi9688
2024-10-21 17:41:45 +08:00
parent a8faa7cdeb
commit 655e22579c
14 changed files with 180 additions and 33 deletions

View File

@ -130,10 +130,10 @@ public class GGroupsController extends BaseController
/**
* 删除组
*/
@DeleteMapping("/{ids}")
@DeleteMapping("/{id}")
@ApiOperation("删除组")
public AjaxResult remove(@PathVariable Long[] ids)
public AjaxResult remove(@PathVariable Long id)
{
return toAjax(gGroupsService.deleteGGroupsByIds(ids));
return toAjax(gGroupsService.deleteGGroupsById(id));
}
}

View File

@ -86,6 +86,15 @@ public class ProjectController extends BaseController
{
return success(projectService.selectProjectByProjectId(projectId));
}
/**
* 查询管理员项目切换下拉框数据
*/
@GetMapping("/adminProjectList")
// @PreAuthorize("@ss.hasPermi('iot:project:adminProjectList')")
@ApiOperation("查询管理员项目切换下拉框数据")
public AjaxResult getAdminProjectList(){
return success(projectService.selectAdminProjectList());
}
/**
* 新增项目