blob: 21224113a88d4a3cae41142bfd02ac60fc9b0a57 [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
YelinCuia08f5f02025-06-08 23:03:34 +080021
22}