KKSU
2024-03-27 f10afe3a9aab4e962b3ec456b8a707163e11f9bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package cc.mrbird.febs.dapp.service;
 
import cc.mrbird.febs.common.entity.FebsConstant;
import cc.mrbird.febs.dapp.entity.DappAchieve;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.scheduling.annotation.Async;
 
import java.math.BigDecimal;
import java.util.List;
 
public interface AsyncCjService extends IService<DappAchieve> {
    /**
     * 缓存redis数据
     */
    @Async(FebsConstant.ASYNC_POOL)
    void redisCacheUpdate(String key, Object value, long time);
 
    @Async(FebsConstant.ASYNC_POOL)
    void updateDataDicEnumRedis(List<String> nameList);
 
    @Async(FebsConstant.ASYNC_POOL)
    void updateAmount(Integer type, Long memberId, BigDecimal amount);
 
    @Async(FebsConstant.ASYNC_POOL)
    void insertTeamPerk(Long flowId, Long achieveId);
 
    @Async(FebsConstant.ASYNC_POOL)
    void tradeProfitDistribute();
}