fix(education): tighten entitlement integration contracts

This commit is contained in:
2026-07-31 16:26:39 +08:00
parent fce2c6bc4a
commit bd956bcb35
6 changed files with 22 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
package cn.iocoder.yudao.module.member.api.point;
/**
* Public Member point business types available to other modules.
*/
public interface MemberPointBizType {
int EDUCATION_LEARNING = 31;
}

View File

@@ -1,6 +1,7 @@
package cn.iocoder.yudao.module.member.enums.point;
import cn.hutool.core.util.EnumUtil;
import cn.iocoder.yudao.module.member.api.point.MemberPointBizType;
import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
@@ -27,7 +28,7 @@ public enum MemberPointBizTypeEnum implements ArrayValuable<Integer> {
ORDER_GIVE_CANCEL(22, "订单积分奖励(整单取消)", "订单取消,退还 {} 积分", false), // ORDER_GIVE 的取消
ORDER_GIVE_CANCEL_ITEM(23, "订单积分奖励(单个退款)", "订单退款,扣除赠送的 {} 积分", false), // ORDER_GIVE 的取消
EDUCATION_LEARNING(31, "教育学习奖励", "完成学习任务获得 {} 积分", true)
EDUCATION_LEARNING(MemberPointBizType.EDUCATION_LEARNING, "教育学习奖励", "完成学习任务获得 {} 积分", true)
;
/**