package com.wms_main.controller.wms;

import com.wms_main.model.dto.response.wms.BaseWmsApiResponse;
import com.wms_main.model.po.TAppLocation;
import com.wms_main.service.controller.ILocationControllerService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * 卡特相关控制类
 */
@RestController
@ResponseBody
@CrossOrigin
@RequiredArgsConstructor
@RequestMapping("/wms/location")
public class LocationController {
    private final ILocationControllerService locationControllerService;// 库位控制类服务

    /**
     * 初始化库位
     * @param locationQuery 查询
     * @return 创建结果
     */
    @PostMapping("/genLocations")
    public BaseWmsApiResponse genLocations(@RequestBody TAppLocation locationQuery) {
        return locationControllerService.genLocations(locationQuery);
    }
}
