会员: 重构会员等级逻辑

This commit is contained in:
owen
2023-08-23 10:02:00 +08:00
parent b7f54a3061
commit dc382d80bb
17 changed files with 130 additions and 205 deletions

View File

@ -14,8 +14,8 @@ public interface MemberLevelApi {
*
* @param userId 会员ID
* @param experience 经验
* @param bizType 业务类型
* @param bizType 业务类型 {@link MemberExperienceBizTypeEnum}
* @param bizId 业务编号
*/
void plusExperience(Long userId, Integer experience, MemberExperienceBizTypeEnum bizType, String bizId);
void plusExperience(Long userId, Integer experience, Integer bizType, String bizId);
}

View File

@ -50,6 +50,7 @@ public interface ErrorCodeConstants {
ErrorCode LEVEL_LOG_NOT_EXISTS = new ErrorCode(1004011100, "用户等级记录不存在");
ErrorCode EXPERIENCE_LOG_NOT_EXISTS = new ErrorCode(1004011200, "用户经验记录不存在");
ErrorCode EXPERIENCE_BIZ_NOT_SUPPORT = new ErrorCode(1004011201, "用户经验业务类型不支持");
//========== 用户分组 1004012000 ==========
ErrorCode GROUP_NOT_EXISTS = new ErrorCode(1004012000, "用户分组不存在");