1 package gboat2.attachment.service;
2
3
4
5
6
7
8 import gboat2.base.core.service.IBaseService;
9 import gboat2.attachment.model.AttachConfig;
10 import gboat2.attachment.model.Attachment;
11 import gboat2.attachment.model.AttachmentOperEnum;
12 import gboat2.attachment.model.AttachmentVO;
13 import gboat2.attachment.model.DownloadRecord;
14
15 import java.io.IOException;
16 import java.util.List;
17
18 public interface IAttachmentService extends IBaseService {
19
20
21
22
23
24
25 public String saveAttachment(Attachment attach);
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 public Attachment generateAttachment(byte[] base64pdf, String belongId, String attachName, String attachType, String configId,
45 AttachmentOperEnum attOperEnum) throws IOException;
46
47
48
49
50
51 public void deleteAttachments(String[] attachIds);
52
53
54
55
56
57 public void deleteAttachment(String attachId);
58
59
60
61
62
63
64 public List<Attachment> getAttachmentsByBelongId(String belongid);
65
66
67
68
69
70
71 public List<AttachmentVO> getAttachmentVOsByBelongId(String belongId);
72
73
74
75
76
77
78
79 public List<Attachment> getAttachmentsBy(String belongId, String attachType);
80
81
82
83
84
85
86
87 public void updateAttachsBelongId(String[] attachIds, String belongId);
88
89
90
91
92
93
94 public DownloadRecord getDownLoad(String attachmentId);
95
96
97
98
99
100
101 public void deleteAttachmentByBelongId(String belongId);
102
103
104
105
106
107 public void virtualDelete(String attachId);
108
109
110
111
112
113
114
115 public List<Attachment> getAttachmentsBy(String belongId, String[] attachNames);
116
117
118
119
120
121
122
123
124 public Boolean isDownLoadFile(String organId, String belongId, String attachType);
125
126
127
128
129
130
131
132
133 public DownloadRecord getLastDownloadRecord(String organId, String belongId, String attachType);
134
135
136
137
138
139
140
141
142 public List<AttachmentVO> getAttachmentVOBy(String belongId, String attachType);
143
144
145
146
147
148
149
150
151 public List<Attachment> getAttachmentsByBelongIdAndConfigId(String belongId, String configId);
152
153
154
155
156
157
158 public String[][] getAvailableAttachTypeByCode(String attachCode);
159
160
161
162
163
164
165 List<AttachConfig> getAvailableAttachTypesByCode(String attachCode);
166
167
168
169
170
171
172
173
174 public AttachConfig getAttachConfigBy(String attachCode, String attachType);
175
176
177
178
179
180
181
182
183 public String getAttachConfigIdBy(String attachCode, String attachType);
184
185 Attachment getAttachment(String attachId);
186
187
188
189
190
191
192 public List<Attachment> getAttachmentsByAttachIds(String attachIds);
193
194 }