blob: 21224113a88d4a3cae41142bfd02ac60fc9b0a57 [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);
}