package org.dromara.zhishu.domain.bo;

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.*;
import org.dromara.zhishu.domain.TFreight;

/**
 * 三级货区管理业务对象 t_freight
 *
 * @author Lion Li
 * @date 2025-04-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TFreight.class, reverseConvertGenerate = false)
public class TFreightBo extends BaseEntity {

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

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

    /**
     * 货位编码
     */
    private String code;

    /**
     * 货位名称
     */
    private String name;

    /**
     * 货位单位
     */
    private String unit;

    /**
     * 货位容量
     */
    private Long capMax;

    /**
     * 货号
     */
    private String artNo;

    /**
     * 仓库状态（0正常 1停用）
     */
    private String status;

    /**
     *  userId
     */
    private Long userId;

    /**
     * 是否开启分销  0否 1是
     */
    private String allowDistribution;
}
