package com.izouma.dingdong.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "商家自定义分类")
public class MerchantClassificationDTO implements Serializable {

    private Long id;

    @ApiModelProperty(value = "名称", name = "name")
    @Column(length = 50)
    @Size(max = 50)
    private String name;

    @ApiModelProperty(value = "排序", name = "sort")
    private Integer sort;

    @ApiModelProperty(value = "商户ID", name = "merchantId")
    private Long merchantId;


    @ApiModelProperty(value = "商品列表", name = "goodsList")
    private String goodsIds;


    @ApiModelProperty(value = "是否开启", name = "isOpen")
    private Boolean isOpen;

    @ApiModelProperty(value = "是否显示", name = "isShow")
    private Boolean isShow;

}
