CsdnUserInfoDTO.java 1.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
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;
import lombok.Data;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.Date;


@Data
public class CsdnUserInfoDTO extends Model<CsdnUserInfoDTO> {
    /**
     * 主键id
     */
    private Integer id;
    /**
     * 用户code
     */
    private String userName;
    /**
     * CSDN用户名称
     */
    private String nickName;
    /**
     * 点赞状态
     */
    private Integer likeStatus;
    /**
     * 收藏状态
     */
    private Integer collectStatus;
    /**
     * 评论状态
     */
    private Integer commentStatus;
    /**
     * 用户权重
     */
    private Integer userWeight;
    /**
     * 文章类型
     */
    private String articleType;
    /**
     * 创建时间
     */
    private Date createTime;
52 53 54 55
    /**
     * 更新时间
     */
    private Date updateTime;
56 57 58 59 60 61 62 63 64 65
    /**
     * 逻辑删除,0未删除,1已删除
     */
    private Integer isDelete;

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