diff --git a/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/client/SmsAliYunClient.java b/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsClientOfAliYun.java similarity index 96% rename from system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/client/SmsAliYunClient.java rename to system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsClientOfAliYun.java index 06272d09c..0a675a230 100644 --- a/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/client/SmsAliYunClient.java +++ b/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsClientOfAliYun.java @@ -1,6 +1,5 @@ -package cn.iocoder.mall.system.biz.service.sms.client; +package cn.iocoder.mall.system.biz.service.sms; -import cn.iocoder.mall.system.biz.service.sms.SmsClient; import com.alibaba.fastjson.JSON; import com.aliyuncs.CommonRequest; import com.aliyuncs.CommonResponse; @@ -28,9 +27,9 @@ import java.util.Map; * @time 2019/5/25 12:28 PM */ @Component -public class SmsAliYunClient implements SmsClient { +public class SmsClientOfAliYun implements SmsClient { - private static final Logger LOGGER = LoggerFactory.getLogger(SmsAliYunClient.class); + private static final Logger LOGGER = LoggerFactory.getLogger(SmsClientOfAliYun.class); private static final String DOMAIN = "dysmsapi.aliyuncs.com"; private static final String SUCCESS_CODE = "OK"; diff --git a/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/client/SmsYunPianClient.java b/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsClientOfYunPian.java similarity index 97% rename from system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/client/SmsYunPianClient.java rename to system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsClientOfYunPian.java index fe633f7c0..aff56716e 100644 --- a/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/client/SmsYunPianClient.java +++ b/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsClientOfYunPian.java @@ -1,8 +1,7 @@ -package cn.iocoder.mall.system.biz.service.sms.client; +package cn.iocoder.mall.system.biz.service.sms; import cn.iocoder.common.framework.exception.ServiceException; import cn.iocoder.mall.system.biz.enums.AdminErrorCodeEnum; -import cn.iocoder.mall.system.biz.service.sms.SmsClient; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import org.apache.http.HttpEntity; @@ -32,9 +31,9 @@ import java.util.Map; * @time 2019/5/16 6:34 PM */ @Component -public class SmsYunPianClient implements SmsClient { +public class SmsClientOfYunPian implements SmsClient { - protected static final Logger LOGGER = LoggerFactory.getLogger(SmsYunPianClient.class); + protected static final Logger LOGGER = LoggerFactory.getLogger(SmsClientOfYunPian.class); private static final int SUCCESS_CODE = 0; private static final String SUCCESS_MESSAGE = "SUCCESS"; diff --git a/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsServiceImpl.java b/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsServiceImpl.java index eff3051a1..7c8357657 100644 --- a/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsServiceImpl.java +++ b/system/system-biz/src/main/java/cn/iocoder/mall/system/biz/service/sms/SmsServiceImpl.java @@ -55,10 +55,10 @@ public class SmsServiceImpl implements SmsService { private SmsSendMapper smsSendMapper; @Autowired - @Qualifier("smsYunPianClient") + @Qualifier("smsClientOfYunPian") private SmsClient smsYunPianClient; @Autowired - @Qualifier("smsAliYunClient") + @Qualifier("smsClientOfAliYun") private SmsClient smsAliYunClient; @Override