Skip to content
Snippets Groups Projects
Commit e1b9d63f authored by Martin Gargalovič's avatar Martin Gargalovič
Browse files

added dummy implementation for get and delete mail

parent 320c2916
No related branches found
No related tags found
1 merge request!12Mail module
Pipeline #
...@@ -18,6 +18,17 @@ public class MailService { ...@@ -18,6 +18,17 @@ public class MailService {
message.setText(dto.content); message.setText(dto.content);
emailSender.send(message); emailSender.send(message);
// store to database once there is one
return "Success, you have sent: " + dto.content; return "Success, you have sent: " + dto.content;
} }
public EmailDto getMail(long id) {
return new EmailDto("","",""); // return from database once there is one
}
public String DeleteMail (long id) {
return "No mail with that Id";
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment