facade-vip/src/main/java/com/ks/vip/service/VipGradePotenceService.java
@@ -2,6 +2,7 @@ import com.ks.vip.pojo.DO.VipGradePotence; import com.ks.vip.pojo.Enums.VIPEnum; import java.util.List; @@ -18,4 +19,26 @@ public VipGradePotence selectByPrimaryKey(Long id); public void delete(Long id); /** * 根据等级Id查询权益 * @param gradeId * @return */ public VipGradePotence getPotenceByGradeId(Long gradeId); /** * 获取默认权益 * @return */ public VipGradePotence getDefaultGradePotence(); /** * 根据枚举类型查询权益 * @param vipEnum * @return */ public VipGradePotence getPotenceByVipEnum(VIPEnum vipEnum); }