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

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

@Service
public class WorkflowServiceClient extends AbstractRetrofitManager {

    private final WorkflowServiceApi workflowServiceApi;

    public WorkflowServiceClient(@Qualifier("retrofitWorkflow") Retrofit retrofit) {
        this.workflowServiceApi = retrofit.create(WorkflowServiceApi.class);
    }
}
