From bf31de2596425a42f33155ad6161da5ea6b3cbf9 Mon Sep 17 00:00:00 2001
From: songhuangfeng123 <shf18767906695@163.com>
Date: 星期一, 04 七月 2022 14:22:28 +0800
Subject: [PATCH] 应急队伍列表

---
 safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/accountController/UserController.java |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/accountController/UserController.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/accountController/UserController.java
new file mode 100644
index 0000000..a7d00ff
--- /dev/null
+++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/accountController/UserController.java
@@ -0,0 +1,26 @@
+package com.gkhy.safePlatform.accountController;
+
+import com.gkhy.safePlatform.account.rpc.apimodel.AccountMenuService;
+import com.gkhy.safePlatform.account.rpc.apimodel.AccountUserService;
+import com.gkhy.safePlatform.account.rpc.apimodel.model.req.query.AccountRPCQuery;
+import com.gkhy.safePlatform.commons.query.PageQuery;
+import org.apache.dubbo.config.annotation.DubboReference;
+import org.apache.dubbo.config.annotation.DubboService;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.security.Principal;
+
+@RestController
+@RequestMapping("/account")
+public class UserController {
+
+    @DubboReference(check = false)
+    private AccountUserService accountUserService;
+
+
+    @RequestMapping("/page/list")
+    public Object getUserPage(Principal principal, PageQuery<AccountRPCQuery> rpcQueryPageQuery) {
+        return accountUserService.getAccountPage(Long.valueOf(principal.getName()), rpcQueryPageQuery);
+    }
+}

--
Gitblit v1.9.2