package com.siwei.system.api;

import com.siwei.common.core.constant.SecurityConstants;
import com.siwei.system.api.factory.RemoteAuditflowTypeFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import com.siwei.common.core.constant.ServiceNameConstants;
import com.siwei.common.core.domain.R;

/**
 * 核查服务
 *
 * @author siwei-zhx
 */
@FeignClient(contextId = "remoteAuditflowTypeService", value = ServiceNameConstants.RSMONITORING_SERVICE, fallbackFactory = RemoteAuditflowTypeFallbackFactory.class)
public interface RemoteAuditflowTypeService {

    /**
     * 緩存地块的審核流程類型
     *
     * @return 结果
     */
    @PostMapping(value = "/auditflow/type/cache")
    public R<Boolean> auditFlowCache(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
