namespace CoreMod.Models.ApiDocInfoDtos;

/// <summary>
/// 接口文档添加时请求结构
/// </summary>
/// <see cref="ApiDocInfo"/>
public class ApiDocInfoAddDto
{
    /// <summary>
    /// 文档名称
    /// </summary>
    [MaxLength(100)]
    [Required]
    public string Name { get; set; } = default!;

    /// <summary>
    /// 文档描述
    /// </summary>
    [MaxLength(1000)]
    public string? Description { get; set; }

    /// <summary>
    /// 文档地址
    /// </summary>
    [MaxLength(300)]
    [Required]
    public string Path { get; set; } = default!;

    /// <summary>
    /// 生成路径
    /// </summary>
    [MaxLength(200)]
    public string? LocalPath { get; set; }
}
