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 06d817fe
authored
Jan 05, 2021
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
聊天工具侧边栏
1 parent
78a79ad1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatSideController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatSideController.java
0 → 100644
View file @
06d817f
package
com
.
linkwechat
.
web
.
controller
.
wecom
;
import
com.linkwechat.common.annotation.Log
;
import
com.linkwechat.common.core.controller.BaseController
;
import
com.linkwechat.common.core.domain.AjaxResult
;
import
com.linkwechat.common.core.page.TableDataInfo
;
import
com.linkwechat.common.enums.BusinessType
;
import
com.linkwechat.wecom.domain.WeChatSide
;
import
com.linkwechat.wecom.service.IWeChatSideService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* 聊天工具侧边栏
* @author kewen
*/
@RequestMapping
(
value
=
"/wecom/chat/side"
)
@RestController
public
class
WeChatSideController
extends
BaseController
{
@Autowired
public
IWeChatSideService
weChatSideService
;
/**
* 群发侧边栏列表
*/
@PreAuthorize
(
"@ss.hasPermi('chat:side:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
()
{
startPage
();
List
<
WeChatSide
>
weChatSides
=
weChatSideService
.
chatSides
();
return
getDataTable
(
weChatSides
);
}
/**
* 更新侧边栏信息
*/
@PreAuthorize
(
"@ss.hasPermi('chat:side:edit')"
)
@Log
(
title
=
"更新侧边栏信息"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
WeChatSide
weChatSide
)
{
return
toAjax
(
weChatSideService
.
updateWeChatSide
(
weChatSide
));
}
}
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