package com.ruoyi.web.controller.common;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.InvestigateTable;
import com.ruoyi.system.domain.InvestigateUser;
import com.ruoyi.system.service.IInvestigateTableService;
import com.ruoyi.system.service.IInvestigateUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: tjf
 * @Date: 2023/10/13 17:15
 * @Describe:
 */
@RestController
@RequestMapping("/sendSms")
public class SendSmsController {

    @Autowired
    private IInvestigateUserService investigateUserService;

    /**
     * 给对应考察团发送密码短信
     * @param investigateUser
     * @return
     */
    @PostMapping("/investigateTable")
    public AjaxResult sendSmsInvestigateTable(@RequestBody InvestigateUser investigateUser)
    {
        return  investigateUserService.sendSmsInvestigateTable(investigateUser);
    }
}
