22301115 | 90135d7 | 2025-06-03 17:11:40 +0800 | [diff] [blame] | 1 | package com.example.myproject.service; |
| 2 | |
| 3 | import com.example.myproject.entity.Promotion; |
| 4 | import com.example.myproject.dto.PromotionCreateDTO; |
| 5 | import java.util.List; |
| 6 | |
| 7 | public 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 | |
YelinCui | 09ee07c | 2025-06-07 05:09:55 +0800 | [diff] [blame^] | 16 | // double getCurrentDiscount(Long torrentId); |
| 17 | double getUploadBonus(Long torrentId); |
| 18 | double getDownloadDiscount(Long torrentId); |
| 19 | |
| 20 | |
22301115 | 90135d7 | 2025-06-03 17:11:40 +0800 | [diff] [blame] | 21 | } |