package com.hxhq.business.controller;

import java.util.Arrays;
import java.util.List;

import com.hxhq.common.security.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.hxhq.business.domain.ArchiveLog;
import com.hxhq.business.service.IArchiveLogService;
import com.hxhq.common.core.web.controller.BaseController;
import com.hxhq.common.core.web.domain.AjaxResult;
import com.hxhq.common.core.web.page.TableDataInfo;


/**
 * 档案记录Controller
 *
 * @author hxhq
 * @date 2026-01-23
 */
@RestController
@RequestMapping("/business/archiveLog")
public class ArchiveLogController extends BaseController
{
    @Autowired
    private IArchiveLogService archiveLogService;

    /**
     * 查询档案记录列表
     */
    @GetMapping("/list")
    @RequiresPermissions("business:archive:record:list")
    public TableDataInfo list(ArchiveLog archiveLog)
    {
        startPage();
        List<ArchiveLog> list = archiveLogService.queryList(archiveLog);
        return getDataTable(list);
    }

}
