diff --git a/api/src/main/resources/config/application-development.yml b/api/src/main/resources/config/application-development.yml index 206dcaf..16a392f 100644 --- a/api/src/main/resources/config/application-development.yml +++ b/api/src/main/resources/config/application-development.yml @@ -24,3 +24,4 @@ sv: store: image: imagetest/ video: videotest/ + health: health-docstest/ diff --git a/api/src/main/resources/config/application-production.yml b/api/src/main/resources/config/application-production.yml index 6f81055..fb26c22 100644 --- a/api/src/main/resources/config/application-production.yml +++ b/api/src/main/resources/config/application-production.yml @@ -17,3 +17,4 @@ sv: store: image: image/ video: video/ + health: health-docs/ diff --git a/entity/src/main/java/com/sv/entity/HealthDoc.java b/entity/src/main/java/com/sv/entity/HealthDoc.java index a696f98..3d48a99 100644 --- a/entity/src/main/java/com/sv/entity/HealthDoc.java +++ b/entity/src/main/java/com/sv/entity/HealthDoc.java @@ -1,18 +1,12 @@ package com.sv.entity; -import java.io.Serializable; import java.util.Date; -public class HealthDoc implements Serializable { +public class HealthDoc { private Integer id; private Integer memberId; - /** - * 用户昵称 - */ - private String nickName; - private String docName; private String docType; @@ -21,6 +15,8 @@ public class HealthDoc implements Serializable { private String docPath; + private Date date; + private Integer platformId; private Date createdTime; @@ -29,13 +25,14 @@ public class HealthDoc implements Serializable { private Byte deleted; - public HealthDoc(Integer id, Integer memberId, String docName, String docType, String fileType, String docPath, Integer platformId, Date createdTime, Date modifiedTime, Byte deleted) { + public HealthDoc(Integer id, Integer memberId, String docName, String docType, String fileType, String docPath, Date date, Integer platformId, Date createdTime, Date modifiedTime, Byte deleted) { this.id = id; this.memberId = memberId; this.docName = docName; this.docType = docType; this.fileType = fileType; this.docPath = docPath; + this.date = date; this.platformId = platformId; this.createdTime = createdTime; this.modifiedTime = modifiedTime; @@ -62,14 +59,6 @@ public class HealthDoc implements Serializable { this.memberId = memberId; } - public String getNickName() { - return nickName; - } - - public void setNickName(String nickName) { - this.nickName = nickName; - } - public String getDocName() { return docName; } @@ -102,6 +91,14 @@ public class HealthDoc implements Serializable { this.docPath = docPath == null ? null : docPath.trim(); } + public Date getDate() { + return date; + } + + public void setDate(Date date) { + this.date = date; + } + public Integer getPlatformId() { return platformId; } @@ -133,4 +130,4 @@ public class HealthDoc implements Serializable { public void setDeleted(Byte deleted) { this.deleted = deleted; } -} +} \ No newline at end of file diff --git a/netty-pad/src/main/resources/config/application-dev.yml b/netty-pad/src/main/resources/config/application-dev.yml index acf2455..a4f834d 100644 --- a/netty-pad/src/main/resources/config/application-dev.yml +++ b/netty-pad/src/main/resources/config/application-dev.yml @@ -12,3 +12,4 @@ sv: store: image: imagetest/ video: videotest/ + health: health-docstest/ diff --git a/netty-pad/src/main/resources/config/application-prod.yml b/netty-pad/src/main/resources/config/application-prod.yml index a42e869..43c0e55 100644 --- a/netty-pad/src/main/resources/config/application-prod.yml +++ b/netty-pad/src/main/resources/config/application-prod.yml @@ -13,3 +13,4 @@ sv: store: image: image/ video: video/ + health: health-docs/ diff --git a/oms/oms-h5/src/api/member/health/doc.js b/oms/oms-h5/src/api/member/health/doc.js new file mode 100644 index 0000000..650ad58 --- /dev/null +++ b/oms/oms-h5/src/api/member/health/doc.js @@ -0,0 +1,15 @@ +import http from '@/utils/http' + +/** + * 上传健康报告 + */ +export function save(param) { + return http.post('/member/health/save', param) +} + +/** + * 删除健康报告 + */ +export function remove(id) { + return http.post('/member/health/delete', { 'id': id }) +} diff --git a/oms/oms-h5/src/views/member/health/add.vue b/oms/oms-h5/src/views/member/health/add.vue index dd9dca5..133d8a2 100644 --- a/oms/oms-h5/src/views/member/health/add.vue +++ b/oms/oms-h5/src/views/member/health/add.vue @@ -2,8 +2,32 @@