admin/src/Oms.Application/Dtos/System/NoticeCreateInput.cs
zzh 8ac7e6487c feat: 优化公告通知接收人过滤与客户删除同步
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 11:22:21 +08:00

46 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.ComponentModel.DataAnnotations;
namespace Oms.Application.Dtos.System;
/// <summary>
/// 新增通知入参。
/// </summary>
public class NoticeCreateInput
{
/// <summary>
/// 通知类型:notice/message。
/// </summary>
[Required]
[StringLength(16)]
public string NoticeType { get; set; } = string.Empty;
/// <summary>
/// 标题(公告必填;站内信可空)。
/// </summary>
[StringLength(128)]
public string? Title { get; set; }
/// <summary>
/// 正文内容。
/// </summary>
[Required]
public string Content { get; set; } = string.Empty;
/// <summary>
/// 是否弹窗:0-否,1-是。
/// </summary>
public byte IsPopup { get; set; }
/// <summary>
/// 接收对象类型:user/customer。
/// </summary>
[Required]
[StringLength(16)]
public string ReceiverType { get; set; } = string.Empty;
/// <summary>
/// 接收主体 ID 列表。
/// </summary>
public List<int> ReceiverIds { get; set; } = [];
}