trade:优化下单逻辑的实现

This commit is contained in:
YunaiV
2023-09-20 20:21:41 +08:00
parent c766f7daa5
commit 1b477aaa0d
22 changed files with 272 additions and 114 deletions

View File

@ -31,4 +31,13 @@ public class MemberPointApiImpl implements MemberPointApi {
memberPointRecordService.createPointRecord(userId, point, bizTypeEnum, bizId);
}
@Override
public void reducePoint(Long userId, Integer point, Integer bizType, String bizId) {
MemberPointBizTypeEnum bizTypeEnum = MemberPointBizTypeEnum.getByType(bizType);
if (bizTypeEnum == null) {
throw exception(POINT_RECORD_BIZ_NOT_SUPPORT);
}
memberPointRecordService.createPointRecord(userId, point, bizTypeEnum, bizId);
}
}