Commit 6677bf12 by 18356073052

聊天侧边栏修改

1 parent 6ae3f7b7
...@@ -30,7 +30,7 @@ public class WeChatCollectionController extends BaseController { ...@@ -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) @Log(title = "添加收藏", businessType = BusinessType.INSERT)
@PutMapping("addCollection") @PutMapping("addCollection")
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) {
...@@ -42,7 +42,7 @@ public class WeChatCollectionController extends BaseController { ...@@ -42,7 +42,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)
@PostMapping(value = "cancleCollection") @PostMapping(value = "cancleCollection")
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));
...@@ -51,7 +51,7 @@ public class WeChatCollectionController extends BaseController { ...@@ -51,7 +51,7 @@ public class WeChatCollectionController extends BaseController {
/** /**
* 收藏列表 * 收藏列表
*/ */
@PreAuthorize("@ss.hasPermi('chat:collection:list')") // @PreAuthorize("@ss.hasPermi('chat:collection:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(@RequestParam(value = "userId") Long userId) { public TableDataInfo list(@RequestParam(value = "userId") Long userId) {
startPage(); startPage();
......
...@@ -39,7 +39,7 @@ public class WeChatItemController extends BaseController { ...@@ -39,7 +39,7 @@ public class WeChatItemController extends BaseController {
/** /**
* h5素材列表 * h5素材列表
*/ */
@PreAuthorize("@ss.hasPermi('chat:item:list')") //@PreAuthorize("@ss.hasPermi('chat:item:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(@RequestParam(value = "sideId") Long sideId) { public TableDataInfo list(@RequestParam(value = "sideId") Long sideId) {
startPage(); startPage();
......
...@@ -165,6 +165,10 @@ wecome: ...@@ -165,6 +165,10 @@ wecome:
- /gettoken - /gettoken
- /service/get_provider_token - /service/get_provider_token
- /wecom/chat/side/list - /wecom/chat/side/list
- /wecom/chat/item/list
- /wecom/chat/collection/addCollection
- /wecom/chat/collection/cancleCollection
- /wecom/chat/collection/list
needContactTokenUrl: needContactTokenUrl:
- /externalcontact/get_follow_user_list - /externalcontact/get_follow_user_list
- /externalcontact/add_contact_way - /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!