package com.izouma.jmrh.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.izouma.jmrh.domain.Contact;
import com.izouma.jmrh.domain.Conversation;
import com.izouma.jmrh.domain.OrgInfo;
import com.izouma.jmrh.enums.ConversationType;
import com.izouma.jmrh.enums.ResSnDType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ConversationToAbutmentDTO {
    private Long id;

    private String sessionId;

    private Long userId;

    private Long toUserId;

    private Long orgId;

    private Contact contact;

    private ConversationType type;

    private LocalDateTime lastUpdate;

    private String lastMessage;



    @ApiModelProperty("资源id")
    private Long sndId;

    @ApiModelProperty("资源供需类型")
    @Enumerated(EnumType.STRING)
    private ResSnDType resSndType;


    //-----------------------------------------


    @ApiModelProperty("资源名字")
    private String resourceName;

    @ApiModelProperty("资源图片")
    private List<String> resourceImag;


//企业信息------------------------------------

    @ApiModelProperty("企业logo")
    @ExcelProperty("企业logo")
    private String logo;

    private String orgName;


    private OrgInfo orgInfo;

    private String title;

    private String icon;

    private long unread;


}
