package cn.ezhizao.project.fegin;

import cn.ezhizao.framework.web.domain.AjaxResult;
import cn.ezhizao.project.tenant.domain.Tenant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "ezhizao-yzbh-entrust")
public interface IFeignClient {

    @PostMapping("/business/workOrderCurrent/transNextTask")
    AjaxResult transNext(@RequestBody List<Tenant> storeList);

    @GetMapping("/business/workOrderCurrent/transNextForFactory")
    AjaxResult transNextFactory(@RequestParam("tenantId") Long tenantId);

    @PostMapping("/business/workOrderCurrent/test")
    AjaxResult test(@RequestBody List<Tenant> storeList);

}
