12 changed files with 238 additions and 11 deletions
@ -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> |
||||||
@ -0,0 +1,8 @@ |
|||||||
|
package com.biutag.exception; |
||||||
|
|
||||||
|
public class BusinessException extends RuntimeException { |
||||||
|
|
||||||
|
public BusinessException(String message) { |
||||||
|
super(message); |
||||||
|
} |
||||||
|
} |
||||||
@ -1,2 +1,12 @@ |
|||||||
server: |
server: |
||||||
port: 8083 |
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 |
||||||
@ -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(); |
||||||
|
} |
||||||
|
} |
||||||
@ -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; |
||||||
|
|
||||||
|
} |
||||||
@ -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> { |
||||||
|
} |
||||||
@ -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> { |
||||||
|
} |
||||||
Loading…
Reference in new issue