package com.yunyan.business.pojo.admin.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WebsiteFillDto {
    /** ID主键 */
    @JsonSerialize(using= ToStringSerializer.class)
    @NotNull(message="主键必传")
    private Long id;

    /** 单位公开网址 */
    @NotBlank(message="单位公开网址必传")
    @ApiModelProperty("单位公开网址")
    private String publicSite;

    /** 单位公开下载链接 */
    //@NotNull(message ="单位公开下载链接必传")
    @ApiModelProperty("单位公开下载链接")
    private String publicDownloadUrl;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "公开时间(录入网址的时间)")
    private Date publicTime;

}
