32 lines
673 B
C#
32 lines
673 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace HtmlToPdfService.Api.Models;
|
|
|
|
/// <summary>
|
|
/// HTML 转 PDF 请求
|
|
/// </summary>
|
|
public class ConvertHtmlRequest
|
|
{
|
|
/// <summary>
|
|
/// HTML 内容
|
|
/// </summary>
|
|
[Required(ErrorMessage = "HTML 内容不能为空")]
|
|
public string Html { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// PDF 选项
|
|
/// </summary>
|
|
public PdfOptionsDto? Options { get; set; }
|
|
|
|
/// <summary>
|
|
/// 回调配置
|
|
/// </summary>
|
|
public CallbackOptionsDto? Callback { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否保存本地副本
|
|
/// </summary>
|
|
public bool? SaveLocal { get; set; }
|
|
}
|
|
|