Commit 7725865e by sunxiwang

Merge remote-tracking branch 'origin/master'

2 parents e2b1563b 30126a28
...@@ -7,10 +7,7 @@ import com.linkwechat.common.enums.BusinessType; ...@@ -7,10 +7,7 @@ import com.linkwechat.common.enums.BusinessType;
import com.linkwechat.wecom.service.IWeChatCollectionService; import com.linkwechat.wecom.service.IWeChatCollectionService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/** /**
* 聊天工具 侧边栏栏 素材收藏 * 聊天工具 侧边栏栏 素材收藏
...@@ -31,8 +28,8 @@ public class WeChatCollectionController extends BaseController { ...@@ -31,8 +28,8 @@ 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 @PostMapping
public AjaxResult addCollection(@RequestParam(value = "materialId") Long materialId,@RequestParam(value = "userId") Long userId) { public AjaxResult addCollection(@RequestParam(value = "materialId") Long materialId, @RequestParam(value = "userId") Long userId) {
return toAjax(weChatCollectionService.addCollection(materialId, userId)); return toAjax(weChatCollectionService.addCollection(materialId, userId));
} }
...@@ -43,7 +40,7 @@ public class WeChatCollectionController extends BaseController { ...@@ -43,7 +40,7 @@ public class WeChatCollectionController extends BaseController {
@PreAuthorize("@ss.hasPermi('chat:collection:delete')") @PreAuthorize("@ss.hasPermi('chat:collection:delete')")
@Log(title = "取消收藏", businessType = BusinessType.UPDATE) @Log(title = "取消收藏", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult cancleCollection(@RequestParam(value = "materialId") Long materialId,@RequestParam(value = "userId") Long userId) { public AjaxResult cancleCollection(@RequestParam(value = "materialId") Long materialId, @RequestParam(value = "userId") Long userId) {
return toAjax(weChatCollectionService.cancleCollection(materialId, userId)); return toAjax(weChatCollectionService.cancleCollection(materialId, userId));
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!