2025-09-04 13:40:07 +08:00
|
|
|
using DMS.Application.DTOs;
|
2025-07-19 09:25:01 +08:00
|
|
|
using DMS.Core.Models;
|
2025-07-16 15:08:56 +08:00
|
|
|
|
2025-09-04 13:40:07 +08:00
|
|
|
namespace DMS.Application.Models
|
2025-07-16 15:08:56 +08:00
|
|
|
{
|
2025-07-17 20:13:21 +08:00
|
|
|
public class VariableContext
|
2025-07-16 15:08:56 +08:00
|
|
|
{
|
2025-09-04 13:40:07 +08:00
|
|
|
public VariableDto Data { get; set; }
|
2025-09-15 20:54:32 +08:00
|
|
|
|
|
|
|
|
public object NewValue { get; set; }
|
2025-07-16 15:08:56 +08:00
|
|
|
public bool IsHandled { get; set; }
|
|
|
|
|
|
2025-09-15 20:54:32 +08:00
|
|
|
public VariableContext(VariableDto data, object newValue=null)
|
2025-07-16 15:08:56 +08:00
|
|
|
{
|
|
|
|
|
Data = data;
|
|
|
|
|
IsHandled = false; // 默认未处理
|
2025-09-15 20:54:32 +08:00
|
|
|
NewValue = newValue;
|
2025-07-16 15:08:56 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|