api/system/usdtTaskItem/user/2006935749495414800 报错Request method 'POST' not supported
This commit is contained in:
1 parent
0708f6f1c8
commit
0f921d4d9f
1 file changed
+6
-4
+6
-4
@@ -122,19 +122,21 @@ public class UsdtAggregationTaskItemController extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取归集任务明细详细信息
|
* 获取归集任务明细详细信息。
|
||||||
|
* 兼容使用 POST 获取详情的客户端;两种方法均只读并执行相同的权限校验。
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('system:usdtTaskItem:query')")
|
@PreAuthorize("@ss.hasPermi('system:usdtTaskItem:query')")
|
||||||
@GetMapping(value = "/{id}")
|
@RequestMapping(value = "/{id}", method = {RequestMethod.GET, RequestMethod.POST})
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
{
|
{
|
||||||
return AjaxResult.success(usdtAggregationTaskItemService.selectUsdtAggregationTaskItemById(id,false));
|
return AjaxResult.success(usdtAggregationTaskItemService.selectUsdtAggregationTaskItemById(id,false));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 获取归集任务明细详细信息
|
* 获取当前用户的归集任务明细详细信息。
|
||||||
|
* 兼容 POST 查询,仍由服务层校验明细归属,不允许借此修改或执行归集明细。
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('system:usdtTaskItem:user-query')")
|
@PreAuthorize("@ss.hasPermi('system:usdtTaskItem:user-query')")
|
||||||
@GetMapping(value = "/user/{id}")
|
@RequestMapping(value = "/user/{id}", method = {RequestMethod.GET, RequestMethod.POST})
|
||||||
public AjaxResult userGetInfo(@PathVariable("id") Long id)
|
public AjaxResult userGetInfo(@PathVariable("id") Long id)
|
||||||
{
|
{
|
||||||
return AjaxResult.success(usdtAggregationTaskItemService.selectUsdtAggregationTaskItemById(id,true));
|
return AjaxResult.success(usdtAggregationTaskItemService.selectUsdtAggregationTaskItemById(id,true));
|
||||||
|
|||||||
Reference in new issue
Block a user