package com.liquidnet.service.goblin.param.shouqianba.request;

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

@Data
@ApiModel(value = "商城商品查询请求参数")
public class MallProductsQueryRequest {

    @ApiModelProperty(value = "应用ID", required = true)
    private String appid;

    @ApiModelProperty(value = "商户信息", required = true)
    private CommonRequest.Seller seller;

    @ApiModelProperty(value = "商城标识", required = true)
    private CommonRequest.Mall mallID;

    @ApiModelProperty(value = "商品筛选条件")
    private Filter filter;

    @ApiModelProperty(value = "分页游标")
    private Cursor cursor;

    @Data
    @ApiModel("商品筛选条件")
    public static class Filter {
        @ApiModelProperty(value = "商品ID (spuId)")
        private String spuId;

        @ApiModelProperty(value = "商品名称 (模糊查询)")
        private String title;
    }

    @Data
    @ApiModel("分页游标")
    public static class Cursor {
        @ApiModelProperty(value = "游标字段")
        private String cursorField;

        @ApiModelProperty(value = "查询数量")
        private Integer count;

        @ApiModelProperty(value = "结束游标")
        private String endCursor;
    }
}
