package org.dromara.mall.product.domain.vo;

import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.mall.product.domain.MallAttributeValue;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 属性值视图对象 mall_attribute_value
 *
 * @author pengles
 */
@Data
@AutoMapper(target = MallAttributeValue.class)
public class MallAttributeValueVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 属性值ID
     */
    @ExcelProperty(value = "属性值ID")
    private Long id;

    /**
     * 属性ID
     */
    @ExcelProperty(value = "属性ID")
    private Long attributeId;

    /**
     * 属性值
     */
    @ExcelProperty(value = "属性值")
    private String value;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Integer sort;

    /**
     * 状态(0启用 1禁用)
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=启用,1=禁用")
    private Integer status;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

}
