package org.dromara.web.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.web.domain.bo.EmailSendBo;
import org.dromara.web.service.EmailService;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.io.File;

/**
 * @Author: Huanyi
 * @CreateTime: 2025-08-13
 * @Description:
 * @Version: 1.0
 */

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/email")
@SaIgnore
public class EmailController {

    private final EmailService emailService;

    @PostMapping(value ="/send")
    public R sendEmail(@RequestBody EmailSendBo bo) {
        return emailService.send(bo);
    }

}
