package com.hw.dms.api;

import com.hw.common.core.constant.SecurityConstants;
import com.hw.common.core.constant.ServiceNameConstants;
import com.hw.common.core.domain.R;
import com.hw.dms.api.factory.RemoteDmsFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @ClassName : RemoteDmsService
 * @Description :ZHOUHY
 * @Author :
 * @Date: 2024-01-30 15:53
 */
@FeignClient(contextId = "remoteDmsService", value = ServiceNameConstants.DMS_SERVICE, fallbackFactory = RemoteDmsFallbackFactory.class)
public interface RemoteDmsService {
    @PostMapping("/dmsRepairInstance/autoAdd")
    R<?> getDmsRepairInstance(@RequestHeader(SecurityConstants.FROM_SOURCE) String source,String planRepairId);

    @PostMapping("/dmsBillsInstance/autoAdd")
    R<?> getDmsBillsInstance(@RequestHeader(SecurityConstants.FROM_SOURCE) String source,String dmsBillsInstanceId);

    @PostMapping("/dmsBillsLubeInstance/autoAdd")
    R<?> getDmsBillsLube(@RequestHeader(SecurityConstants.FROM_SOURCE) String source,String planInspectId);

    @PostMapping("/dmsBillsMaintInstance/autoAdd")
    R<?> getDmsBillsMaintInstance(@RequestHeader(SecurityConstants.FROM_SOURCE) String source,String planMaintCode);
}

