From 981107bb993776ed20dfa2173948b8eae6ae989b Mon Sep 17 00:00:00 2001
From: shicf <shi_chongfu@163.com>
Date: 星期日, 13 七月 2025 13:52:59 +0800
Subject: [PATCH] 版本升级
---
src/main/java/com/product/mobile/core/controller/SystemFunctionController.java | 75 ++++++++++++++++++-------------------
1 files changed, 36 insertions(+), 39 deletions(-)
diff --git a/src/main/java/com/product/mobile/core/controller/SystemFunctionController.java b/src/main/java/com/product/mobile/core/controller/SystemFunctionController.java
index 1d0745c..9bead34 100644
--- a/src/main/java/com/product/mobile/core/controller/SystemFunctionController.java
+++ b/src/main/java/com/product/mobile/core/controller/SystemFunctionController.java
@@ -1,12 +1,9 @@
package com.product.mobile.core.controller;
import com.product.admin.service.RouterService;
-import com.product.core.config.CoreConst;
import com.product.core.controller.support.AbstractBaseController;
import com.product.core.entity.FieldSetEntity;
-import com.product.core.entity.RequestParameterEntity;
import com.product.core.exception.BaseException;
-import com.product.core.spring.context.SpringMVCContextHolder;
import com.product.mobile.core.config.MobileCoreCode;
import com.product.mobile.core.service.SystemFunctionService;
import com.product.module.sys.version.ApiVersion;
@@ -28,46 +25,46 @@
@RequestMapping("/api")
public class SystemFunctionController extends AbstractBaseController {
- @Autowired
- RouterService routerService;
+ @Autowired
+ RouterService routerService;
- @Autowired
- SystemFunctionService systemFunctionService;
+ @Autowired
+ SystemFunctionService systemFunctionService;
- /**
- * 璺敱鑾峰彇
- *
- * @return
- */
- @PostMapping("/mobile-router/get-router/{version}")
- @ApiVersion(1)
- public String getRouterData() {
- try {
- return OK_List(routerService.getMobileRouter());
- } catch (BaseException e) {
- e.printStackTrace();
- return error(e);
- } catch (Exception e) {
- e.printStackTrace();
- return error(MobileCoreCode.GET_ROUTER_FAIL);
- }
- }
+ /**
+ * 璺敱鑾峰彇
+ *
+ * @return
+ */
+ @PostMapping("/mobile-router/get-router/{version}")
+ @ApiVersion(1)
+ public String getRouterData() {
+ try {
+ return OK_List(routerService.getMobileRouter());
+ } catch (BaseException e) {
+ e.printStackTrace();
+ return error(e);
+ } catch (Exception e) {
+ e.printStackTrace();
+ return error(MobileCoreCode.GET_ROUTER_FAIL);
+ }
+ }
- @PostMapping("/mobile/get-page-button/{version}")
- @ApiVersion(1)
- public String getFunctionButton(HttpServletRequest request) {
- try {
- FieldSetEntity fse = BaseUtil.getFieldSetEntity(request);
- return (String) systemFunctionService.getFunctionButton(fse);
- } catch (BaseException e) {
- e.printStackTrace();
- return error(e);
- } catch (Exception e) {
- e.printStackTrace();
- return error(MobileCoreCode.GET_ROUTER_FAIL);
- }
- }
+ @PostMapping("/mobile/get-page-button/{version}")
+ @ApiVersion(1)
+ public String getFunctionButton(HttpServletRequest request) {
+ try {
+ FieldSetEntity fse = BaseUtil.getFieldSetEntity(request);
+ return (String) systemFunctionService.getFunctionButton(fse);
+ } catch (BaseException e) {
+ e.printStackTrace();
+ return error(e);
+ } catch (Exception e) {
+ e.printStackTrace();
+ return error(MobileCoreCode.GET_ROUTER_FAIL);
+ }
+ }
}
--
Gitblit v1.9.2