package com.yami.shop.bean.app.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author wy
 */

@Data
public class QnhPushParam {

    private List<Data> data;

    @ApiModelProperty("appid")
    private Integer appid;

    @ApiModelProperty("时间戳")
    private Integer timestamp;

    @ApiModelProperty("sign")
    private String sign;

    @ApiModelProperty("推送类型 ，固定值：poi_product_modify")
    private String type;

    @lombok.Data
    public static class Data {

        @ApiModelProperty("商品spu标识")
        private String spu_id;

        @ApiModelProperty("操作类型。1-新增，2-更新，3-删除")
        private String op_type;

        @ApiModelProperty("变更维度：1-spu，2-规格变更(sku)")
        private Integer change_dimension_type;

        @ApiModelProperty("牵牛花门店id")
        private String poi_id;

        @ApiModelProperty("erp门店编码")
        private String org_code;

        private List<SkuList> sku_list;
    }

    @lombok.Data
    public static class SkuList {

        @ApiModelProperty("商品sku id")
        private String sku_id;

        private List<Object> code_list;

        @ApiModelProperty("商品条码")
        private String barcode;

        @ApiModelProperty("商品编码")
        private String item_code;
    }

}
