package com.sptg.device.biz.controller;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.device.api.entity.InstructPublishLogDustbin;
import com.sptg.device.api.feigns.InstructPublishLogDustbinFeign;
import com.sptg.device.biz.service.InstructPublishLogDustbinService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 *
 *
 * description:
 */
@RestController
@RequiredArgsConstructor
public class InstructPublishLogDustbinController implements InstructPublishLogDustbinFeign {

    private final InstructPublishLogDustbinService instructPublishLogDustbinService;

    @Override
    @PostMapping("/logDustbin/insert")
    public ResultBean<Boolean> insertLogDustbin(InstructPublishLogDustbin instructPublishLogDustbin){
        return instructPublishLogDustbinService.insertLogDustbin(instructPublishLogDustbin);
    }

    @Override
    @PostMapping("/logDustbin/insert/list")
    public ResultBean<Boolean> insertLogDustbinList(List<InstructPublishLogDustbin> logDustbins){
        return instructPublishLogDustbinService.insertLogDustbinList(logDustbins);
    }
}
