package com.starry.admin.modules.weichat.controller;

import com.starry.admin.utils.SmsUtils;
import com.starry.common.result.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 动态接口
 *
 * @author admin
 * @since 2024/5/20 下午11:19
 **/
@Slf4j
@RestController
@RequestMapping("/wx/sms")
public class WxSmsController {
    @Resource
    private SmsUtils smsUtils;

    @GetMapping("/send")
    public R sendSms(@RequestParam("phone") String phone) {
        smsUtils.sendSmsApi(phone);
        return R.ok();
    }


}
