init
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package com.tailbet.service;
|
||||
|
||||
import com.tailbet.model.entity.PointsFlow;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
|
||||
/**
|
||||
* 积分Service接口
|
||||
*/
|
||||
public interface IPointsService {
|
||||
|
||||
// 积分类型常量
|
||||
String TYPE_OPS_ADD = "ops_add";
|
||||
String TYPE_OPS_SUB = "ops_sub";
|
||||
String TYPE_BET = "bet";
|
||||
String TYPE_AWARD = "award";
|
||||
String TYPE_RP_SEND = "rp_send";
|
||||
String TYPE_RP_RECV = "rp_recv";
|
||||
|
||||
/**
|
||||
* 添加积分
|
||||
*/
|
||||
void addPoints(Long userId, Long amount, String type, String bizNo, Long operatorId, String remark);
|
||||
|
||||
/**
|
||||
* 扣除积分
|
||||
*/
|
||||
boolean subPoints(Long userId, Long amount, String type, String bizNo, Long operatorId, String remark);
|
||||
|
||||
/**
|
||||
* 获取用户积分
|
||||
*/
|
||||
Long getPoints(Long userId);
|
||||
|
||||
/**
|
||||
* 查询积分流水记录
|
||||
*/
|
||||
Page<PointsFlow> getFlowPage(Long userId, Integer pageNum, Integer pageSize);
|
||||
}
|
||||
Reference in New Issue
Block a user