RequestData.cs
1.15 KB
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
56
using System;
using System.Collections.Generic;
using System.Text;
namespace Hh.Mes.POJO.Request
{
/// <summary>
/// api 统一接受实体 主子结构 T2 默认 是list
/// </summary>
/// <typeparam name="T1"></typeparam>
/// <typeparam name="T2"></typeparam>
public class RequestData<T1, T2>
{
/// <summary>
///
/// </summary>
public Data<T1, T2> Data { get; set; }
}
public class Data<T1, T2>
{
/// <summary>
/// 主体
/// </summary>
public T1 Header { get; set; }
/// <summary>
/// 明细
/// </summary>
public List<T2> Details { get; set; }
}
/// <summary>
/// api 统一接受实体 单结构
/// </summary>
/// <typeparam name="T1"></typeparam>
public class RequestData<T1>
{
/// <summary>
///
/// </summary>
public T1 Data { get; set; }
}
public class RequestDataEx<T>
{
public int version { get; set; }
public string taskId { get; set; }
public string taskType { get; set; }
public T task { get; set; }
}
}