|
|
/**
|
|
|
*
|
|
|
*/
|
|
|
package com.yoho.unions.common.service.impl;
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.yoho.core.rest.client.ServiceCaller;
|
|
|
import com.yoho.service.model.msgcenter.sms.McSmsByMobileBO;
|
|
|
import com.yoho.service.model.sms.response.CommonRspBO;
|
|
|
import com.yoho.unions.common.service.ISendSmsService;
|
|
|
|
|
|
/**
|
|
|
* @author caoyan
|
|
|
*/
|
|
|
@Service
|
|
|
public class SendSmsServiceImpl implements ISendSmsService {
|
|
|
|
|
|
private static Logger log = LoggerFactory.getLogger(SendSmsServiceImpl.class);
|
|
|
|
|
|
@Autowired
|
|
|
private ServiceCaller serviceCaller;
|
|
|
|
|
|
@Override
|
|
|
public CommonRspBO smsSendByMobile(McSmsByMobileBO[] boList) {
|
|
|
log.info("smsSendByMobile start.");
|
|
|
|
|
|
return serviceCaller.call("message.smsSendByMobile", boList, CommonRspBO.class);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|