package org.dromara.zhishu.domain.bo;

import org.dromara.zhishu.domain.ShopGoodsPublished;
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 java.util.Date;

/**
 * 记录发布数据业务对象 t_shop_goods_published
 *
 * @author yxy
 * @date 2025-04-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ShopGoodsPublished.class, reverseConvertGenerate = false)
public class ShopGoodsPublishedBo extends BaseEntity {

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

    /**
     * 图书主键
     */
    private String shopGoodsId;

    /**
     * 发布的店铺ids
     */
    private String shopId;

    /**
     * 平台商品id
     */
    private String platformId;

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

    /**
     * 品相
     */
    private String conditionCode;

    /**
     * 货区id
     */
    private Long depotId;

    /**
     * isbn
     */
    private String isbn;

    /**
     * 用户id
     */
    private Long userId;;

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

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 商品编码
     */
    private String itemNumber;

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

}
