46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
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; } = [];
|
||
}
|