blob: bb47ecde01d6dde911e1e1a9ad6be2b8bbd4f19e (
plain)
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
|
package com.mesasoft.cn.service;
import com.mesasoft.cn.model.DownloadRecord;
import java.util.List;
/**
* @author pantao
* @since 2018/2/1
*/
public interface IDownloadedService {
/**
* 添加下载记录
*
* @param userId 用户编号
* @param fileId 文件编号
*/
void insertDownload(int userId, long fileId);
/**
* 通过文件编号删除下载记录
*
* @param fileId 文件编号
*/
void removeByFileId(long fileId);
/**
* 获取所有下载记录
*
* @param user 用户名或邮箱
* @param category 分类名称
* @param file 文件名
* @param offset 偏移
*
* @return {@link DownloadRecord}
*/
List<DownloadRecord> list(String user, String file, String category, int offset);
}
|