kyy
2025-08-30 37379aa1d6e95c1964419b32031aaccc302888c3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
namespace MES.Service.util;
 
/**
 * 统一的返回结果
 * 前台会按照这个格式进行解析
 */
public class ResponseResult
{
    //0:成功 1:失败
    public int status { get; set; }
 
    //错误信息
    public string message { get; set; }
 
    //返回的数据
    public object data { get; set; }
 
    //失败的返回结果
    public static ResponseResult ResponseError(Exception e)
    {
        return new ResponseResult
        {
            status = 1,
            message = e.Message,
            data = e.Message
        };
    }
}
 
/// <summary>
/// 批量删除操作的结果信息
/// 用于返回批量删除的详细统计数据
/// </summary>
public class BatchDeleteResult
{
    /// <summary>
    /// 请求删除的送货单号总数(去重后)
    /// </summary>
    public int TotalRequested { get; set; }
 
    /// <summary>
    /// 实际删除的记录总数
    /// </summary>
    public int TotalDeleted { get; set; }
 
    /// <summary>
    /// 成功删除的送货单号列表
    /// </summary>
    public List<string> DeletedNos { get; set; } = new List<string>();
 
    /// <summary>
    /// 未找到的送货单号列表
    /// </summary>
    public List<string> NotFoundNos { get; set; } = new List<string>();
}