CsdnUserInfoDTO.java 1.5 KB
Newer Older
1 2 3 4 5
package com.kwan.springbootkwan.entity.dto;

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

import java.util.Date;

@Data
16
@ApiModel("csdn三连用户DTO")
17
public class CsdnUserInfoDTO extends Model<CsdnUserInfoDTO> {
18 19

    @ApiModelProperty("主键id")
20
    private Integer id;
21
    @ApiModelProperty("用户code")
22
    private String userName;
23
    @ApiModelProperty("CSDN用户名称")
24
    private String nickName;
25
    @ApiModelProperty("点赞状态")
26
    private Integer likeStatus;
27
    @ApiModelProperty("收藏状态")
28
    private Integer collectStatus;
29
    @ApiModelProperty("评论状态")
30
    private Integer commentStatus;
31
    @ApiModelProperty("用户权重")
32
    private Integer userWeight;
33
    @ApiModelProperty("文章类型")
34
    private String articleType;
35
    @ApiModelProperty("创建时间")
36
    private Date createTime;
37
    @ApiModelProperty("更新时间")
38
    private Date updateTime;
39
    @ApiModelProperty("逻辑删除,0未删除,1已删除")
40 41 42 43 44 45 46
    private Integer isDelete;

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