Browse Source

init

dev-jl
wxc 2 years ago
parent
commit
d4e0ce5338
  1. 32
      mailbox-common/pom.xml
  2. 8
      mailbox-common/src/main/java/com/biutag/exception/BusinessException.java
  3. 23
      mailbox-lan/pom.xml
  4. 23
      mailbox-outer-admin/pom.xml
  5. 10
      mailbox-outer-admin/src/main/resources/application.yml
  6. 10
      mailbox-outer/pom.xml
  7. 23
      mailbox-outer/src/main/java/com/biutag/outer/controller/MailController.java
  8. 76
      mailbox-outer/src/main/java/com/biutag/outer/domain/Mail.java
  9. 9
      mailbox-outer/src/main/java/com/biutag/outer/mapper/MailMapper.java
  10. 10
      mailbox-outer/src/main/java/com/biutag/outer/service/MailService.java
  11. 4
      mailbox-outer/src/main/resources/application.yml
  12. 21
      pom.xml

32
mailbox-common/pom.xml

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.biutag</groupId>
<artifactId>mailbox-boot</artifactId>
<version>1.0</version>
</parent>
<artifactId>mailbox-common</artifactId>
<dependencies>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

8
mailbox-common/src/main/java/com/biutag/exception/BusinessException.java

@ -0,0 +1,8 @@
package com.biutag.exception;
public class BusinessException extends RuntimeException {
public BusinessException(String message) {
super(message);
}
}

23
mailbox-lan/pom.xml

@ -43,10 +43,25 @@
<artifactId>tongweb-spring-boot-starter-3.x</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.baomidou</groupId>-->
<!-- <artifactId>mybatis-plus-boot-starter</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>mailbox-common</artifactId>
</dependency>
</dependencies>

23
mailbox-outer-admin/pom.xml

@ -38,10 +38,25 @@
<artifactId>tongweb-spring-boot-starter-3.x</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.baomidou</groupId>-->
<!-- <artifactId>mybatis-plus-boot-starter</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>mailbox-common</artifactId>
</dependency>
</dependencies>

10
mailbox-outer-admin/src/main/resources/application.yml

@ -1,2 +1,12 @@
server:
port: 8083
tongweb:
license:
path: license/license.dat
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://172.31.217.20:32378/mailbox?currentSchema=mailbox-outer
username: vbadmin
password: Ip12341234

10
mailbox-outer/pom.xml

@ -54,6 +54,16 @@
<artifactId>mybatis-plus-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>mailbox-common</artifactId>
</dependency>
</dependencies>
</project>

23
mailbox-outer/src/main/java/com/biutag/outer/controller/MailController.java

@ -0,0 +1,23 @@
package com.biutag.outer.controller;
import com.biutag.outer.domain.Mail;
import com.biutag.outer.service.MailService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RequiredArgsConstructor
@RequestMapping("mail")
@RestController
public class MailController {
private final MailService mailService;
@GetMapping
public List<Mail> list() {
return mailService.list();
}
}

76
mailbox-outer/src/main/java/com/biutag/outer/domain/Mail.java

@ -0,0 +1,76 @@
package com.biutag.outer.domain;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
@Setter
@Getter
public class Mail {
@TableId
private String id;
/**
* 联系人姓名
*/
private String contactName;
/**
* 联系人性别
*/
private String contactSex;
/**
* 联系人身份证号码
*/
private String contactIdCard;
/**
*
*/
private String contactPhone;
/**
* 案件编号
*/
private String caseNumber;
/**
* 内容
*/
private String content;
/**
* 附件
*/
private String attachments;
/**
* 用户ID
*/
private Integer userId;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 评价
*/
private String evaluate;
/**
* 是否满意
*/
private String satisfiedFlag;
}

9
mailbox-outer/src/main/java/com/biutag/outer/mapper/MailMapper.java

@ -0,0 +1,9 @@
package com.biutag.outer.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.biutag.outer.domain.Mail;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MailMapper extends BaseMapper<Mail> {
}

10
mailbox-outer/src/main/java/com/biutag/outer/service/MailService.java

@ -0,0 +1,10 @@
package com.biutag.outer.service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.biutag.outer.domain.Mail;
import com.biutag.outer.mapper.MailMapper;
import org.springframework.stereotype.Service;
@Service
public class MailService extends ServiceImpl<MailMapper, Mail> {
}

4
mailbox-outer/src/main/resources/application.yml

@ -8,5 +8,5 @@ spring:
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://172.31.217.20:32378/mailbox?currentSchema=mailbox-outer
username: mailbox
password: Ip12341234
username: vbadmin
password: Ip12341234

21
pom.xml

@ -12,6 +12,7 @@
<java.version>17</java.version>
<spring-boot.version>3.2.1</spring-boot.version>
<mybatis-plus-boot-starter.version>3.5.5</mybatis-plus-boot-starter.version>
<mybatis-spring.version>3.0.3</mybatis-spring.version>
<fastjson2.version>2.0.45</fastjson2.version>
<tongweb-spring-boot-starter-3.x.version>7.0.E.6_P6</tongweb-spring-boot-starter-3.x.version>
</properties>
@ -26,11 +27,16 @@
<scope>import</scope>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>mailbox-common</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>${fastjson2.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
@ -39,6 +45,12 @@
<version>${mybatis-plus-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>${mybatis-spring.version}</version>
</dependency>
<dependency>
<groupId>com.tongweb.springboot</groupId>
<artifactId>tongweb-spring-boot-starter-3.x</artifactId>
@ -51,10 +63,17 @@
<version>42.7.1</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.25</version>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>mailbox-common</module>
<module>mailbox-outer</module>
<module>mailbox-lan</module>
<module>mailbox-outer-admin</module>

Loading…
Cancel
Save