package cn.iocoder.hake.module.op.controller.merchant;

import cn.iocoder.hake.framework.common.pojo.CommonResult;
import cn.iocoder.hake.module.op.biz.merchant.OpEnterPieceManagementBiz;
import cn.iocoder.hake.module.op.entity.OpEnterPieceManagementEntity;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 进件管理 前端控制器
 * </p>
 *
 * @author chenjr
 * @since 2025-07-31
 */
@RestController
@RequestMapping("/op/merchant")
public class OpEnterPieceManagementController {

    @Autowired
    private OpEnterPieceManagementBiz opEnterPieceManagementBiz;

    @PostMapping("/test")
    @Operation(summary = "测试ruoyi框架请求")
    //@PreAuthorize("@ss.hasPermission('mp:account:create')")
    public CommonResult<List<OpEnterPieceManagementEntity>> getString() {
        return CommonResult.success(opEnterPieceManagementBiz.getString());

    }
}
