Commit 2f5d59c6 by 18356073052

工具 侧边栏栏 素材收藏 修改

1 parent 499b6098
......@@ -33,7 +33,7 @@ public class WeChatCollectionController extends BaseController {
//@PreAuthorize("@ss.hasPermi('chat:collection:add')")
@Log(title = "添加收藏", businessType = BusinessType.INSERT)
@PutMapping("addCollection")
public AjaxResult addCollection(@RequestParam(value = "materialId") Long materialId,@RequestParam(value = "userName") String userId) {
public AjaxResult addCollection(@RequestParam(value = "materialId") Long materialId,@RequestParam(value = "userId") String userId) {
return toAjax(weChatCollectionService.addCollection(materialId, userId));
}
......@@ -44,7 +44,7 @@ public class WeChatCollectionController extends BaseController {
@PreAuthorize("@ss.hasPermi('chat:collection:delete')")
// @Log(title = "取消收藏", businessType = BusinessType.UPDATE)
@PostMapping(value = "cancleCollection")
public AjaxResult cancleCollection(@RequestParam(value = "materialId") Long materialId,@RequestParam(value = "userName") String userId) {
public AjaxResult cancleCollection(@RequestParam(value = "materialId") Long materialId,@RequestParam(value = "userId") String userId) {
return toAjax(weChatCollectionService.cancleCollection(materialId, userId));
}
......@@ -53,9 +53,9 @@ public class WeChatCollectionController extends BaseController {
*/
// @PreAuthorize("@ss.hasPermi('chat:collection:list')")
@GetMapping("/list")
public TableDataInfo list(@RequestParam(value = "userName") String userName,@RequestParam(value = "keyword",required = false) String userId) {
public TableDataInfo list(@RequestParam(value = "userId") String userId,@RequestParam(value = "keyword",required = false) String keyword) {
startPage();
List<WeChatSideVo> collections = weChatCollectionService.collections(userName,userId);
List<WeChatSideVo> collections = weChatCollectionService.collections(userId,keyword);
return getDataTable(collections);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!