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

import com.yuchen.saas.park.api.dto.repair.SaasMatterRepairDto;
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 = MatterRepairFeignServiceFallback.class
)
public interface MatterRepairFeignService {
    /**
     * 新增报事报修
     * @param matterRepairDto 报事报修Dto
     * @return TRUE/FALSE
     */
    @PostMapping("/matterRepair/add")
    R<Boolean> add(@RequestBody @Validated SaasMatterRepairDto matterRepairDto);
}
