admin/src/Oms.Application/Dtos/Orders/OrderChangePostShipStatusInput.cs
zzh 3c85b7325f
Some checks failed
Build and Deploy / deploy (push) Failing after 45s
feat: 运单发货后状态变更接口
新增 ChangePostShipStatus,限制发货后四态白名单,妥投成功仅可进入不可改出。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-26 11:46:33 +08:00

30 lines
829 B
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.Orders;
/// <summary>
/// 出库后状态校正入参:仅允许在待上网 / 运输中 / 派送成功 / 派送失败之间变更;派送成功只进不出。
/// </summary>
public class OrderChangePostShipStatusInput
{
/// <summary>
/// 订单主键。
/// </summary>
[Required]
public int Id { get; set; }
/// <summary>
/// 目标订单状态(pendingOnline / shipping / deliverySuccess / deliveryFailed)。
/// </summary>
[Required]
[StringLength(32)]
public string TargetStatus { get; set; } = string.Empty;
/// <summary>
/// 变更备注(必填,落操作日志)。
/// </summary>
[Required]
[StringLength(512)]
public string Remark { get; set; } = string.Empty;
}