Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6677bf12
authored
Jan 13, 2021
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
聊天侧边栏修改
1 parent
6ae3f7b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatCollectionController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatItemController.java
linkwe-admin/src/main/resources/application.yml
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatCollectionController.java
View file @
6677bf1
...
@@ -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
();
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatItemController.java
View file @
6677bf1
...
@@ -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
();
...
...
linkwe-admin/src/main/resources/application.yml
View file @
6677bf1
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment