admin/src/Oms.Application/Dtos/System/NoticeCreateInput.cs
zzh 25b4211b46 feat: 销售产品门户目录、线路排序与公告/到货调整
新增门户目录接口与 route_sort 字段迁移;完善公告创建与包裹到货相关逻辑。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 18:39:55 +08:00

45 lines
1.1 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。公告全体广播时可空(后端按 user 占位)。
/// </summary>
[StringLength(16)]
public string ReceiverType { get; set; } = string.Empty;
/// <summary>
/// 接收主体 ID 列表。公告传空表示全体生效;站内信必填。
/// </summary>
public List<int> ReceiverIds { get; set; } = [];
}