blob: b83bce522a0b30d94eddb70bdada3c61d4f5a05a [file] [log] [blame]
2230111590135d72025-06-03 17:11:40 +08001package com.example.myproject.service;
2
3import com.example.myproject.entity.Promotion;
4import com.example.myproject.dto.PromotionCreateDTO;
5import java.util.List;
6
7public interface PromotionService {
8 Promotion createPromotion(PromotionCreateDTO promotionDTO);
9
10 List<Promotion> getAllActivePromotions();
11
12 Promotion getPromotionById(Long promotionId);
13
14 void deletePromotion(Long promotionId);
15
YelinCui09ee07c2025-06-07 05:09:55 +080016// double getCurrentDiscount(Long torrentId);
17 double getUploadBonus(Long torrentId);
18 double getDownloadDiscount(Long torrentId);
19
20
2230111590135d72025-06-03 17:11:40 +080021}