package net.ferrum.business.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import net.ferrum.common.core.validate.AddGroup;
import net.ferrum.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import net.ferrum.common.core.domain.BaseEntity;

/**
 * 项目规格业务对象 qs_project_attributes
 *
 * @author ruoyi
 * @date 2025-07-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class QsProjectAttributesBo extends BaseEntity {

    /**
     * 项目属性关联Id
     */
    @NotNull(message = "项目属性关联Id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long id;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long typeId;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long valueId;

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



    /**
     * 规格参数具体值
     */
    @TableField(exist = false)
    private String value;

    /**
     * 规格参数类型的名称
     */
    @TableField(exist = false)
    private String typeName;

}
