package com.sunxung.factoring.component.config;

import com.sunxung.factoring.service.creditresolution.ICreditResolutionService;
import com.sunxung.factoring.service.creditresolution.impl.CreditResolutionServiceImpl;
import com.sunxung.factoring.service.project.IProjectCoreEnterpriseService;
import com.sunxung.factoring.service.project.IProjectInformationService;
import com.sunxung.factoring.service.project.impl.ProjectCoreEnterpriseServiceImpl;
import com.sunxung.factoring.service.project.impl.ProjectInformationServiceImpl;
import com.sunxung.factoring.service.supplier.ISupplierInfoService;
import com.sunxung.factoring.service.supplier.impl.SupplierInfoServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description
 * @Author
 * @Date
 */
@Configuration
public class ServiceConfiguration {

    @Bean(name = {"SupplierInfoService", "supplierInfoService", "supplier_addService"})
    public ISupplierInfoService createSupplierInfoService() {
        return new SupplierInfoServiceImpl();
    }

    @Bean(name = {"projectInformationService", "project_addService"})
    public IProjectInformationService createProjectInformationService() {
        return new ProjectInformationServiceImpl();
    }

    @Bean(name = {"projectCoreEnterpriseService", "project_core_enterprise_addService"})
    public IProjectCoreEnterpriseService createProjectCoreEnterpriseService() {
        return new ProjectCoreEnterpriseServiceImpl();
    }

    @Bean(name = {"creditResolutionService", "credit_resolution_addService"})
    public ICreditResolutionService createCreditResolutionService() {
        return new CreditResolutionServiceImpl();
    }

}
