mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-15 03:25:06 +08:00
code review:会员等级
This commit is contained in:
@ -3,7 +3,7 @@ package cn.iocoder.yudao.module.member.api.level;
|
||||
import cn.iocoder.yudao.module.member.enums.MemberExperienceBizTypeEnum;
|
||||
|
||||
/**
|
||||
* 会员等级 API接口
|
||||
* 会员等级 API 接口
|
||||
*
|
||||
* @author owen
|
||||
*/
|
||||
@ -17,5 +17,6 @@ public interface MemberLevelApi {
|
||||
* @param bizType 业务类型 {@link MemberExperienceBizTypeEnum}
|
||||
* @param bizId 业务编号
|
||||
*/
|
||||
void plusExperience(Long userId, Integer experience, Integer bizType, String bizId);
|
||||
void addExperience(Long userId, Integer experience, Integer bizType, String bizId);
|
||||
|
||||
}
|
||||
|
@ -48,8 +48,6 @@ public interface ErrorCodeConstants {
|
||||
ErrorCode LEVEL_EXPERIENCE_MAX = new ErrorCode(1004011004, "升级经验必须小于下一个等级[{}]设置的升级经验[{}]");
|
||||
ErrorCode LEVEL_HAS_USER = new ErrorCode(1004011005, "用户等级下存在用户,无法删除");
|
||||
|
||||
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 ==========
|
||||
|
@ -11,18 +11,20 @@ import lombok.Getter;
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum MemberExperienceBizTypeEnum {
|
||||
|
||||
/**
|
||||
* 管理员调整、邀请新用户、下单、退单、签到、抽奖
|
||||
*/
|
||||
ADMIN(0, "管理员调整","管理员调整获得{}经验"),
|
||||
INVITE_REGISTER(1, "邀新奖励","邀请好友获得{}经验"),
|
||||
ORDER(2, "下单奖励", "下单获得{}经验"),
|
||||
REFUND(3, "退单扣除","退单获得{}经验"),
|
||||
SIGN_IN(4, "签到奖励","签到获得{}经验"),
|
||||
LOTTERY(5, "抽奖奖励","抽奖获得{}经验"),
|
||||
ADMIN(0, "管理员调整","管理员调整获得 {} 经验"),
|
||||
INVITE_REGISTER(1, "邀新奖励","邀请好友获得 {} 经验"),
|
||||
ORDER(2, "下单奖励", "下单获得 {} 经验"),
|
||||
REFUND(3, "退单扣除","退单获得 {} 经验"),
|
||||
SIGN_IN(4, "签到奖励","签到获得 {} 经验"),
|
||||
LOTTERY(5, "抽奖奖励","抽奖获得 {} 经验"),
|
||||
;
|
||||
|
||||
private final int value;
|
||||
private final int type;
|
||||
private final String title;
|
||||
private final String desc;
|
||||
private final String description;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user