package com.sptg.estate.api.feigns;

import com.baomidou.mybatisplus.plugins.Page;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.estate.api.dto.IntegratedServiceDto;
import com.sptg.estate.api.entity.IntegratedService;
import com.sptg.estate.api.feigns.fallback.IntegratedServiceFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * title: MemberFeign
 * package: com.sptg.estate.api.feigns
 * description::综合服务方-服务接口
 *
 *               
 *                
 */
@FeignClient(value= "smart-house-estate",fallbackFactory= IntegratedServiceFeignFallbackFactory.class)
public interface IntegratedServiceFeign {

    /**
     * 功能描述:分页查询
     * @param integratedServiceDto
     * @return ResultBean<Page<IntegratedService>>
     *               
     *                      
     */
    @PostMapping(value = "/implement/integrated/service/showList")
    ResultBean<Page<IntegratedService>> showList(@RequestBody IntegratedServiceDto integratedServiceDto);

    /**
     * 功能描述:新增
     * @param integratedService
     * @return ResultBean<Page<IntegratedService>>
     *               
     *                      
     */
    @PostMapping(value = "/implement/integrated/service/insert")
    ResultBean<Boolean> insert(@RequestBody IntegratedService integratedService);

    /**
     * 功能描述:根据id查询
     * @param id
     * @return IntegratedService
     *               
     *                      
     */
    @PostMapping(value = "/implement/integrated/service/findById")
    IntegratedService findById(@RequestBody Long id);

    /**
     * 功能描述:根据id修改实体
     * @param integratedService
     * @return IntegratedService
     *               
     *                      
     */
    @PostMapping(value = "/implement/integrated/service/editById")
    ResultBean<Boolean> editById(@RequestBody IntegratedService integratedService);
}
