加入积分系统,将充值与积分关联
This commit is contained in:
16
src/main/java/com/ai/da/service/CreditsService.java
Normal file
16
src/main/java/com/ai/da/service/CreditsService.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package com.ai.da.service;
|
||||
|
||||
public interface CreditsService {
|
||||
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user