package jnpf.notice.controller.web;


import com.github.pagehelper.PageInfo;
import jnpf.base.ActionResult;
import jnpf.base.vo.PageListVO;
import jnpf.model.notice.dto.FtbNoticeAnnouncementsLogDto;
import jnpf.model.notice.req.oplog.QueryLogListReq;
import jnpf.notice.service.FtbNoticeAnnouncementsLogService;
import jnpf.util.FtbUtil;
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;

/**
 * web公告操作日志模块
 *
 * @author xgl
 * @since 2024-05-08 09:51:36
 */
@RestController
@RequestMapping("/web/noticeLog")
public class FtbNoticeAnnouncementsLogController {
    /**
     * 服务对象
     */
    @Autowired
    private FtbNoticeAnnouncementsLogService ftbNoticeAnnouncementsLogService;

    /**
     * 查询操作日志
     *
     * @param req
     * @return {@link ActionResult}<{@link FtbNoticeAnnouncementsLogDto}>
     */
    @GetMapping("/queryList")
    public ActionResult<PageListVO<FtbNoticeAnnouncementsLogDto>> queryList(QueryLogListReq req) {
        PageInfo<FtbNoticeAnnouncementsLogDto> pageVo = ftbNoticeAnnouncementsLogService.queryList(req);
        return ActionResult.page(pageVo.getList(), FtbUtil.getPagination(pageVo));
    }

}

