package com.ruoyi.system.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * viplist对象 vip_membership
 * 
 * @author ruoyi
 * @date 2023-05-24
 */
@Data
@TableName(value = "vip_membership")
@EqualsAndHashCode(callSuper = false)
public class VipMembership
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @GeneratedValue
    /** id */
    private Long id;

    /** 会员卡名称 */
    @Excel(name = "会员卡名称")
    private String name;

    /** 会员卡说明 */
    @Excel(name = "会员卡说明")
    private String shupm;

    /** 出售价格 */
    @Excel(name = "出售价格")
    private BigDecimal price;

    /** 权益时长/天 */
    @Excel(name = "权益时长/天")
    private Long duration;

    /** 状态（0在售，1停售） */
    @Excel(name = "状态", readConverterExp = "0=在售，1停售")
    private Long state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setShupm(String shupm) 
    {
        this.shupm = shupm;
    }

    public String getShupm() 
    {
        return shupm;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration()
    {
        return duration;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("shupm", getShupm())
            .append("price", getPrice())
            .append("duration", getDuration())
            .append("state", getState())
            .toString();
    }
}
