Commit 6677bf12 by 18356073052

聊天侧边栏修改

1 parent 6ae3f7b7
......@@ -30,7 +30,7 @@ public class WeChatCollectionController extends BaseController {
/**
* 添加收藏
*/
@PreAuthorize("@ss.hasPermi('chat:collection:add')")
//@PreAuthorize("@ss.hasPermi('chat:collection:add')")
@Log(title = "添加收藏", businessType = BusinessType.INSERT)
@PutMapping("addCollection")
public AjaxResult addCollection(@RequestParam(value = "materialId") Long materialId,@RequestParam(value = "userId") Long userId) {
......@@ -42,7 +42,7 @@ public class WeChatCollectionController extends BaseController {
* 取消收藏
*/
@PreAuthorize("@ss.hasPermi('chat:collection:delete')")
@Log(title = "取消收藏", businessType = BusinessType.UPDATE)
// @Log(title = "取消收藏", businessType = BusinessType.UPDATE)
@PostMapping(value = "cancleCollection")
public AjaxResult cancleCollection(@RequestParam(value = "materialId") Long materialId,@RequestParam(value = "userId") Long userId) {
return toAjax(weChatCollectionService.cancleCollection(materialId, userId));
......@@ -51,7 +51,7 @@ public class WeChatCollectionController extends BaseController {
/**
* 收藏列表
*/
@PreAuthorize("@ss.hasPermi('chat:collection:list')")
// @PreAuthorize("@ss.hasPermi('chat:collection:list')")
@GetMapping("/list")
public TableDataInfo list(@RequestParam(value = "userId") Long userId) {
startPage();
......
......@@ -39,7 +39,7 @@ public class WeChatItemController extends BaseController {
/**
* h5素材列表
*/
@PreAuthorize("@ss.hasPermi('chat:item:list')")
//@PreAuthorize("@ss.hasPermi('chat:item:list')")
@GetMapping("/list")
public TableDataInfo list(@RequestParam(value = "sideId") Long sideId) {
startPage();
......
......@@ -165,6 +165,10 @@ wecome:
- /gettoken
- /service/get_provider_token
- /wecom/chat/side/list
- /wecom/chat/item/list
- /wecom/chat/collection/addCollection
- /wecom/chat/collection/cancleCollection
- /wecom/chat/collection/list
needContactTokenUrl:
- /externalcontact/get_follow_user_list
- /externalcontact/add_contact_way
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!