2024-03-06 20:56:22 +08:00
|
|
|
package com.ai.da.service;
|
|
|
|
|
|
2024-03-15 15:38:56 +08:00
|
|
|
|
|
|
|
|
import com.ai.da.common.response.PageBaseResponse;
|
|
|
|
|
import com.ai.da.mapper.primary.entity.CreditsDetail;
|
|
|
|
|
import com.ai.da.model.dto.QueryIncomeOrExpenditureDTO;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
|
|
|
|
|
|
public interface CreditsService extends IService<CreditsDetail> {
|
2024-03-06 20:56:22 +08:00
|
|
|
|
|
|
|
|
void initCredits();
|
|
|
|
|
|
|
|
|
|
Boolean buyCredits(Long accountId, Integer quantity);
|
|
|
|
|
|
|
|
|
|
void creditsIncrease(Long accountId, String event);
|
|
|
|
|
|
|
|
|
|
void creditsDecrease(Long accountId, String event);
|
|
|
|
|
|
|
|
|
|
String getCredits();
|
|
|
|
|
|
|
|
|
|
void creditsRefund(Long accountId, Integer quantity);
|
2024-03-15 15:38:56 +08:00
|
|
|
|
|
|
|
|
void insertToCreditsDetail(Long accountId, String changeEvent, String credits, String changeType);
|
|
|
|
|
|
|
|
|
|
PageBaseResponse<CreditsDetail> queryCreditsDetailsPage(QueryIncomeOrExpenditureDTO queryPageByTimeDTO);
|
2024-03-06 20:56:22 +08:00
|
|
|
}
|