lchao před 4 měsíci
rodič
revize
537d4e7af2

+ 10 - 0
zhjq-admin/src/main/java/com/zhjq/web/controller/system/SysNoticeController.java

@@ -84,4 +84,14 @@ public class SysNoticeController extends BaseController {
     public AjaxResult appList(@RequestParam(value = "limit", defaultValue = "2") int limit) {
         return AjaxResult.success(noticeService.selectNoticeListApp(limit));
     }
+
+    /**
+     * 小程序获取通知公告列表(所有)
+     */
+    @GetMapping("/appNoticeAllList")
+    public AjaxResult appNoticeAllList(SysNotice notice) {
+        startPage();
+        List<SysNotice> list = noticeService.selectNoticeList(notice);
+        return AjaxResult.success(getDataTable(list));
+    }
 }

+ 1 - 1
zhjq-framework/src/main/java/com/zhjq/framework/config/SecurityConfig.java

@@ -111,7 +111,7 @@ public class SecurityConfig {
                     requests.antMatchers("/login", "/register", "/captchaImage", "/appLogin").permitAll()
                             // 静态资源,可匿名访问
                             .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
-                            .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/weather/**","/app/voice/app/**","/system/config/configKey/**").permitAll()
+                            .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/weather/**","/app/voice/app/**","/system/config/configKey/**","/system/notice/**").permitAll()
                             // 除上面外的所有请求全部需要鉴权认证
                             .anyRequest().authenticated();
                 })