package com.xxfc.platform.universal.controller;

import com.xxfc.platform.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);
	}

}
