package com.fs.store.controller;

import java.util.List;

import com.fs.store.param.FsArticleViewListParam;
import com.fs.store.vo.FsArticleViewListVO;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.fs.common.core.controller.BaseController;
import com.fs.store.service.IFsArticleViewsService;
import com.fs.common.core.page.TableDataInfo;

/**
 * 文章阅读Controller
 *
 * @author fs
 * @date 2022-03-25
 */
@RestController
@RequestMapping("/store/articleViews")
public class FsArticleViewsController extends BaseController
{

    @Autowired
    private IFsArticleViewsService fsArticleViewsService;
    /**
     * 查询文章阅读列表
     */
    @PreAuthorize("@ss.hasPermi('store:articleViews:list')")
    @GetMapping("/list")
    public TableDataInfo list(FsArticleViewListParam param)
    {
        startPage();
        List<FsArticleViewListVO> list = fsArticleViewsService.selectFsArticleViewsListVO(param);
        return getDataTable(list);
    }

}
