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 2f5d59c6
authored
Jan 27, 2021
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工具 侧边栏栏 素材收藏 修改
1 parent
499b6098
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 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/WeChatCollectionController.java
View file @
2f5d59c
...
@@ -33,7 +33,7 @@ public class WeChatCollectionController extends BaseController {
...
@@ -33,7 +33,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
=
"user
Name
"
)
String
userId
)
{
public
AjaxResult
addCollection
(
@RequestParam
(
value
=
"materialId"
)
Long
materialId
,
@RequestParam
(
value
=
"user
Id
"
)
String
userId
)
{
return
toAjax
(
weChatCollectionService
.
addCollection
(
materialId
,
userId
));
return
toAjax
(
weChatCollectionService
.
addCollection
(
materialId
,
userId
));
}
}
...
@@ -44,7 +44,7 @@ public class WeChatCollectionController extends BaseController {
...
@@ -44,7 +44,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
=
"user
Name
"
)
String
userId
)
{
public
AjaxResult
cancleCollection
(
@RequestParam
(
value
=
"materialId"
)
Long
materialId
,
@RequestParam
(
value
=
"user
Id
"
)
String
userId
)
{
return
toAjax
(
weChatCollectionService
.
cancleCollection
(
materialId
,
userId
));
return
toAjax
(
weChatCollectionService
.
cancleCollection
(
materialId
,
userId
));
}
}
...
@@ -53,9 +53,9 @@ public class WeChatCollectionController extends BaseController {
...
@@ -53,9 +53,9 @@ 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
=
"user
Name"
)
String
userName
,
@RequestParam
(
value
=
"keyword"
,
required
=
false
)
String
userI
d
)
{
public
TableDataInfo
list
(
@RequestParam
(
value
=
"user
Id"
)
String
userId
,
@RequestParam
(
value
=
"keyword"
,
required
=
false
)
String
keywor
d
)
{
startPage
();
startPage
();
List
<
WeChatSideVo
>
collections
=
weChatCollectionService
.
collections
(
user
Name
,
userI
d
);
List
<
WeChatSideVo
>
collections
=
weChatCollectionService
.
collections
(
user
Id
,
keywor
d
);
return
getDataTable
(
collections
);
return
getDataTable
(
collections
);
}
}
...
...
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