From 606caba223952c0276aafb02ff0fe534998056e0 Mon Sep 17 00:00:00 2001
From: ftx <805918195@qq.com>
Date: Sun, 17 Dec 2023 11:38:37 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=B8=8D=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/encodings.xml | 1 +
.idea/inspectionProfiles/Project_Default.xml | 39 +++++
.idea/misc.xml | 1 +
.idea/vcs.xml | 6 +
.../java/com/bwie/common/domain/Case.java | 22 +++
.../com/bwie/common/domain/CaseRequest.java | 18 +++
.../java/com/bwie/common/domain/User.java | 33 +++++
...ppliction.java => GatewayApplication.java} | 6 +-
bwie-modules/bwie-cases/pom.xml | 66 +++++++++
.../com/bwie/xxxxxx/CasesApplication.java | 16 +++
.../xxxxxx/controller/CaseController.java | 73 ++++++++++
.../com/bwie/xxxxxx/mapper/CaseMapper.java | 44 ++++++
.../com/bwie/xxxxxx/service/CaseService.java | 45 ++++++
.../xxxxxx/service/impl/CaseServiceImpl.java | 133 ++++++++++++++++++
.../java/com/bwie/xxxxxx/util/FastUtil.java | 55 ++++++++
.../src/main/resources/bootstrap.yml | 41 ++++++
.../src/main/resources/mapper/XXXmapper.xml | 35 +++++
17 files changed, 631 insertions(+), 3 deletions(-)
create mode 100644 .idea/inspectionProfiles/Project_Default.xml
create mode 100644 .idea/vcs.xml
create mode 100644 bwie-common/src/main/java/com/bwie/common/domain/Case.java
create mode 100644 bwie-common/src/main/java/com/bwie/common/domain/CaseRequest.java
create mode 100644 bwie-common/src/main/java/com/bwie/common/domain/User.java
rename bwie-gateway/src/main/java/com/bwie/gateway/{GatewayAppliction.java => GatewayApplication.java} (74%)
create mode 100644 bwie-modules/bwie-cases/pom.xml
create mode 100644 bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/CasesApplication.java
create mode 100644 bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/controller/CaseController.java
create mode 100644 bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/mapper/CaseMapper.java
create mode 100644 bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/service/CaseService.java
create mode 100644 bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/service/impl/CaseServiceImpl.java
create mode 100644 bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/util/FastUtil.java
create mode 100644 bwie-modules/bwie-cases/src/main/resources/bootstrap.yml
create mode 100644 bwie-modules/bwie-cases/src/main/resources/mapper/XXXmapper.xml
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index fb5b0c3..7d97e3a 100644
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -7,6 +7,7 @@
+
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..bdb256b
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 132404b..4184518 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -5,6 +5,7 @@
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bwie-common/src/main/java/com/bwie/common/domain/Case.java b/bwie-common/src/main/java/com/bwie/common/domain/Case.java
new file mode 100644
index 0000000..6d2c70d
--- /dev/null
+++ b/bwie-common/src/main/java/com/bwie/common/domain/Case.java
@@ -0,0 +1,22 @@
+package com.bwie.common.domain;
+
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * @author Handsome boy
+ * @Package com.bwie.common.domain
+ * @date 2023/12/8 20:22
+ */
+@Data
+public class Case {
+ private Integer caseId;
+ private Integer userId;
+
+ private String caseName;
+ private String caseTime;
+ private String caseMessage;
+
+
+}
diff --git a/bwie-common/src/main/java/com/bwie/common/domain/CaseRequest.java b/bwie-common/src/main/java/com/bwie/common/domain/CaseRequest.java
new file mode 100644
index 0000000..9df76a0
--- /dev/null
+++ b/bwie-common/src/main/java/com/bwie/common/domain/CaseRequest.java
@@ -0,0 +1,18 @@
+package com.bwie.common.domain;
+
+import lombok.Data;
+
+/**
+ * @author Handsome boy
+ * @Package com.bwie.common.domain
+ * @date 2023/12/16 11:51
+ */
+@Data
+public class CaseRequest {
+ private Integer pageSize;
+ private Integer pageNum;
+
+
+ private Integer roleId;
+ private Integer userId;
+}
diff --git a/bwie-common/src/main/java/com/bwie/common/domain/User.java b/bwie-common/src/main/java/com/bwie/common/domain/User.java
new file mode 100644
index 0000000..5659d16
--- /dev/null
+++ b/bwie-common/src/main/java/com/bwie/common/domain/User.java
@@ -0,0 +1,33 @@
+package com.bwie.common.domain;
+
+import lombok.Data;
+
+/**
+ * @author gxb
+ * @description TODO
+ * @date 2023-12-16 11:43
+ */
+@Data
+public class User {
+ /**
+ * Id
+ */
+ private Integer id;
+ /**
+ * 用户名
+ */
+ private String username;
+ /**
+ * 密码
+ */
+ private String password;
+ /**
+ * 1 - 医生 2-用户
+ */
+ private Integer role;
+ /**
+ * 手机号
+ */
+ private String phone;
+
+}
diff --git a/bwie-gateway/src/main/java/com/bwie/gateway/GatewayAppliction.java b/bwie-gateway/src/main/java/com/bwie/gateway/GatewayApplication.java
similarity index 74%
rename from bwie-gateway/src/main/java/com/bwie/gateway/GatewayAppliction.java
rename to bwie-gateway/src/main/java/com/bwie/gateway/GatewayApplication.java
index c97d03a..3dcaee3 100644
--- a/bwie-gateway/src/main/java/com/bwie/gateway/GatewayAppliction.java
+++ b/bwie-gateway/src/main/java/com/bwie/gateway/GatewayApplication.java
@@ -9,8 +9,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* @date 2023-12-16 8:35
*/
@SpringBootApplication
-public class GatewayAppliction {
+public class GatewayApplication {
public static void main(String[] args) {
- SpringApplication.run(GatewayAppliction.class,args);
+ SpringApplication.run(GatewayApplication.class,args);
}
-}
\ No newline at end of file
+}
diff --git a/bwie-modules/bwie-cases/pom.xml b/bwie-modules/bwie-cases/pom.xml
new file mode 100644
index 0000000..9599584
--- /dev/null
+++ b/bwie-modules/bwie-cases/pom.xml
@@ -0,0 +1,66 @@
+
+
+ 4.0.0
+
+ com.bwie
+ bwie-modules
+ 1.0-SNAPSHOT
+
+
+ bwie-cases
+
+
+ 8
+ 8
+ UTF-8
+
+
+
+
+ com.bwie
+ bwie-common
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ com.alibaba
+ druid-spring-boot-starter
+ 1.2.8
+
+
+
+ mysql
+ mysql-connector-java
+
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ 2.2.2
+
+
+
+ com.github.pagehelper
+ pagehelper-spring-boot-starter
+ 1.4.1
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ com.github.tobato
+ fastdfs-client
+ 1.26.5
+
+
+
+
diff --git a/bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/CasesApplication.java b/bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/CasesApplication.java
new file mode 100644
index 0000000..699b293
--- /dev/null
+++ b/bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/CasesApplication.java
@@ -0,0 +1,16 @@
+package com.bwie.xxxxxx;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * @author Handsome boy
+ * @Package com.bwie.xxxxxx
+ * @date 2023/12/16 12:02
+ */
+@SpringBootApplication
+public class CasesApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(CasesApplication.class);
+ }
+}
diff --git a/bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/controller/CaseController.java b/bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/controller/CaseController.java
new file mode 100644
index 0000000..ce9e59b
--- /dev/null
+++ b/bwie-modules/bwie-cases/src/main/java/com/bwie/xxxxxx/controller/CaseController.java
@@ -0,0 +1,73 @@
+package com.bwie.xxxxxx.controller;
+
+import com.bwie.common.domain.Case;
+import com.bwie.common.domain.CaseRequest;
+import com.bwie.common.result.PageResult;
+import com.bwie.common.result.Result;
+import com.bwie.xxxxxx.service.CaseService;
+import lombok.extern.log4j.Log4j2;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+/**
+ * @author Handsome boy
+ * @Package com.bwie.xxxxxx.controller
+ * @date 2023/12/8 20:21
+ */
+@RestController
+@Log4j2
+public class CaseController {
+ final CaseService caseService;
+
+ public CaseController(CaseService caseService) {
+ this.caseService = caseService;
+ }
+
+ /**
+ * 添加病例
+ *
+ * @param cases;
+ */
+ @PostMapping("/case")
+ public Result