| package com.example.g8backend.service; | |
| import com.example.g8backend.entity.Peer; | |
| import java.util.List; | |
| public interface PeerService { | |
| Peer getPeerByPK(String peerId, String infoHash, String passkey); | |
| List<Peer> getPeerByInfoHashAndPeerId(String infoHash, String peerId); | |
| void updatePeer(String passkey, String peerId, String infoHash, double uploaded, double downloaded); | |
| } |