From f0b65297417eb5b0075e695838cf4df2bc76728e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=B0=8F=E4=B8=9C?=
<13396135+anton-aoi@user.noreply.gitee.com>
Date: Thu, 19 Oct 2023 22:43:18 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E8=8D=AF=E5=93=81=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=20=E5=AE=9E=E7=8E=B0=E8=8D=AF=E5=93=81=E5=88=86?=
=?UTF-8?q?=E7=B1=BB=20=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=20banner?=
=?UTF-8?q?=E5=9B=BE=E5=AE=9E=E7=8E=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/vcs.xml | 6 +
bwie-auth/pom.xml | 54 +++++++++
.../bwie/auth/controller/AuthController.java | 52 +++++++++
.../java/com/bwie/auth/feign/AuthFeign.java | 13 +++
.../com/bwie/auth/service/AuthService.java | 13 +++
.../auth/service/impl/AuthServiceImpl.java | 82 ++++++++++++++
bwie-auth/src/main/resources/bootstrap.yml | 59 ++++++++++
.../java/com/bwie/common/domain/Banner.java | 9 ++
.../java/com/bwie/common/domain/DrugType.java | 9 ++
.../bwie/common/domain/SymptomDetails.java | 16 +++
.../bwie/common/domain/request/UserLogin.java | 9 ++
bwie-modules/bwie-system/pom.xml | 62 ++++++++++
.../system/controller/SystemController.java | 107 ++++++++++++++++++
.../com/bwie/system/mapper/SystemMapper.java | 30 +++++
.../bwie/system/service/SystemService.java | 27 +++++
.../service/impl/SystemServiceImpl.java | 81 +++++++++++++
.../src/main/resources/bootstrap.yml | 31 +++++
.../main/resources/mapper/SystemMapper.xml | 94 +++++++++++++++
18 files changed, 754 insertions(+)
create mode 100644 .idea/vcs.xml
create mode 100644 bwie-auth/pom.xml
create mode 100644 bwie-auth/src/main/java/com/bwie/auth/controller/AuthController.java
create mode 100644 bwie-auth/src/main/java/com/bwie/auth/feign/AuthFeign.java
create mode 100644 bwie-auth/src/main/java/com/bwie/auth/service/AuthService.java
create mode 100644 bwie-auth/src/main/java/com/bwie/auth/service/impl/AuthServiceImpl.java
create mode 100644 bwie-auth/src/main/resources/bootstrap.yml
create mode 100644 bwie-common/src/main/java/com/bwie/common/domain/Banner.java
create mode 100644 bwie-common/src/main/java/com/bwie/common/domain/DrugType.java
create mode 100644 bwie-common/src/main/java/com/bwie/common/domain/SymptomDetails.java
create mode 100644 bwie-common/src/main/java/com/bwie/common/domain/request/UserLogin.java
create mode 100644 bwie-modules/bwie-system/pom.xml
create mode 100644 bwie-modules/bwie-system/src/main/java/com/bwie/system/controller/SystemController.java
create mode 100644 bwie-modules/bwie-system/src/main/java/com/bwie/system/mapper/SystemMapper.java
create mode 100644 bwie-modules/bwie-system/src/main/java/com/bwie/system/service/SystemService.java
create mode 100644 bwie-modules/bwie-system/src/main/java/com/bwie/system/service/impl/SystemServiceImpl.java
create mode 100644 bwie-modules/bwie-system/src/main/resources/bootstrap.yml
create mode 100644 bwie-modules/bwie-system/src/main/resources/mapper/SystemMapper.xml
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bwie-auth/pom.xml b/bwie-auth/pom.xml
new file mode 100644
index 0000000..dc3beb9
--- /dev/null
+++ b/bwie-auth/pom.xml
@@ -0,0 +1,54 @@
+
+
+ 4.0.0
+
+ org.example
+ health-zxd
+ 1.0-SNAPSHOT
+
+
+ bwie-auth
+
+
+ 8
+ 8
+ UTF-8
+
+
+
+
+ org.example
+ bwie-common
+ 1.0-SNAPSHOT
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-amqp
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+
+
+ org.springframework.kafka
+ spring-kafka
+
+
+ org.apache.kafka
+ kafka-clients
+
+
+
+ org.projectlombok
+ lombok
+
+
+
diff --git a/bwie-auth/src/main/java/com/bwie/auth/controller/AuthController.java b/bwie-auth/src/main/java/com/bwie/auth/controller/AuthController.java
new file mode 100644
index 0000000..858bacd
--- /dev/null
+++ b/bwie-auth/src/main/java/com/bwie/auth/controller/AuthController.java
@@ -0,0 +1,52 @@
+package com.bwie.auth.controller;
+
+import com.alibaba.fastjson.JSONObject;
+import com.bwie.auth.service.AuthService;
+
+
+import com.bwie.common.domain.User;
+import com.bwie.common.domain.request.UserLogin;
+import com.bwie.common.domain.response.JwtResponse;
+import com.bwie.common.result.Result;
+import lombok.extern.log4j.Log4j2;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.servlet.http.HttpServletRequest;
+
+@Log4j2
+@RestController
+@Component
+public class AuthController {
+ @Autowired
+ private AuthService service;
+ @Autowired
+ private HttpServletRequest request;
+
+ @PostMapping("/userLogin")
+ public Result userLogin(@RequestBody UserLogin login){
+ log.info("功能名称:【邮箱密码登录】,请求路径:【{}】,请求方式:【{}】,请求参数:【{}】",
+ request.getRequestURI(),request.getMethod(), JSONObject.toJSONString(login));
+ Result result = service.userLogin(login);
+ log.info("返回结果:【{}】",result);
+ return result;
+ }
+
+ @GetMapping("/info")
+ public Result