package cn.teammodel.model.entity.appraise;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AppraiseTreeNode {
    String id;
    String pid;
    String name;
    String[] path;
    String logo;
    String creator;
    String creatorId;
    Long createTime;
    /**
    * 排序
    */
    Integer order;
    /**
    * 分值
    */
    Integer score;
    /**
    * 是否表扬? 默认 true
    */
    @JsonProperty("isPraise")
    boolean isPraise;
    double scoreRate;

    List<AppraiseTreeNode> children = new ArrayList<>();
}
