Commit 0624f3ec by 18356073052

侧边栏

1 parent fc958d8d
...@@ -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);
}
} }
...@@ -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
......
...@@ -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/list").anonymous() .antMatchers("/wecom/chat/side/h5List").anonymous()
.antMatchers("/wecom/ticket/**").anonymous() .antMatchers("/wecom/ticket/**").anonymous()
// 除上面外的所有请求全部需要鉴权认证 // 除上面外的所有请求全部需要鉴权认证
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!