package com.mcwl.memberCenter.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mcwl.common.core.domain.BaseEntity;
import com.mcwl.memberCenter.enums.MemberBenefitTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 权益表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mem_benefit")
public class Benefit extends BaseEntity {

    @TableId
    private Long id;
    /**
     * 权益名称Id
     */
    private Long benefitNameId;
    /**
     * 权益描述
     */
    private String benefitDesc;
    /**
     * 权益类型
     */
    private MemberBenefitTypeEnum benefitType;
    /**
     * 权益折扣，当权益类型为折扣时，记录折扣具体数值
     */
    private Double benefitDiscount;
    /**
     * 单位
     */
    private String benefitUnit;


}
