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

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.newfeifan.mall.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.newfeifan.mall.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "用户 APP - 分销用户关系分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SharePathPageReqVO extends PageParam {

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "用户电话")
    private String phone;

    @Schema(description = "上级用户id")
    private Long parentId;

    @Schema(description = "左区用户id")
    private Long leftChildId;

    @Schema(description = "右区用户id")
    private Long rightChildId;

    @Schema(description = "推荐人id")
    private Long referrerId;
}