blob: 087c13b1d49cf643477d3e8f3569c9e9ffaae748 [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);
}