package com.izouma.jmrh.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.Entity;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class ArtNeedVO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("需求名称")
    private String name;

    @ApiModelProperty("需求介绍")
    private String needInfo;

    @ApiModelProperty("发布日期")
    private LocalDateTime createdAt;

    @ApiModelProperty("发布数量")
    @JsonProperty("count")
    private Long count;

    public ArtNeedVO(LocalDateTime createdAt, Long count) {
        this.createdAt = createdAt;
        this.count = count;
    }

    public ArtNeedVO() {
    }
}
