package org.jeecg.modules.database.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.database.entity.DocumentLibrary;
import org.jeecg.modules.database.entity.DocumentVisitHistory;

import java.util.List;

/**
 * @Description: 文档访问历史
 * @Author: jeecg-boot
 * @Date: 2024-11-14
 * @Version: V1.0
 */
public interface IDocumentVisitHistoryService extends IService<DocumentVisitHistory> {
    DocumentVisitHistory findByUserAndDocId(String userId, String documentId);

    List<DocumentLibrary> getRecently(String id);

    void removeByDocId(String documentId);

}
