Explorar o código

Merge branch 'hurx'

hurx hai 3 semanas
pai
achega
d9a51e38c9

+ 8 - 0
ruoyi-modules/ruoyi-mall/src/main/java/org/dromara/mall/controller/MiniPageSetController.java

@@ -103,4 +103,12 @@ public class MiniPageSetController extends BaseController {
                           @PathVariable("ids") Long[] ids) {
         return toAjax(miniPageSetService.deleteWithValidByIds(List.of(ids), true));
     }
+
+    /**
+     * 获取当前页面设置
+     */
+    @GetMapping("/current")
+    public R<MiniPageSetVo> getCurrent() {
+        return R.ok(miniPageSetService.getCurrentPageSet());
+    }
 }