All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.quhaodian.user.data.service.impl.SendCodeService Maven / Gradle / Ivy

There is a newer version: 1.8.7
Show newest version
package com.quhaodian.user.data.service.impl;

import com.quhaodian.plug.api.SendCodePlugin;
import com.quhaodian.plug.data.service.PluginService;
import com.quhaodian.user.api.SendCodeApi;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class SendCodeService implements SendCodeApi {


    @Resource(name = "pluginServiceImpl")
    private PluginService pluginService;

    @Override
    public boolean sendCode(String code, String product, String signName, String template, String phone) {

        for (SendCodePlugin storagePlugin : pluginService.getSendCodePlugins(true)) {
            return storagePlugin.sendCode(code,product,signName,template,phone);
        }
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy