|
@@ -0,0 +1,29 @@
|
|
|
+package com.platform.rest.controller.wechat;
|
|
|
+
|
|
|
+import com.platform.common.util.R;
|
|
|
+import com.platform.service.wechat.service.WeChatConnectService;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description 常用菜单库 控制器
|
|
|
+ * @Author lsq
|
|
|
+ * @Date 2023-12-25 14:06:26
|
|
|
+ * @Version Copyright (c) 2020,北京乾元坤和科技有限公司 All rights reserved.
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@AllArgsConstructor
|
|
|
+@RequestMapping("/common/wechat/token")
|
|
|
+public class TokenController {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取token
|
|
|
+ * @return R
|
|
|
+ */
|
|
|
+ @GetMapping("/sb")
|
|
|
+ public R<String> getToken(){
|
|
|
+ return new R<>(WeChatConnectService.getToken());
|
|
|
+ }
|
|
|
+}
|