This commit is contained in:
Administrator
2017-07-29 10:18:35 +08:00
committed by wangkang
parent 8a533b2238
commit c7b02bd8f3
2 changed files with 1 additions and 31 deletions
@@ -28,12 +28,6 @@ public class MailInfo implements Serializable {
*/
private static final long serialVersionUID = 1L;
/**
* 描述 : 邮件ID
*/
@ApiModelProperty(value = "邮件ID", required = true, dataType = "string")
private String id;
/**
* 描述 : 接收地址
*/
@@ -97,24 +91,6 @@ public class MailInfo implements Serializable {
@ApiModelProperty(value = "静态资源列表", required = false, dataType = "object")
private List<InlineInfo> inlines;
/**
* 描述 : 获取id
*
* @return the id
*/
public String getId() {
return id;
}
/**
* 描述 : 设置id
*
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
/**
* 描述 : 获取inlines
*
@@ -6,8 +6,6 @@
*/
package com.egridcloud.udf.mail.web;
import java.util.UUID;
import javax.mail.MessagingException;
import javax.validation.Valid;
@@ -45,14 +43,10 @@ public class MailController implements IMailController {
throw new ParameterValidException(ErrorCode.PARAMETER_VALID_ERROR.value(),
result.getAllErrors());
}
//生成ID
String id = UUID.randomUUID().toString();
//设置ID
mailInfo.setId(id);
//发送
mailService.send(mailInfo);
//返回
return new RestResponse<>(id);
return new RestResponse<>();
}
}