package net.lab1024.sa.admin.module.business.receive;

import cn.dev33.satoken.annotation.SaCheckPermission;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import net.lab1024.sa.base.common.domain.ResponseDTO;
import net.lab1024.sa.base.common.domain.ValidateList;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Tag(name = "收货")
public class ReceiveController {

    @Resource
    private ReceiveService receiveService;

    @Operation(summary = "批量收货 @author 霍锦")
    @PostMapping("/receive/batchReceive")
    @SaCheckPermission("receive:batchReceive")
    public ResponseDTO<String> batchReceive(@RequestBody ValidateList<Long> idList) {
        return receiveService.batchReceive(idList);
    }
}
