Files
smartDriveEE/src/main/java/com/rj/common/ServiceManager.java
2025-08-16 18:55:59 +08:00

76 lines
1.8 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.rj.common;
import com.rj.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* Service管理器
* 统一管理所有常用的Service注入减少Controller中的重复注入
*
* @author 系统生成
* @since 2025-08-07
*/
@Component
public class ServiceManager {
@Autowired
private IDealershipService dealershipService;
@Autowired
private IProjectManagementService projectManagementService;
@Autowired
private ISalesManagementService salesManagementService;
@Autowired
private ICustomerManagementService customerManagementService;
@Autowired
private IDeviceManagementService deviceManagementService;
@Autowired
private IAudioManagementService audioManagementService;
@Autowired
private IVideoManagementService videoManagementService;
@Autowired
private IReservationService reservationService;
// Getter方法
public IDealershipService getDealershipService() {
return dealershipService;
}
public IProjectManagementService getProjectManagementService() {
return projectManagementService;
}
public ISalesManagementService getSalesManagementService() {
return salesManagementService;
}
public ICustomerManagementService getCustomerManagementService() {
return customerManagementService;
}
public IDeviceManagementService getDeviceManagementService() {
return deviceManagementService;
}
public IAudioManagementService getAudioManagementService() {
return audioManagementService;
}
public IVideoManagementService getVideoManagementService() {
return videoManagementService;
}
public IReservationService getReservationService() {
return reservationService;
}
}