package com.bootdo.datas.controller;

import com.bootdo.common.annotation.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bootdo.common.utils.R;
import com.bootdo.datas.service.SmsService;

/**
 * @date 2022/3/17 15:07
 * @author wangp
 * @description
 */
@Controller
@RequestMapping("/sms")
public class SmsController {

    @Autowired
    private SmsService smsService;

    @ResponseBody
    @PostMapping("/sendSms")
    @Log("发送短信")
    public R sendSms() {
        smsService.sendSMS("18751846061", "测试企业,测试,通过");
        return R.ok();
    }
}
