비밀번호 찾기 API 추가
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package kr.co.vividnext.sodalive.email
|
||||
|
||||
import com.amazonaws.services.simpleemail.model.Destination
|
||||
import com.amazonaws.services.simpleemail.model.SendTemplatedEmailRequest
|
||||
|
||||
data class TemplatedEmailSenderDto(
|
||||
private val senderEmail: String,
|
||||
private val template: String,
|
||||
private val templateData: String,
|
||||
private val to: String
|
||||
) {
|
||||
fun toSendRequest(): SendTemplatedEmailRequest {
|
||||
val destination = Destination().withToAddresses(to)
|
||||
|
||||
return SendTemplatedEmailRequest()
|
||||
.withTemplate(template)
|
||||
.withDestination(destination)
|
||||
.withSource(senderEmail)
|
||||
.withTemplateData(templateData)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user