From 9477c09873492574e584c2791a07c1cf9ff2566c Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期二, 12 三月 2024 08:15:36 +0800
Subject: [PATCH] 中英文切换相关文件

---
 north-glass-erp/src/main/java/com/example/erp/controller/userInfo/SysMenuController.java |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/SysMenuController.java b/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/SysMenuController.java
new file mode 100644
index 0000000..e77246f
--- /dev/null
+++ b/north-glass-erp/src/main/java/com/example/erp/controller/userInfo/SysMenuController.java
@@ -0,0 +1,31 @@
+package com.example.erp.controller.userInfo;
+
+import com.example.erp.common.CacheUtil;
+import com.example.erp.common.Result;
+import com.example.erp.service.userInfo.SysMenuService;
+import com.example.erp.tools.netty.MyChannelHandlerPool;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+
+@RestController
+@RequestMapping("/menu")
+
+public class SysMenuController {
+    @Autowired
+    private CacheUtil cacheUtil;
+    @Autowired
+    private SysMenuService sysMenuService;
+    @GetMapping("/getMenu/{lang}")
+    public Result getMenu(@PathVariable String lang){
+        System.out.println(lang);
+        MyChannelHandlerPool myChannelHandlerPool = new MyChannelHandlerPool();
+        //myChannelHandlerPool.sendMsg("123");
+        //MyChannelHandlerPool.channelGroup.writeAndFlush( new TextWebSocketFrame("123123"));
+        return Result.seccess(sysMenuService.getMenu(lang));
+
+    }
+}

--
Gitblit v1.8.0