package com.storlead.sales.pojo.vo.customer;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.annotate.AnnotateEnumType;
import com.storlead.framework.annotate.OrgAutoMateAnnotate;
import com.storlead.framework.mybatis.entity.SysBaseField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class RecordCommentVO extends SysBaseField {

    @ApiModelProperty("评论ID")
    private Long id;

    @ApiModelProperty(value = "主业务ID")
    private Long recordId;

    /**
     * 评论来源：1目标、2任务、3简报、4、提升、5赞扬、6贡献、7心得
     */
//    @ApiModelProperty(value = "评论来源：1目标、2任务、3简报、4、提升、5赞扬、6贡献、7心得")
//    private Integer type;

    @ApiModelProperty(value = "评论类型，对应ResourceTypeEnum（10:客户、11线索、20:联系人、30:商机、40:订单、50:回款、60:退款、70:费用、80:任务、90:跟进、100:工单）")
    @TableField("type")
    private String type;

    /**staffId*/
    @ApiModelProperty(value = "评论人ID")
    private Long staffId;

    @ApiModelProperty("评论人名称")
    private String staffName;

    @ApiModelProperty("评论人头像")
    private String staffPhoto;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty(value = "顶级评论ID")
    private Long topId;

    @ApiModelProperty(value = "父级评论ID")
    private Long parentId;

    @ApiModelProperty("父级评论人名称")
    private String staffParentName;

    @ApiModelProperty(value = "评分")
    private Integer score;

    @ApiModelProperty("子评价")
    private List<RecordCommentVO> commentList;

    @ApiModelProperty("是否有权限删除")
    private Boolean canDelete;

    @ApiModelProperty(value = "点赞数")
    private Integer likeCount;

    @ApiModelProperty(value = "登录人员是否点赞")
    private Integer isLike;

    @ApiModelProperty(value = "归属人员姓名")
    private String ownerByName;


}
