Commit 1c1d4f78 by 18356073052

侧边栏收藏请求方法修改

1 parent 2709d7bc
...@@ -32,7 +32,7 @@ public class WeChatCollectionController extends BaseController { ...@@ -32,7 +32,7 @@ public class WeChatCollectionController extends BaseController {
*/ */
//@PreAuthorize("@ss.hasPermi('chat:collection:add')") //@PreAuthorize("@ss.hasPermi('chat:collection:add')")
@Log(title = "添加收藏", businessType = BusinessType.INSERT) @Log(title = "添加收藏", businessType = BusinessType.INSERT)
@PutMapping("addCollection") @PostMapping("addCollection")
public AjaxResult addCollection(@RequestParam(value = "materialId") Long materialId,@RequestParam(value = "userId") String userId) { public AjaxResult addCollection(@RequestParam(value = "materialId") Long materialId,@RequestParam(value = "userId") String userId) {
return toAjax(weChatCollectionService.addCollection(materialId, userId)); return toAjax(weChatCollectionService.addCollection(materialId, userId));
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!