package com.hw.mes.controller;

import com.hw.common.core.web.controller.BaseController;
import com.hw.common.core.web.domain.AjaxResult;
import com.hw.common.log.annotation.Log;
import com.hw.common.log.enums.BusinessType;
import com.hw.mes.domain.vo.*;
import com.hw.mes.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * MES手持端接口Controller
 *
 * @author xins
 * @date 2024-04-15
 */
@RestController
@RequestMapping("/mobile")
public class MesMobileController extends BaseController {
    @Autowired
    private IMesBasePalletInfoService mesBasePalletInfoService;


    /**
     * 物料条码和托盘码绑定
     */
    @Log(title = "托盘信息", businessType = BusinessType.BIND)
    @PostMapping(("/bindPalletInfo"))
    public AjaxResult bindPalletInfo(@Validated @RequestBody MesPalletInfoBindVo mesPalletInfoBindVo) {
        return success(mesBasePalletInfoService.bindPalletInfo(mesPalletInfoBindVo));
    }


}
