package org.dromara.zhishu.domain.bo;

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

/**
 * 店铺与仓库自动发布关联业务对象 t_shop_warehouse
 *
 * @author yxy
 * @date 2025-12-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ShopWarehouse.class, reverseConvertGenerate = false)
public class ShopWarehouseBo extends BaseEntity {

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

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 用户id（仓库id）
     */
    @NotNull(message = "用户id（仓库id）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
