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 d33aa070
authored
Jan 16, 2021
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
侧边栏
1 parent
df1a299a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatSideController.java
linkwe-admin/src/main/resources/application.yml
linkwe-framework/src/main/java/com/linkwechat/framework/config/SecurityConfig.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeChatSideController.java
View file @
d33aa07
...
@@ -15,6 +15,7 @@ import java.util.List;
...
@@ -15,6 +15,7 @@ import java.util.List;
/**
/**
* 聊天工具侧边栏
* 聊天工具侧边栏
*
* @author kewen
* @author kewen
*/
*/
@RequestMapping
(
value
=
"/wecom/chat/side"
)
@RequestMapping
(
value
=
"/wecom/chat/side"
)
...
@@ -28,11 +29,11 @@ public class WeChatSideController extends BaseController {
...
@@ -28,11 +29,11 @@ public class WeChatSideController extends BaseController {
/**
/**
* 群发侧边栏列表
* 群发侧边栏列表
*/
*/
//
@PreAuthorize("@ss.hasPermi('chat:side:list')")
@PreAuthorize
(
"@ss.hasPermi('chat:side:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
@RequestParam
(
value
=
"h5"
)
String
h5
)
{
public
TableDataInfo
list
()
{
startPage
();
startPage
();
List
<
WeChatSide
>
weChatSides
=
weChatSideService
.
chatSides
(
h5
);
List
<
WeChatSide
>
weChatSides
=
weChatSideService
.
chatSides
(
"0"
);
return
getDataTable
(
weChatSides
);
return
getDataTable
(
weChatSides
);
}
}
...
@@ -46,4 +47,14 @@ public class WeChatSideController extends BaseController {
...
@@ -46,4 +47,14 @@ public class WeChatSideController extends BaseController {
return
toAjax
(
weChatSideService
.
updateWeChatSide
(
weChatSide
));
return
toAjax
(
weChatSideService
.
updateWeChatSide
(
weChatSide
));
}
}
/**
* 群发侧边栏列表
*/
@GetMapping
(
"/h5List"
)
public
TableDataInfo
h5List
()
{
startPage
();
List
<
WeChatSide
>
weChatSides
=
weChatSideService
.
chatSides
(
"1"
);
return
getDataTable
(
weChatSides
);
}
}
}
linkwe-admin/src/main/resources/application.yml
View file @
d33aa07
...
@@ -145,7 +145,7 @@ xss:
...
@@ -145,7 +145,7 @@ xss:
# elasticsearch配置
# elasticsearch配置
elasticsearch
:
elasticsearch
:
schema
:
http
schema
:
http
address
:
${ES_ADDRESS:localhost}
address
:
${ES_ADDRESS:localhost
:9200
}
connectTimeout
:
10000
connectTimeout
:
10000
socketTimeout
:
10000
socketTimeout
:
10000
connectionRequestTimeout
:
10000
connectionRequestTimeout
:
10000
...
...
linkwe-framework/src/main/java/com/linkwechat/framework/config/SecurityConfig.java
View file @
d33aa07
...
@@ -120,7 +120,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
...
@@ -120,7 +120,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.
antMatchers
(
"/wecom/chat/collection/list"
).
anonymous
()
.
antMatchers
(
"/wecom/chat/collection/list"
).
anonymous
()
.
antMatchers
(
"/wecom/chat/collection/cancleCollection"
).
anonymous
()
.
antMatchers
(
"/wecom/chat/collection/cancleCollection"
).
anonymous
()
.
antMatchers
(
"/wecom/chat/collection/addCollection"
).
anonymous
()
.
antMatchers
(
"/wecom/chat/collection/addCollection"
).
anonymous
()
.
antMatchers
(
"/wecom/chat/side/
l
ist"
).
anonymous
()
.
antMatchers
(
"/wecom/chat/side/
h5L
ist"
).
anonymous
()
.
antMatchers
(
"/wecom/ticket/**"
).
anonymous
()
.
antMatchers
(
"/wecom/ticket/**"
).
anonymous
()
// 除上面外的所有请求全部需要鉴权认证
// 除上面外的所有请求全部需要鉴权认证
...
...
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