FileAttachmentBind.java
2.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package com.xiniunet.task.domain;
import com.xiniunet.framework.base.BaseBO;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
/**
* Created by 范智凝 on 2014-08-1 16:10:30.
* @author 范智凝
*/
public class FileAttachmentBind extends BaseBO {
/**
* 文件名称,
*/
private String name;
/**
* 文件后缀,
*/
private String extension;
/**
* 文件大小(字节),
*/
private Long size;
/**
* 存放路径,
*/
private String storagePath;
/**
* 来源类型
*/
private String sourceType;
/**
* 文件类型
*/
private String type;
/**
* 业务类型
*/
@NotNull(message = "业务类型不能为空")
@Length(min=1,max=100)
private String businessType;
/**
* 业务ID
*/
@NotNull(message = "业务ID不能为空")
private Long businessId;
public String getBusinessType() {
return businessType;
}
public void setBusinessType(String businessType) {
this.businessType = businessType;
}
public Long getBusinessId() {
return businessId;
}
public void setBusinessId(Long businessId) {
this.businessId = businessId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getExtension() {
return extension;
}
public void setExtension(String extension) {
this.extension = extension;
}
public Long getSize() {
return size;
}
public void setSize(Long size) {
this.size = size;
}
public String getStoragePath() {
return storagePath;
}
public void setStoragePath(String storagePath) {
this.storagePath = storagePath;
}
public String getSourceType() {
return sourceType;
}
public void setSourceType(String sourceType) {
this.sourceType = sourceType;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
}