Authored by caoyan

cps四期

/**
*
*/
package com.yoho.unions.common.service;
import com.yoho.service.model.msgcenter.sms.McSmsByMobileBO;
import com.yoho.service.model.sms.response.CommonRspBO;
/**
* @author caoyan
*/
public interface ISendSmsService {
CommonRspBO smsSendByMobile(McSmsByMobileBO[] boList);
}
... ...
/**
*
*/
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);
}
}
... ...
... ... @@ -101,6 +101,10 @@
<artifactId>users-service-model</artifactId>
</dependency>
<dependency>
<groupId>com.yoho.service.model</groupId>
<artifactId>message-service-model</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
... ...