blob: b83bce522a0b30d94eddb70bdada3c61d4f5a05a [file] [log] [blame]
package com.example.myproject.service;
import com.example.myproject.entity.Promotion;
import com.example.myproject.dto.PromotionCreateDTO;
import java.util.List;
public interface PromotionService {
Promotion createPromotion(PromotionCreateDTO promotionDTO);
List<Promotion> getAllActivePromotions();
Promotion getPromotionById(Long promotionId);
void deletePromotion(Long promotionId);
// double getCurrentDiscount(Long torrentId);
double getUploadBonus(Long torrentId);
double getDownloadDiscount(Long torrentId);
}