Commit 4f134f8c by zhangkb

修改标签关系接口

parent d7a7cc33
...@@ -47,13 +47,13 @@ public class TagRelCtrl { ...@@ -47,13 +47,13 @@ public class TagRelCtrl {
@ApiOperation(value = "根据当前标签id获取源标签", notes = "根据当前标签id获取源标签") @ApiOperation(value = "根据当前标签id获取源标签", notes = "根据当前标签id获取源标签")
@PostMapping(value = "/getSourceTags") @PostMapping(value = "/getSourceTags")
public List<TagRelation> getSourceTags(String tagId){ public List<TagRelation> getSourceTags(@RequestParam String tagId){
return tagRelService.getSource(tagId); return tagRelService.getSource(tagId);
} }
@ApiOperation(value = "根据当前标签id获取目标标签", notes = "根据当前标签id获目标标签") @ApiOperation(value = "根据当前标签id获取目标标签", notes = "根据当前标签id获目标标签")
@PostMapping(value = "/getTargetTags") @PostMapping(value = "/getTargetTags")
public List<TagRelation> getTargetTags(String tagId){ public List<TagRelation> getTargetTags(@RequestParam String tagId){
return tagRelService.getTarget(tagId); return tagRelService.getTarget(tagId);
} }
} }
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