package org.dromara.personnel.domain.bo;

import org.dromara.personnel.domain.OpsBeipinBeijian;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 运维-物资-备品配件业务对象 ops_beipin_beijian
 *
 * @author LionLi
 * @date 2025-09-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsBeipinBeijian.class, reverseConvertGenerate = false)
public class OpsBeipinBeijianBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 备件编号
     */
    private String beijianNumber;

    /**
     * 备件名称
     */
    @NotBlank(message = "备件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String beijianName;

    /**
     * 设备类型
     */
    @NotBlank(message = "设备类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shebeiType;

    /**
     * 规格型号
     */
    @NotBlank(message = "规格型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String guigexinghao;

    /**
     * 库存状态（待定）
     */
    @NotBlank(message = "库存状态（待定）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String kucunStatus;

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


}
