wang-hao-jie
2021-10-19 e48043a2df9ca0c73fe18298bab3c4d42ca5c0c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package cn.exrick.xboot.core.service.elasticsearch;
 
import cn.exrick.xboot.core.common.vo.SearchVo;
import cn.exrick.xboot.core.entity.elasticsearch.EsLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
 
/**
 * @author Exrickx
 */
public interface EsLogService {
 
    /**
     * 添加日志
     * @param esLog
     * @return
     */
    EsLog saveLog(EsLog esLog);
 
    /**
     * 通过id删除日志
     * @param id
     */
    void deleteLog(String id);
 
    /**
     * 删除全部日志
     */
    void deleteAll();
 
    /**
     * 分页搜索获取日志
     * @param type
     * @param key
     * @param searchVo
     * @param pageable
     * @return
     */
    Page<EsLog> findByCondition(Integer type, String key, SearchVo searchVo, Pageable pageable);
}