2024-12-09 16:53:29 +08:00
|
|
|
package com.ai.da.service;
|
|
|
|
|
|
2024-12-23 14:31:48 +08:00
|
|
|
import com.ai.da.common.response.PageBaseResponse;
|
2024-12-09 16:53:29 +08:00
|
|
|
import com.ai.da.mapper.primary.entity.Affiliate;
|
|
|
|
|
import com.ai.da.model.dto.AffiliateQueryDTO;
|
2024-12-16 10:26:02 +08:00
|
|
|
import com.ai.da.model.vo.AffiliateInvitationDetailsVO;
|
2024-12-09 16:53:29 +08:00
|
|
|
import com.ai.da.model.vo.AffiliateVO;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
|
|
2025-08-19 17:44:34 +08:00
|
|
|
import java.math.BigDecimal;
|
2025-08-21 13:22:22 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
2025-08-19 17:44:34 +08:00
|
|
|
|
2024-12-09 16:53:29 +08:00
|
|
|
public interface AffiliateService extends IService<Affiliate> {
|
|
|
|
|
|
|
|
|
|
Boolean registerAsAnAffiliate(String promotionMethod);
|
|
|
|
|
|
2024-12-23 14:31:48 +08:00
|
|
|
PageBaseResponse<AffiliateVO> getAffiliateList(AffiliateQueryDTO affiliateQueryDTO);
|
2024-12-09 16:53:29 +08:00
|
|
|
|
|
|
|
|
AffiliateVO personalAffiliateCenter();
|
|
|
|
|
|
2025-08-19 17:44:34 +08:00
|
|
|
BigDecimal[] getPersonalMonthlyIncome(int year);
|
2024-12-18 11:53:41 +08:00
|
|
|
|
2025-04-28 14:40:42 +08:00
|
|
|
Boolean applicationApproval(Long id, Boolean isApproved, Float commission);
|
|
|
|
|
|
|
|
|
|
void updateCommissionPercentage(Long id, Float commission);
|
2024-12-09 16:53:29 +08:00
|
|
|
|
|
|
|
|
void updateAffiliateInfoWithPayment();
|
|
|
|
|
|
|
|
|
|
Boolean affiliateLinkViewsIncrease(Long id);
|
2024-12-16 10:26:02 +08:00
|
|
|
|
2025-08-19 17:44:34 +08:00
|
|
|
void syncLinkViewCountToDB();
|
|
|
|
|
|
2024-12-18 11:53:41 +08:00
|
|
|
IPage<AffiliateInvitationDetailsVO> getEachAffiliateGeneratedRevenue(AffiliateQueryDTO affiliateQueryDTO);
|
|
|
|
|
|
|
|
|
|
Affiliate getByAccountId(Long accountId);
|
|
|
|
|
|
|
|
|
|
void commissionCalculation(Integer year, Integer month);
|
2025-04-15 10:22:45 +08:00
|
|
|
|
|
|
|
|
void calcCouponsCommission();
|
2025-08-21 13:22:22 +08:00
|
|
|
|
|
|
|
|
List<Map<String, Object>> getAllAffiliateUsername();
|
2025-11-13 11:40:37 +08:00
|
|
|
|
|
|
|
|
void modifyAffiliateStatus(Long affiliateId, String operationType);
|
2024-12-09 16:53:29 +08:00
|
|
|
}
|