mirror of
https://gitee.com/wangkang/udf.git
synced 2026-11-02 23:03:45 +00:00
更新
This commit is contained in:
@@ -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<>();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user