diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index fb5b0c3..8ffcc51 100644
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -7,6 +7,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/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..13a62ba
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1702775230647
+
+
+ 1702775230647
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bwie-common/src/main/java/com/bwie/common/domain/Formation.java b/bwie-common/src/main/java/com/bwie/common/domain/Formation.java
new file mode 100644
index 0000000..b8a6101
--- /dev/null
+++ b/bwie-common/src/main/java/com/bwie/common/domain/Formation.java
@@ -0,0 +1,25 @@
+package com.bwie.common.domain;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class Formation {
+
+ private Integer formationId;//用户具体信息表
+ private Integer formationPress;//血压
+ private Integer formationSugar;//血糖
+ private Date formationDate;//加入时间
+ private String formationAddress;//住址
+ private Integer userId; //用户Id
+ private String userName;//用户名
+ private String userPwd;//密码
+ private String formationPhone;//手机号
+ private Integer formationAge; //年龄
+ private String formationSex;//性别
+ private String formationName;//昵称
+ private Integer isDele;
+
+
+}
diff --git a/bwie-modules/bwie-formation/.gitignore b/bwie-modules/bwie-formation/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/bwie-modules/bwie-formation/.gitignore
@@ -0,0 +1,38 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/bwie-modules/bwie-formation/pom.xml b/bwie-modules/bwie-formation/pom.xml
new file mode 100644
index 0000000..99c937f
--- /dev/null
+++ b/bwie-modules/bwie-formation/pom.xml
@@ -0,0 +1,56 @@
+
+
+ 4.0.0
+
+ com.bwie
+ bwie-modules
+ 1.0-SNAPSHOT
+
+
+ bwie-formation
+
+
+ 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
+
+
+
+
diff --git a/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/FormaitonAppliaction.java b/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/FormaitonAppliaction.java
new file mode 100644
index 0000000..4868077
--- /dev/null
+++ b/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/FormaitonAppliaction.java
@@ -0,0 +1,13 @@
+package com.bwie.formaiton;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+@MapperScan("com.bwie.formaiton.mapper")
+public class FormaitonAppliaction {
+ public static void main(String[] args) {
+ SpringApplication.run(FormaitonAppliaction.class,args);
+ }
+}
diff --git a/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/controller/FormationController.java b/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/controller/FormationController.java
new file mode 100644
index 0000000..378ae6b
--- /dev/null
+++ b/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/controller/FormationController.java
@@ -0,0 +1,28 @@
+package com.bwie.formaiton.controller;
+
+import com.bwie.common.domain.Formation;
+import com.bwie.common.result.Result;
+import com.bwie.formaiton.service.FormationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@RestController
+public class FormationController {
+
+ @Autowired
+ private FormationService formationService;
+
+ @PostMapping("/list")
+ public Result> list(){
+ return formationService.list();
+ }
+
+ @PostMapping("/insert")
+ public Result insert(@RequestBody Formation formation){
+ return formationService.insert(formation);
+ }
+}
diff --git a/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/mapper/FormationMapper.java b/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/mapper/FormationMapper.java
new file mode 100644
index 0000000..0c25c28
--- /dev/null
+++ b/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/mapper/FormationMapper.java
@@ -0,0 +1,11 @@
+package com.bwie.formaiton.mapper;
+
+import com.bwie.common.domain.Formation;
+
+import java.util.List;
+
+public interface FormationMapper {
+ List list();
+
+ Integer insert(Formation formation);
+}
diff --git a/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/service/FormationService.java b/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/service/FormationService.java
new file mode 100644
index 0000000..d41d474
--- /dev/null
+++ b/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/service/FormationService.java
@@ -0,0 +1,12 @@
+package com.bwie.formaiton.service;
+
+import com.bwie.common.domain.Formation;
+import com.bwie.common.result.Result;
+
+import java.util.List;
+
+public interface FormationService {
+ Result> list();
+
+ Result insert(Formation formation);
+}
diff --git a/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/service/impl/FormationServiceImpl.java b/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/service/impl/FormationServiceImpl.java
new file mode 100644
index 0000000..da7a267
--- /dev/null
+++ b/bwie-modules/bwie-formation/src/main/java/com/bwie/formaiton/service/impl/FormationServiceImpl.java
@@ -0,0 +1,28 @@
+package com.bwie.formaiton.service.impl;
+
+import com.bwie.common.domain.Formation;
+import com.bwie.common.result.Result;
+import com.bwie.formaiton.mapper.FormationMapper;
+import com.bwie.formaiton.service.FormationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class FormationServiceImpl implements FormationService {
+
+ @Autowired
+ private FormationMapper formationMapper;
+ @Override
+ public Result> list() {
+ List list = formationMapper.list();
+ return Result.success(list);
+ }
+
+ @Override
+ public Result insert(Formation formation) {
+ Integer i = formationMapper.insert(formation);
+ return Result.success(i);
+ }
+}
diff --git a/bwie-modules/bwie-formation/src/main/resources/bootstrap.yml b/bwie-modules/bwie-formation/src/main/resources/bootstrap.yml
new file mode 100644
index 0000000..2a7e273
--- /dev/null
+++ b/bwie-modules/bwie-formation/src/main/resources/bootstrap.yml
@@ -0,0 +1,29 @@
+# Tomcat
+server:
+ port: 9002
+# Spring
+spring:
+ main:
+ allow-circular-references: true
+ jackson:
+ date-format: yyyy-MM-dd HH:mm:ss
+ time-zone: GMT+8
+ application:
+ # 应用名称
+ name: bwie-formation
+ profiles:
+ # 环境配置
+ active: dev
+ cloud:
+ nacos:
+ discovery:
+ # 服务注册地址
+ server-addr: 122.51.35.58:8848
+ config:
+ # 配置中心地址
+ server-addr: 122.51.35.58:8848
+ # 配置文件格式
+ file-extension: yml
+ # 共享配置
+ shared-configs:
+ - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
diff --git a/bwie-modules/bwie-formation/src/main/resources/mapper/FormationMapper.xml b/bwie-modules/bwie-formation/src/main/resources/mapper/FormationMapper.xml
new file mode 100644
index 0000000..b57ec3b
--- /dev/null
+++ b/bwie-modules/bwie-formation/src/main/resources/mapper/FormationMapper.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ INSERT INTO `health`.`formation` (`formation_press`, `formation_sugar`, `formation_date`, `formation_address`, `user_id`, `user_name`, `user_pwd`, `formation_phone`,`formation_age`, `formation_sex`, `formation_name`, `is_dele`) VALUES
+ (#{formationPress}, #{formationSugar}, now(), #{formationAddress}, #{userId}, #{userName}, #{userPwd}, #{formationPhone},#{formationAge}, #{formationSex}, #{formationName}, 1);
+
+
+
+
+
diff --git a/bwie-modules/pom.xml b/bwie-modules/pom.xml
index 820a8b0..b2d25c4 100644
--- a/bwie-modules/pom.xml
+++ b/bwie-modules/pom.xml
@@ -10,6 +10,10 @@
bwie-modules
+ pom
+
+ bwie-formation
+
8
@@ -17,4 +21,4 @@
UTF-8
-
\ No newline at end of file
+