package com.xhpc.common.api;

import com.xhpc.common.api.factory.TenantFallbackFactory;
import com.xhpc.common.core.constant.ServiceNameConstants;
import com.xhpc.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yuyang
 * @date 2022/3/17 15:01
 */
@FeignClient(contextId = "tenantService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = TenantFallbackFactory.class)
public interface TenantService {

    @GetMapping("/tenant/getTenantIdTime")
    R gettenantIdTime(@RequestParam(value = "tenantId") String tenantId);


    @GetMapping("/tenant/detail")
    R getTenantDetail(@RequestParam(value = "tenantId") String tenantId);
}
