package com.yingpaipay.business.controller;

import lombok.RequiredArgsConstructor;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.web.core.BaseController;
import org.dromara.common.mybatis.core.page.PageQuery;
import com.yingpaipay.business.domain.vo.DocumentQcTaskLogVo;
import com.yingpaipay.business.domain.bo.DocumentQcTaskLogBo;
import com.yingpaipay.business.service.IDocumentQcTaskLogService;
import org.dromara.common.mybatis.core.page.TableDataInfo;

/**
 * 文档质控日志
 *
 * @author Huanyi
 * @date 2026-01-14
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/qcTask/log")
public class DocumentQcTaskLogController extends BaseController {

    private final IDocumentQcTaskLogService documentQcTaskLogService;

    /**
     * 查询文档质控日志列表
     */
    @SaCheckPermission("qcTask:log:list")
    @GetMapping("/list")
    public TableDataInfo<DocumentQcTaskLogVo> list(DocumentQcTaskLogBo bo, PageQuery pageQuery) {
        return documentQcTaskLogService.queryPageList(bo, pageQuery);
    }

}
