package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import jakarta.validation.constraints.*;

/**
 * 部署记录表单对象
 *
 * @author kangyu
 * @since 2024-10-08 14:14
 */
@Getter
@Setter
@Schema(description = "部署记录表单对象")
public class RecordForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "文件名称")
    @NotBlank(message = "文件名称不能为空")
    @Size(max=255, message="文件名称长度不能超过255个字符")
    private String fileName;

    private String fileType;

    @Schema(description = "版本号")
    @NotBlank(message = "版本号不能为空")
    @Size(max=255, message="版本号长度不能超过255个字符")
    private String version;

    private String pageType;

    @Schema(description = "上传路径")
    @NotBlank(message = "上传内容为空！")
    private String path;

    @Schema(description = "上传说明")
    @NotBlank(message = "上传说明不能为空")
    @Size(max=255, message="上传说明长度不能超过255个字符")
    private String description;



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

    private String newFileName;

    @Size(max=5, message="端口号在0-65535之内")
    private String port;


    private int folderId;

}
