package com.zbkj.common.request;

import com.zbkj.common.annotation.StringContains;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="FloorRequest", description="FloorRequest")
public class FloorRequest implements Serializable {

    private static final long serialVersionUID = 3481659942630712958L;

    @ApiModelProperty(value = "门店id")
    private String storeId;

    @ApiModelProperty(value = "类型id")
    private String cid;

    @ApiModelProperty(value = "展示渠道:【1首页楼层，2随心配套餐层，3首页精品推荐】", required = true)
    @StringContains(limitValues = {"1","2","3"}, message = "未知的展示渠道")
    @NotNull(message = "展示渠道不能为空")
    private String channel;

    public FloorRequest() {
    }

    public FloorRequest(String channel, String storeId) {
        this.channel = channel;
        this.storeId = storeId;
    }
}
