package com.njcn.rdms.module.system.controller.admin.user.vo.userManagementRelation;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.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 UserManagementRelationRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "管理者用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("管理者用户ID")
    private Long managerUserId;

    @Schema(description = "被管理用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("被管理用户ID")
    private Long subordinateUserId;

    @Schema(description = "生效开始时间")
    @ExcelProperty("生效开始时间")
    private LocalDateTime effectiveFrom;

    @Schema(description = "生效结束时间")
    @ExcelProperty("生效结束时间")
    private LocalDateTime effectiveUntil;

    @Schema(description = "备注", example = "直属上级关系")
    @ExcelProperty("备注")
    private String remark;

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

}
