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

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

@Schema(description = "管理后台 - 用户电子签名保存 Request VO")
@Data
public class UserSignatureSaveReqVO {

    @Schema(description = "用户 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "用户 ID 不能为空")
    private Long userId;

    @Schema(description = "电子签文件 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048")
    @NotNull(message = "电子签文件 ID 不能为空")
    private Long fileId;

    @Schema(description = "文件名", example = "zhangsan-sign.png")
    @Size(max = 255, message = "文件名长度不能超过 255 个字符")
    private String fileName;

    @Schema(description = "状态", example = "0")
    private Integer status;

    @Schema(description = "备注")
    @Size(max = 255, message = "备注长度不能超过 255 个字符")
    private String remark;
}
