You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
1 year ago
|
package com.zc.business.controller;
|
||
|
|
||
|
import com.ruoyi.common.core.controller.BaseController;
|
||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||
|
import com.zc.business.domain.DcWarning;
|
||
|
import com.zc.business.service.IMsmService;
|
||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
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 java.util.HashMap;
|
||
|
|
||
|
/**
|
||
|
* 王思祥
|
||
|
* 推送业务
|
||
|
*/
|
||
|
@RestController
|
||
|
@RequestMapping("/business/sms")
|
||
|
public class MsmController extends BaseController {
|
||
|
@Autowired
|
||
|
private IMsmService msmService;
|
||
|
|
||
|
/**
|
||
|
* 短信推送业务,阿里云短信业务
|
||
|
*/
|
||
|
@PostMapping("/push")
|
||
|
public Boolean alibabaCloudSms()
|
||
|
{
|
||
|
return msmService.send("19806114248");
|
||
|
}
|
||
|
//调用微信推送
|
||
|
@PostMapping("/wenXinPush")
|
||
|
public AjaxResult commandAndDispatch(){
|
||
|
return AjaxResult.success(msmService.wenXinSend("wx9ee0e3babfd8d2af","de2ecb80b30d63135918ba3ae6ffb711"));
|
||
|
}
|
||
|
}
|