新增门户目录接口与 route_sort 字段迁移;完善公告创建与包裹到货相关逻辑。 Co-authored-by: Cursor <cursoragent@cursor.com>
45 lines
1.1 KiB
C#
45 lines
1.1 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。公告全体广播时可空(后端按 user 占位)。
|
||
/// </summary>
|
||
[StringLength(16)]
|
||
public string ReceiverType { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 接收主体 ID 列表。公告传空表示全体生效;站内信必填。
|
||
/// </summary>
|
||
public List<int> ReceiverIds { get; set; } = [];
|
||
}
|