CsdnTripletDayInfoDTO.java 1.4 KB
Newer Older
1 2 3 4 5 6
package com.kwan.springbootkwan.entity.dto;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.kwan.springbootkwan.entity.CsdnTripletDayInfo;
import com.kwan.springbootkwan.mapstruct.FromConverter;
7 8
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
9 10 11 12 13 14 15 16
import lombok.Data;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.Date;

@Data
17
@ApiModel("csdn三连监控DTO")
18
public class CsdnTripletDayInfoDTO extends Model<CsdnTripletDayInfoDTO> {
19
    @ApiModelProperty("主键id")
20
    private Integer id;
21
    @ApiModelProperty("三连日期")
22 23
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date tripletDate;
24
    @ApiModelProperty("点赞数量")
25
    private Integer likeNum;
26
    @ApiModelProperty("收藏数量")
27
    private Integer collectNum;
28
    @ApiModelProperty("评论数量")
29
    private Integer commentNum;
30
    @ApiModelProperty("创建时间")
31
    private Date createTime;
32
    @ApiModelProperty("更新时间")
33
    private Date updateTime;
34
    @ApiModelProperty("逻辑删除,0未删除,1已删除")
35 36 37 38 39 40 41
    private Integer isDelete;

    @Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
    public interface Converter extends FromConverter<CsdnTripletDayInfoDTO, CsdnTripletDayInfo> {
        Converter INSTANCE = Mappers.getMapper(Converter.class);
    }
}