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

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.mall.product.domain.MallAttributeValue;

/**
 * 属性值业务对象 mall_attribute_value
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MallAttributeValue.class, reverseConvertGenerate = false)
public class MallAttributeValueBo extends BaseEntity {

    /**
     * 属性值ID
     */
    private Long id;

    /**
     * 属性ID
     */
    @NotNull(message = "属性ID不能为空")
    private Long attributeId;

    /**
     * 属性值
     */
    @NotBlank(message = "属性值不能为空")
    private String value;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态(0启用 1禁用)
     */
    @NotNull(message = "状态不能为空")
    private Integer status;

}
