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.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

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

	@Autowired
	MailServiceBiz mailServiceBiz;

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

}
