package org.dromara.rfid.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.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.rfid.domain.RfidLocation;

import java.util.Date;

/**
 * 位置信息业务对象 rfid_location
 *
 * @author zch
 * @date 2025-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = RfidLocation.class, reverseConvertGenerate = false)
public class RfidLocationBo extends BaseEntity {

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

    /**
     * 位置编号
     */
    @NotBlank(message = "位置编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationCode;

    /**
     * 位置别名
     */
    private String locationAlias;

    /**
     * 位置类型(1-车间;2-工序;3-工位)
     */
    private String locationType;

    /**
     * 父级编号，对应本表id
     */
    private Long parentId;

    /**
     * 是否标识(1-是;0-否)
     */
    @NotBlank(message = "是否标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isMarked;

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

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新人
     */
    private String updatedBy;

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


}
