package com.yingpaipay.business.controller.applet;

import com.yingpaipay.business.domain.bo.AppletRecentDocumentBo;
import com.yingpaipay.business.domain.vo.AppletRecentDocumentVo;
import com.yingpaipay.business.service.IDocumentService;
import lombok.RequiredArgsConstructor;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.web.core.BaseController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/applet/home")
@RestController
@RequiredArgsConstructor
public class AppletHomeController extends BaseController {

    private final IDocumentService documentService;

    @GetMapping("/listRecent")
    public TableDataInfo<AppletRecentDocumentVo> listRecent(AppletRecentDocumentBo bo, PageQuery pageQuery) {
        return documentService.listRecentOnApplet(bo, pageQuery);
    }

}
