package cn.newfeifan.mall.module.distri.controller.admin.sharepath.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 分销用户关系 Response VO")
@Data
@ExcelIgnoreUnannotated
public class SharePathRespVO {

    @Schema(description = "层级")
    @ExcelProperty("层级")
    private Integer depth;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "12537")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "推荐人")
    @ExcelProperty("推荐人")
    private Long ancestor;

    @Schema(description = "直推人")
    @ExcelProperty("直推人")
    private Long descendant;

    @Schema(description = "顺序")
    @ExcelProperty("顺序")
    private Integer sort;


    @Schema(description = "推荐人姓名", example = "王五")
    @ExcelProperty("推荐人姓名")
    private String ancName;

    @Schema(description = "推荐人手机号")
    @ExcelProperty("推荐人手机号")
    private String ancPhone;

    @Schema(description = "直推人姓名", example = "李四")
    @ExcelProperty("直推人姓名")
    private String descName;

    @Schema(description = "推荐人手机号")
    @ExcelProperty("推荐人手机号")
    private String descPhone;

    @Schema(description = "推荐人昵称", example = "非繁人")
    @ExcelProperty("推荐人昵称")
    private String ancNickName;

    @Schema(description = "直推人昵称", example = "张三")
    @ExcelProperty("直推人昵称")
    private String descNickName;

    @Schema(description = "用户头像")
    private String avatar;
}