package net.lab1024.sa.admin.module.business.wms.shipping.controller;

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.admin.module.business.wms.shipping.form.AllocationForm;
import net.lab1024.sa.admin.module.business.wms.shipping.service.ShippingService;
import net.lab1024.sa.base.common.domain.ResponseDTO;
import net.lab1024.sa.base.module.support.operatelog.annotation.OperateLog;
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 ShippingController {

    @Resource
    private ShippingService shippingService;

    @Operation(summary = "分配明细 @author 霍锦")
    @PostMapping("/shipping/allocationPickDetail")
    @SaCheckPermission("shipping:allocationPickDetail")
    @OperateLog
    public ResponseDTO<String> allocationPickDetail(@RequestBody AllocationForm allocationForm) {
        return shippingService.allocationPickDetail(allocationForm);
    }
}
