From ae04c5d925b0094e1a1ba1f2ce0bf6da0a6fee04 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 22 一月 2026 17:27:55 +0800
Subject: [PATCH] 2026.1.22 1. 新增台账上传office文档功能; 2. 新增office文档存储原始文档名字功能
---
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/WxUserController.kt | 28 ++++++++++++++++++++++++----
1 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/WxUserController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/WxUserController.kt
index 9dc1b94..b196366 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/WxUserController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/WxUserController.kt
@@ -1,14 +1,12 @@
package cn.flightfeather.supervision.lightshare.web
import cn.flightfeather.supervision.lightshare.service.WxUserService
+import cn.flightfeather.supervision.lightshare.vo.AccessTokenPW
import cn.flightfeather.supervision.lightshare.vo.AccessTokenWX
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
-import org.springframework.web.bind.annotation.PostMapping
-import org.springframework.web.bind.annotation.RequestBody
-import org.springframework.web.bind.annotation.RequestMapping
-import org.springframework.web.bind.annotation.RestController
+import org.springframework.web.bind.annotation.*
@Api(tags = ["寰俊鐢ㄦ埛淇℃伅API鎺ュ彛"])
@RestController
@@ -20,4 +18,26 @@
fun loginWx(
@ApiParam("鐧诲綍淇℃伅") @RequestBody accessTokenWX: AccessTokenWX
) = wxUserService.loginWx(accessTokenWX)
+
+
+ @ApiOperation(value = "鐧诲綍")
+ @PostMapping("/loginPW")
+ fun loginPW(
+ @ApiParam("鐧诲綍淇℃伅") @RequestBody accessTokenPW: AccessTokenPW
+ ) = wxUserService.loginPw(accessTokenPW)
+
+ @ApiOperation(value = "寰俊鎺ュ叆楠岃瘉")
+ @GetMapping("/message/subscribe/result")
+ fun subscribeCheck(
+ @ApiParam("寰俊鍔犲瘑绛惧悕") @RequestParam signature: String,
+ @ApiParam("鏃堕棿鎴�") @RequestParam timestamp: String,
+ @ApiParam("闅忔満鏁�") @RequestParam nonce: String,
+ @ApiParam("闅忔満瀛楃涓�") @RequestParam echostr: String,
+ ) = wxUserService.subscribeCheck(signature, timestamp, nonce, echostr)
+
+ @ApiOperation(value = "寰俊鐢ㄦ埛璁㈤槄娑堟伅缁撴灉鎺ㄩ��", notes = "寰俊浼氬皢鐢ㄦ埛璁㈤槄娑堟伅銆佹秷鎭帹閫佹儏鍐电瓑淇℃伅閫氳繃姝ゆ帴鍙e彂閫佽繃鏉�")
+ @PostMapping("/message/subscribe/result")
+ fun subscribeResult(
+ @ApiParam("娑堟伅") @RequestBody msg: String
+ ) = wxUserService.subscribeResult(msg)
}
\ No newline at end of file
--
Gitblit v1.9.3