package com.ruoyi.tencentSMS.controller;

import com.ruoyi.tencentSMS.domain.TencentSmsParam;
import com.ruoyi.tencentSMS.service.TencentSmsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/tencentSmsController")
public class TencentSmsController {

    @Resource
    TencentSmsService tencentSmsService;

    @PostMapping("/sendMessage")
    public String sendMessage(@RequestBody TencentSmsParam tencentSmsParam) {
        return tencentSmsService.sendMessage(tencentSmsParam);
    }
}
