| 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); |
| |
| |
| |
| } |