package com.sptg.estate.api.feigns;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.estate.api.entity.NoticePushDeviceDetails;
import com.sptg.estate.api.feigns.fallback.NoticePushDetailsFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * title: NoticePushDetailsFeign
 * package: com.sptg.estate.api.feigns
 * description:
 *
 *                  
 *               
 */
@FeignClient(value = "smart-house-estate",fallbackFactory = NoticePushDetailsFeignFallbackFactory.class)
public interface NoticePushDetailsFeign {

    /**
     * 功能描述: 修改公告推送任务的状态
     * @param dto
     * {
     *     taskId       :   任务Id
     *     serialNumber :   设备序列号
     *     pushStatus   :   任务执行状态{ 1：成功，2：失败 }
     *     remark       :   备注（失败原因）,选填
     * }
     * @return ResultBean<Boolean>
     *                  
     *                     
     */
    @PostMapping(value = "/notice/push/task/details/updatePushStatus")
    ResultBean<Boolean> updatePushStatus(@RequestBody NoticePushDeviceDetails dto);

}
