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.MallAttributeTemplate;

/**
 * 属性模板业务对象 mall_attribute_template
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MallAttributeTemplate.class, reverseConvertGenerate = false)
public class MallAttributeTemplateBo extends BaseEntity {

    /**
     * 模板ID
     */
    private Long id;

    /**
     * 模板名称
     */
    @NotBlank(message = "模板名称不能为空")
    private String name;

    /**
     * 分类ID(可选，绑定到分类)
     */
    private Long categoryId;

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

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

    /**
     * 备注
     */
    private String remark;

}
