package com.ylx.giftCard.domain.dto;

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

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

@Data
@ApiModel("购物卡上架状态DTO")
public class GiftCardPublishStatusDTO implements Serializable {
    private static final long serialVersionUID = 910932605659176876L;

    /**
     * 购物卡ID
     */
    @NotNull(message = "购物卡ID不能为空")
    @ApiModelProperty(value = "购物卡ID", required = true)
    private Long id;

    @NotNull(message = "上架状态不能为空")
    @ApiModelProperty(value = "是否上架：1=上架，0=下架", required = true)
    private Integer isPublished;
}
