package com.yuchen.saas.park.api.feign.work;

import com.yuchen.saas.park.api.dto.work.SaasWorkOrderDto;
import com.yuchen.saas.park.api.entity.work.SaasWorkOrder;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        value = AppNameConstant.SAAS_PARK,
        fallbackFactory = WorkOrderFeignServiceFallback.class
)
public interface WorkOrderFeignService {



    /**
     * 新增工单
     * @param workOrderDto 工单Dto
     * @return TRUE/FALSE
     */
    @PostMapping("/saasWorkOrder/add")
    R<SaasWorkOrder> add(@RequestBody @Validated SaasWorkOrderDto workOrderDto);



}
