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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户管理链路创建/修改 Request VO")
@Data
public class UserManagementRelationSaveReqVO {

    @Schema(description = "主键ID", example = "1024")
    private Long id;

    @Schema(description = "管理者用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "管理者用户ID不能为空")
    private Long managerUserId;

    @Schema(description = "被管理用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "被管理用户ID不能为空")
    private Long subordinateUserId;

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

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

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

}
