package com.cnooc.expert.external.subject.service;

import com.cnooc.expert.external.common.AbstractRetrofitManager;
import com.cnooc.expert.external.subject.api.SubjectServiceApi;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import retrofit2.Retrofit;

@Service
public class SubjectServiceClient extends AbstractRetrofitManager {

    private final SubjectServiceApi subjectServiceApi;

    public SubjectServiceClient(@Qualifier("retrofitSubject") Retrofit retrofit) {
        this.subjectServiceApi = retrofit.create(SubjectServiceApi.class);
    }

}
