package com.bonus.material.part.controller;

import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.common.log.annotation.SysLog;
import com.bonus.common.log.enums.OperaType;
import com.bonus.material.common.annotation.PreventRepeatSubmit;
import com.bonus.material.part.domain.vo.PartChaseVerifyVo;
import com.bonus.material.part.service.IPartCheckInfoService;
import com.bonus.material.purchase.domain.vo.PurchaseVerifyVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Author ma_sh
 * @create 2025/2/18 16:14
 */
@Api(tags = "配件入库管理接口")
@RestController
@RequestMapping("/part_check")
public class PartCheckInfoController {

    @Resource
    private IPartCheckInfoService partCheckInfoService;

    /**
     * 配件内层批量验收API
     * @param partChaseVerifyVo
     * @return
     */
    @ApiOperation("配件内层批量验收API")
    @PreventRepeatSubmit
    @PostMapping("/innerVerify")
    public AjaxResult innerVerify(@RequestBody PartChaseVerifyVo partChaseVerifyVo) {
        return partCheckInfoService.innerVerify(partChaseVerifyVo);
    }
}
