| 1 | |
package com.ctrip.apollo.portal.service; |
| 2 | |
|
| 3 | |
import com.ctrip.apollo.core.enums.Env; |
| 4 | |
import com.ctrip.apollo.core.dto.ClusterDTO; |
| 5 | |
import com.ctrip.apollo.portal.api.AdminServiceAPI; |
| 6 | |
|
| 7 | |
import org.springframework.beans.factory.annotation.Autowired; |
| 8 | |
import org.springframework.stereotype.Service; |
| 9 | |
|
| 10 | |
import java.util.List; |
| 11 | |
|
| 12 | |
@Service |
| 13 | 1 | public class PortalClusterService { |
| 14 | |
|
| 15 | |
@Autowired |
| 16 | |
private AdminServiceAPI.ClusterAPI clusterAPI; |
| 17 | |
|
| 18 | |
public List<ClusterDTO> findClusters(Env env, String appId){ |
| 19 | 0 | return clusterAPI.findClustersByApp(appId, env); |
| 20 | |
} |
| 21 | |
|
| 22 | |
} |