commit f0b65297417eb5b0075e695838cf4df2bc76728e
Author: 张小东 <13396135+anton-aoi@user.noreply.gitee.com>
Date: Thu Oct 19 22:43:18 2023 +0800
实现药品列表
实现药品分类
图片上传
banner图实现
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