package com.fs.qw.controller;


import com.fs.common.core.controller.BaseController;
import com.fs.common.core.domain.AjaxResult;
import com.fs.common.core.page.TableDataInfo;
import com.fs.qw.param.SopUserLogsVO;
import com.fs.sop.params.SopUserLogsParam;
import com.fs.sop.service.ISopUserLogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * sopUserLogsController
 *
 * @author fs
 * @date 2024-12-27
 */
@RestController
@RequestMapping("/qwSop/sopUserLogs")
public class SopUserLogsController extends BaseController
{
    @Autowired
    private ISopUserLogsService sopUserLogsService;

    /**
     * 查询sopUserLogs列表
     */
    @GetMapping("/list")
    public TableDataInfo list(SopUserLogsParam sopUserLogs)
    {
        startPage();
        List<SopUserLogsVO> list = sopUserLogsService.selectSopUserLogsList(sopUserLogs);
        return getDataTable(list);
    }


    /**
     * 获取sopUserLogs详细信息
     */
    @PreAuthorize("@ss.hasPermi('qw:sop:list')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") String id)
    {
        return AjaxResult.success(sopUserLogsService.selectSopUserLogsById(id));
    }

}
