package com.sqx.modules.myCollection.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sqx.modules.app.entity.UserEntity;
import com.sqx.modules.resumes.entity.Company;
import com.sqx.modules.resumes.entity.PostPush;
import com.sqx.modules.resumes.entity.ResumesListDto;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author www.javacoder.top
 * @since 2023-01-17
 */
@Data
public class MyCollection implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收藏id
     */
    @TableId(value = "collection_id", type = IdType.AUTO)
    private Long collectionId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 岗位id
     */
    private Long postPushId;
   /**
     * 收藏类型 1收藏岗位 2收藏简历
     */
    private Integer type;
/**
     * 简历id
     */
    private Integer resumesId;
    @TableField(exist = false)
    private List<ResumesListDto> resumesListDto;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(exist = false)
    private PostPush postPush;
    @TableField(exist = false)
    private UserEntity userEntity;
    @TableField(exist = false)
    private Company company;


}
