package com.izouma.jmrh.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
@Data
public class ProductDTO {
    @ApiModelProperty("产品id")
    private Long id;
    @ApiModelProperty("产品名称")
    private String name;

    @ApiModelProperty("产品介绍")
    private String needInfo;

    @ApiModelProperty("发布日期")
    @JsonProperty("createdAt")
   private LocalDateTime createdAt;
    @ApiModelProperty("发布数量")
    @JsonProperty("count")
    private Long count;

    public ProductDTO(){
    }
}
