21 lines
565 B
C#
21 lines
565 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace NPP.SmartSchedue.Api.Contracts.Services.Notification.Input;
|
|
|
|
/// <summary>
|
|
/// 渲染模板输入模型
|
|
/// </summary>
|
|
public class RenderTemplateInput
|
|
{
|
|
/// <summary>
|
|
/// 模板内容
|
|
/// </summary>
|
|
[Required(ErrorMessage = "模板内容不能为空")]
|
|
public string Template { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// 变量字典
|
|
/// </summary>
|
|
public Dictionary<string, string> Variables { get; set; } = new Dictionary<string, string>();
|
|
} |