package com.upyuns.platform.rs.universal.controller;

import com.upyuns.platform.rs.universal.biz.MailServiceBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("mail")
public class EmailSendController {

	@Autowired
	MailServiceBiz mailServiceBiz;

	@PostMapping(value = "/app/unauth/send")
	public void senEmail(String toUser, String subject, String content) {
		mailServiceBiz.run(toUser, subject, content);
	}

}
