package com.ylx.giftCard.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@ApiModel("购物卡管理分页查询DTO")
public class GiftCardManageQueryDTO implements Serializable {
    private static final long serialVersionUID = 1184559947927043323L;

    @ApiModelProperty("购物卡名称")
    private String name;

    @ApiModelProperty("创建开始日期，格式：yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginCreateDate;

    @ApiModelProperty("创建结束日期，格式：yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endCreateDate;

    @ApiModelProperty("是否上架：1=上架，0=下架")
    private Integer isPublished;
}
