TaskCreateBatchRequest.java
1.09 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
/**
* @(#)TaskCreateRequest.java
*
* Copyright (c) 2014-2014 苏州犀牛网络科技有限公司 版权所有
* xiniunet. All rights reserved.
*
* This software is the confidential and proprietary
* information of xiniunet.
* ("Confidential Information"). You shall not disclose
* such Confidential Information and shall use it only
* in accordance with the terms of the contract agreement
* you entered into with xiniunet.
*/
package com.xiniunet.task.request;
import com.alibaba.fastjson.JSON;
import com.xiniunet.framework.base.BaseRequest;
import com.xiniunet.task.domain.Task;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* Created by 沈振家 on 2016-11-28 16:23:01.
* @author 沈振家
*/
public class TaskCreateBatchRequest extends BaseRequest {
@NotNull(message = "列表不能为空")
private List<Task> list;
public List<Task> getList() {
return list;
}
public void setList(List<Task> list) {
this.list = list;
}
public void setList(String list) {
this.list = JSON.parseArray(list, Task.class);
}
}