package org.dromara.zhishu.domain.bo;

import org.dromara.zhishu.domain.TShopOrderDetail;
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_order_detail
 *
 * @author Lion Li
 * @date 2025-03-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TShopOrderDetail.class, reverseConvertGenerate = false)
public class TShopOrderDetailBo extends BaseEntity {

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

    /**
     * 店铺id
     */
    @NotBlank(message = "店铺id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shopId;

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

    /**
     * 订单id
     */
    @NotBlank(message = "订单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderId;

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

    /**
     * 商品编码
     */
    @NotBlank(message = "商品编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String goodsId;

    /**
     * 商品图片
     */
    @NotBlank(message = "商品图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String goodsImg;

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

    /**
     * 商品单件 单价：元
     */
    @NotBlank(message = "商品单件 单价：元不能为空", groups = { AddGroup.class, EditGroup.class })
    private String goodsPrice;

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

    /**
     * 商品维度外部编码，注意：编辑商品后必须等待商品审核通过后方可生效，订单中商品信息为交易快照的商品信息
     */
    @NotBlank(message = "商品维度外部编码，注意：编辑商品后必须等待商品审核通过后方可生效，订单中商品信息为交易快照的商品信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String outerGoodsId;

    /**
     * sku维度商家外部编码，注意：编辑商品后必须等待商品审核通过后方可生效，订单中商品信息为交易快照的商品信息
     */
    @NotBlank(message = "sku维度商家外部编码，注意：编辑商品后必须等待商品审核通过后方可生效，订单中商品信息为交易快照的商品信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String outerId;

    /**
     * 商品sku编码
     */
    @NotBlank(message = "商品sku编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String skuId;

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


}
