root | cd43656 | 2025-05-08 14:09:19 +0000 | [diff] [blame] | 1 | package cheat; |
| 2 | import org.apache.commons.lang3.tuple.Pair; |
root | ff0769a | 2025-05-18 17:24:41 +0000 | [diff] [blame^] | 3 | |
| 4 | import entity.Appeal; |
root | cd43656 | 2025-05-08 14:09:19 +0000 | [diff] [blame] | 5 | public interface CheatInterfnterface{ |
| 6 | public Pair<String,String>[] GetFeakSeed();//返回做假种的列表,<seedid,userid> |
| 7 | public void DetectFeakSeed();//检测所有种子是否为假种,并将检测结果写入数据表 |
| 8 | public void DetectTrans();//检测所有种子是存在伪造上传量下载量 |
| 9 | public boolean DetectTransSeed(String seedid);//检测单个种子是否存在伪造上传量下载量 |
| 10 | public boolean DetectFeakSeed(String seedid);//检测单个用户是否存在假种 |
| 11 | public void PunishUser();//扫描数据库中的可疑表,标记可疑用户 |
| 12 | public boolean DetectUser(String userid);//检测单个用户是否存在可疑行为,每次登录的时候进行检查 |
| 13 | public String[] GetPunishedUserList();//获取所有可疑用户的列表 |
| 14 | |
| 15 | public boolean AddAppeal(Appeal appeal);//数据库中写入一个申诉请求 |
| 16 | public Appeal GetAppeal(String appealid);//获取某个申诉 |
| 17 | public Appeal[] GetAppealList();//获取所有申诉列表 |
| 18 | |
| 19 | public boolean RevokePunish(String userid);//撤销某个用户的惩罚 |
| 20 | |
| 21 | } |