1// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//    http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package v20210514
16
17import (
18    "encoding/json"
19    tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
20    tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
21)
22
23type CreateAudioDepositRequest struct {
24	*tchttp.BaseRequest
25
26	// 存证名称(长度最大30)
27	EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
28
29	// 数据Base64编码,大小不超过5M
30	FileContent *string `json:"FileContent,omitempty" name:"FileContent"`
31
32	// 带后缀的文件名称,如music.mp3
33	FileName *string `json:"FileName,omitempty" name:"FileName"`
34
35	// 文件hash
36	EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
37
38	// 业务ID 透传 长度最大不超过64
39	BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
40
41	// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
42	HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
43
44	// 存证描述
45	EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
46}
47
48func (r *CreateAudioDepositRequest) ToJsonString() string {
49    b, _ := json.Marshal(r)
50    return string(b)
51}
52
53// FromJsonString It is highly **NOT** recommended to use this function
54// because it has no param check, nor strict type check
55func (r *CreateAudioDepositRequest) FromJsonString(s string) error {
56	f := make(map[string]interface{})
57	if err := json.Unmarshal([]byte(s), &f); err != nil {
58		return err
59	}
60	delete(f, "EvidenceName")
61	delete(f, "FileContent")
62	delete(f, "FileName")
63	delete(f, "EvidenceHash")
64	delete(f, "BusinessId")
65	delete(f, "HashType")
66	delete(f, "EvidenceDescription")
67	if len(f) > 0 {
68		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAudioDepositRequest has unknown keys!", "")
69	}
70	return json.Unmarshal([]byte(s), &r)
71}
72
73type CreateAudioDepositResponse struct {
74	*tchttp.BaseResponse
75	Response *struct {
76
77		// 业务ID 透传 长度最大不超过64
78	// 注意:此字段可能返回 null,表示取不到有效值。
79		BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
80
81		// 请求成功,返回存证编码,用于查询存证后续业务数据
82		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
83
84		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
85		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
86	} `json:"Response"`
87}
88
89func (r *CreateAudioDepositResponse) ToJsonString() string {
90    b, _ := json.Marshal(r)
91    return string(b)
92}
93
94// FromJsonString It is highly **NOT** recommended to use this function
95// because it has no param check, nor strict type check
96func (r *CreateAudioDepositResponse) FromJsonString(s string) error {
97	return json.Unmarshal([]byte(s), &r)
98}
99
100type CreateDataDepositRequest struct {
101	*tchttp.BaseRequest
102
103	// 业务数据明文(json格式字符串),最大256kb
104	EvidenceInfo *string `json:"EvidenceInfo,omitempty" name:"EvidenceInfo"`
105
106	// 存证名称(长度最大30)
107	EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
108
109	// 业务ID 透传 长度最大不超过64
110	BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
111
112	// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
113	HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
114
115	// 存证描述
116	EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
117}
118
119func (r *CreateDataDepositRequest) ToJsonString() string {
120    b, _ := json.Marshal(r)
121    return string(b)
122}
123
124// FromJsonString It is highly **NOT** recommended to use this function
125// because it has no param check, nor strict type check
126func (r *CreateDataDepositRequest) FromJsonString(s string) error {
127	f := make(map[string]interface{})
128	if err := json.Unmarshal([]byte(s), &f); err != nil {
129		return err
130	}
131	delete(f, "EvidenceInfo")
132	delete(f, "EvidenceName")
133	delete(f, "BusinessId")
134	delete(f, "HashType")
135	delete(f, "EvidenceDescription")
136	if len(f) > 0 {
137		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDataDepositRequest has unknown keys!", "")
138	}
139	return json.Unmarshal([]byte(s), &r)
140}
141
142type CreateDataDepositResponse struct {
143	*tchttp.BaseResponse
144	Response *struct {
145
146		// 业务ID 透传 长度最大不超过64
147	// 注意:此字段可能返回 null,表示取不到有效值。
148		BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
149
150		// 请求成功,返回存证编码,用于查询存证后续业务数据
151		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
152
153		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
154		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
155	} `json:"Response"`
156}
157
158func (r *CreateDataDepositResponse) ToJsonString() string {
159    b, _ := json.Marshal(r)
160    return string(b)
161}
162
163// FromJsonString It is highly **NOT** recommended to use this function
164// because it has no param check, nor strict type check
165func (r *CreateDataDepositResponse) FromJsonString(s string) error {
166	return json.Unmarshal([]byte(s), &r)
167}
168
169type CreateDocDepositRequest struct {
170	*tchttp.BaseRequest
171
172	// 存证名称(长度最大30)
173	EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
174
175	// 数据Base64编码,大小不超过5M
176	FileContent *string `json:"FileContent,omitempty" name:"FileContent"`
177
178	// 带后缀的文件名称,如 test.doc
179	FileName *string `json:"FileName,omitempty" name:"FileName"`
180
181	// 文件hash
182	EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
183
184	// 业务ID 透传 长度最大不超过64
185	BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
186
187	// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
188	HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
189
190	// 存证描述
191	EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
192}
193
194func (r *CreateDocDepositRequest) ToJsonString() string {
195    b, _ := json.Marshal(r)
196    return string(b)
197}
198
199// FromJsonString It is highly **NOT** recommended to use this function
200// because it has no param check, nor strict type check
201func (r *CreateDocDepositRequest) FromJsonString(s string) error {
202	f := make(map[string]interface{})
203	if err := json.Unmarshal([]byte(s), &f); err != nil {
204		return err
205	}
206	delete(f, "EvidenceName")
207	delete(f, "FileContent")
208	delete(f, "FileName")
209	delete(f, "EvidenceHash")
210	delete(f, "BusinessId")
211	delete(f, "HashType")
212	delete(f, "EvidenceDescription")
213	if len(f) > 0 {
214		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDocDepositRequest has unknown keys!", "")
215	}
216	return json.Unmarshal([]byte(s), &r)
217}
218
219type CreateDocDepositResponse struct {
220	*tchttp.BaseResponse
221	Response *struct {
222
223		// 业务ID 透传 长度最大不超过64
224	// 注意:此字段可能返回 null,表示取不到有效值。
225		BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
226
227		// 请求成功,返回存证编码,用于查询存证后续业务数据
228		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
229
230		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
231		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
232	} `json:"Response"`
233}
234
235func (r *CreateDocDepositResponse) ToJsonString() string {
236    b, _ := json.Marshal(r)
237    return string(b)
238}
239
240// FromJsonString It is highly **NOT** recommended to use this function
241// because it has no param check, nor strict type check
242func (r *CreateDocDepositResponse) FromJsonString(s string) error {
243	return json.Unmarshal([]byte(s), &r)
244}
245
246type CreateHashDepositNoCertRequest struct {
247	*tchttp.BaseRequest
248
249	// 数据hash
250	EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
251
252	// 该字段为透传字段,方便调用方做业务处理, 长度最大不超过64
253	BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
254
255	// 业务扩展信息
256	EvidenceInfo *string `json:"EvidenceInfo,omitempty" name:"EvidenceInfo"`
257}
258
259func (r *CreateHashDepositNoCertRequest) ToJsonString() string {
260    b, _ := json.Marshal(r)
261    return string(b)
262}
263
264// FromJsonString It is highly **NOT** recommended to use this function
265// because it has no param check, nor strict type check
266func (r *CreateHashDepositNoCertRequest) FromJsonString(s string) error {
267	f := make(map[string]interface{})
268	if err := json.Unmarshal([]byte(s), &f); err != nil {
269		return err
270	}
271	delete(f, "EvidenceHash")
272	delete(f, "BusinessId")
273	delete(f, "EvidenceInfo")
274	if len(f) > 0 {
275		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateHashDepositNoCertRequest has unknown keys!", "")
276	}
277	return json.Unmarshal([]byte(s), &r)
278}
279
280type CreateHashDepositNoCertResponse struct {
281	*tchttp.BaseResponse
282	Response *struct {
283
284		// 透传字段
285	// 注意:此字段可能返回 null,表示取不到有效值。
286		BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
287
288		// 存证编码
289		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
290
291		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
292		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
293	} `json:"Response"`
294}
295
296func (r *CreateHashDepositNoCertResponse) ToJsonString() string {
297    b, _ := json.Marshal(r)
298    return string(b)
299}
300
301// FromJsonString It is highly **NOT** recommended to use this function
302// because it has no param check, nor strict type check
303func (r *CreateHashDepositNoCertResponse) FromJsonString(s string) error {
304	return json.Unmarshal([]byte(s), &r)
305}
306
307type CreateHashDepositNoSealRequest struct {
308	*tchttp.BaseRequest
309
310	// 数据hash
311	EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
312
313	// 该字段为透传字段,方便调用方做业务处理, 长度最大不超过64
314	BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
315
316	// 业务扩展信息
317	EvidenceInfo *string `json:"EvidenceInfo,omitempty" name:"EvidenceInfo"`
318}
319
320func (r *CreateHashDepositNoSealRequest) ToJsonString() string {
321    b, _ := json.Marshal(r)
322    return string(b)
323}
324
325// FromJsonString It is highly **NOT** recommended to use this function
326// because it has no param check, nor strict type check
327func (r *CreateHashDepositNoSealRequest) FromJsonString(s string) error {
328	f := make(map[string]interface{})
329	if err := json.Unmarshal([]byte(s), &f); err != nil {
330		return err
331	}
332	delete(f, "EvidenceHash")
333	delete(f, "BusinessId")
334	delete(f, "EvidenceInfo")
335	if len(f) > 0 {
336		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateHashDepositNoSealRequest has unknown keys!", "")
337	}
338	return json.Unmarshal([]byte(s), &r)
339}
340
341type CreateHashDepositNoSealResponse struct {
342	*tchttp.BaseResponse
343	Response *struct {
344
345		// 透传字段
346	// 注意:此字段可能返回 null,表示取不到有效值。
347		BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
348
349		// 存证编码
350		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
351
352		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
353		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
354	} `json:"Response"`
355}
356
357func (r *CreateHashDepositNoSealResponse) ToJsonString() string {
358    b, _ := json.Marshal(r)
359    return string(b)
360}
361
362// FromJsonString It is highly **NOT** recommended to use this function
363// because it has no param check, nor strict type check
364func (r *CreateHashDepositNoSealResponse) FromJsonString(s string) error {
365	return json.Unmarshal([]byte(s), &r)
366}
367
368type CreateHashDepositRequest struct {
369	*tchttp.BaseRequest
370
371	// 存证名称(长度最大30)
372	EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
373
374	// 数据hash
375	EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
376
377	// 该字段为透传字段,方便调用方做业务处理, 长度最大不超过64
378	BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
379
380	// 存证描述
381	EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
382}
383
384func (r *CreateHashDepositRequest) ToJsonString() string {
385    b, _ := json.Marshal(r)
386    return string(b)
387}
388
389// FromJsonString It is highly **NOT** recommended to use this function
390// because it has no param check, nor strict type check
391func (r *CreateHashDepositRequest) FromJsonString(s string) error {
392	f := make(map[string]interface{})
393	if err := json.Unmarshal([]byte(s), &f); err != nil {
394		return err
395	}
396	delete(f, "EvidenceName")
397	delete(f, "EvidenceHash")
398	delete(f, "BusinessId")
399	delete(f, "EvidenceDescription")
400	if len(f) > 0 {
401		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateHashDepositRequest has unknown keys!", "")
402	}
403	return json.Unmarshal([]byte(s), &r)
404}
405
406type CreateHashDepositResponse struct {
407	*tchttp.BaseResponse
408	Response *struct {
409
410		// 透传字段
411	// 注意:此字段可能返回 null,表示取不到有效值。
412		BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
413
414		// 存证编码
415		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
416
417		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
418		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
419	} `json:"Response"`
420}
421
422func (r *CreateHashDepositResponse) ToJsonString() string {
423    b, _ := json.Marshal(r)
424    return string(b)
425}
426
427// FromJsonString It is highly **NOT** recommended to use this function
428// because it has no param check, nor strict type check
429func (r *CreateHashDepositResponse) FromJsonString(s string) error {
430	return json.Unmarshal([]byte(s), &r)
431}
432
433type CreateImageDepositRequest struct {
434	*tchttp.BaseRequest
435
436	// 存证名称(长度最大30)
437	EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
438
439	// 数据Base64编码,大小不超过5M
440	FileContent *string `json:"FileContent,omitempty" name:"FileContent"`
441
442	// 带后缀的文件名称,如 test.png
443	FileName *string `json:"FileName,omitempty" name:"FileName"`
444
445	// 文件hash
446	EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
447
448	// 业务ID 透传 长度最大不超过64
449	BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
450
451	// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
452	HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
453
454	// 存证描述
455	EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
456}
457
458func (r *CreateImageDepositRequest) ToJsonString() string {
459    b, _ := json.Marshal(r)
460    return string(b)
461}
462
463// FromJsonString It is highly **NOT** recommended to use this function
464// because it has no param check, nor strict type check
465func (r *CreateImageDepositRequest) FromJsonString(s string) error {
466	f := make(map[string]interface{})
467	if err := json.Unmarshal([]byte(s), &f); err != nil {
468		return err
469	}
470	delete(f, "EvidenceName")
471	delete(f, "FileContent")
472	delete(f, "FileName")
473	delete(f, "EvidenceHash")
474	delete(f, "BusinessId")
475	delete(f, "HashType")
476	delete(f, "EvidenceDescription")
477	if len(f) > 0 {
478		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateImageDepositRequest has unknown keys!", "")
479	}
480	return json.Unmarshal([]byte(s), &r)
481}
482
483type CreateImageDepositResponse struct {
484	*tchttp.BaseResponse
485	Response *struct {
486
487		// 业务ID 透传 长度最大不超过64
488	// 注意:此字段可能返回 null,表示取不到有效值。
489		BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
490
491		// 请求成功,返回存证编码,用于查询存证后续业务数据
492		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
493
494		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
495		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
496	} `json:"Response"`
497}
498
499func (r *CreateImageDepositResponse) ToJsonString() string {
500    b, _ := json.Marshal(r)
501    return string(b)
502}
503
504// FromJsonString It is highly **NOT** recommended to use this function
505// because it has no param check, nor strict type check
506func (r *CreateImageDepositResponse) FromJsonString(s string) error {
507	return json.Unmarshal([]byte(s), &r)
508}
509
510type CreateVideoDepositRequest struct {
511	*tchttp.BaseRequest
512
513	// 存证名称(长度最大30)
514	EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
515
516	// 数据Base64编码,大小不超过5M
517	FileContent *string `json:"FileContent,omitempty" name:"FileContent"`
518
519	// 带后缀的文件名称,如music.mkv
520	FileName *string `json:"FileName,omitempty" name:"FileName"`
521
522	// 文件hash
523	EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
524
525	// 业务ID 透传 长度最大不超过64
526	BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
527
528	// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
529	HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
530
531	// 存证描述
532	EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
533}
534
535func (r *CreateVideoDepositRequest) ToJsonString() string {
536    b, _ := json.Marshal(r)
537    return string(b)
538}
539
540// FromJsonString It is highly **NOT** recommended to use this function
541// because it has no param check, nor strict type check
542func (r *CreateVideoDepositRequest) FromJsonString(s string) error {
543	f := make(map[string]interface{})
544	if err := json.Unmarshal([]byte(s), &f); err != nil {
545		return err
546	}
547	delete(f, "EvidenceName")
548	delete(f, "FileContent")
549	delete(f, "FileName")
550	delete(f, "EvidenceHash")
551	delete(f, "BusinessId")
552	delete(f, "HashType")
553	delete(f, "EvidenceDescription")
554	if len(f) > 0 {
555		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateVideoDepositRequest has unknown keys!", "")
556	}
557	return json.Unmarshal([]byte(s), &r)
558}
559
560type CreateVideoDepositResponse struct {
561	*tchttp.BaseResponse
562	Response *struct {
563
564		// 业务ID 透传 长度最大不超过64
565	// 注意:此字段可能返回 null,表示取不到有效值。
566		BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
567
568		// 请求成功,返回存证编码,用于查询存证后续业务数据
569		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
570
571		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
572		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
573	} `json:"Response"`
574}
575
576func (r *CreateVideoDepositResponse) ToJsonString() string {
577    b, _ := json.Marshal(r)
578    return string(b)
579}
580
581// FromJsonString It is highly **NOT** recommended to use this function
582// because it has no param check, nor strict type check
583func (r *CreateVideoDepositResponse) FromJsonString(s string) error {
584	return json.Unmarshal([]byte(s), &r)
585}
586
587type GetDepositCertRequest struct {
588	*tchttp.BaseRequest
589
590	// 存证编码
591	EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
592}
593
594func (r *GetDepositCertRequest) ToJsonString() string {
595    b, _ := json.Marshal(r)
596    return string(b)
597}
598
599// FromJsonString It is highly **NOT** recommended to use this function
600// because it has no param check, nor strict type check
601func (r *GetDepositCertRequest) FromJsonString(s string) error {
602	f := make(map[string]interface{})
603	if err := json.Unmarshal([]byte(s), &f); err != nil {
604		return err
605	}
606	delete(f, "EvidenceId")
607	if len(f) > 0 {
608		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetDepositCertRequest has unknown keys!", "")
609	}
610	return json.Unmarshal([]byte(s), &r)
611}
612
613type GetDepositCertResponse struct {
614	*tchttp.BaseResponse
615	Response *struct {
616
617		// 存证编码
618		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
619
620		// 存证证书文件临时链接
621		EvidenceCert *string `json:"EvidenceCert,omitempty" name:"EvidenceCert"`
622
623		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
624		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
625	} `json:"Response"`
626}
627
628func (r *GetDepositCertResponse) ToJsonString() string {
629    b, _ := json.Marshal(r)
630    return string(b)
631}
632
633// FromJsonString It is highly **NOT** recommended to use this function
634// because it has no param check, nor strict type check
635func (r *GetDepositCertResponse) FromJsonString(s string) error {
636	return json.Unmarshal([]byte(s), &r)
637}
638
639type GetDepositFileRequest struct {
640	*tchttp.BaseRequest
641
642	// 存证编码
643	EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
644}
645
646func (r *GetDepositFileRequest) ToJsonString() string {
647    b, _ := json.Marshal(r)
648    return string(b)
649}
650
651// FromJsonString It is highly **NOT** recommended to use this function
652// because it has no param check, nor strict type check
653func (r *GetDepositFileRequest) FromJsonString(s string) error {
654	f := make(map[string]interface{})
655	if err := json.Unmarshal([]byte(s), &f); err != nil {
656		return err
657	}
658	delete(f, "EvidenceId")
659	if len(f) > 0 {
660		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetDepositFileRequest has unknown keys!", "")
661	}
662	return json.Unmarshal([]byte(s), &r)
663}
664
665type GetDepositFileResponse struct {
666	*tchttp.BaseResponse
667	Response *struct {
668
669		// 存证编号
670		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
671
672		// 存证文件临时链接
673		EvidenceFile *string `json:"EvidenceFile,omitempty" name:"EvidenceFile"`
674
675		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
676		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
677	} `json:"Response"`
678}
679
680func (r *GetDepositFileResponse) ToJsonString() string {
681    b, _ := json.Marshal(r)
682    return string(b)
683}
684
685// FromJsonString It is highly **NOT** recommended to use this function
686// because it has no param check, nor strict type check
687func (r *GetDepositFileResponse) FromJsonString(s string) error {
688	return json.Unmarshal([]byte(s), &r)
689}
690
691type GetDepositInfoRequest struct {
692	*tchttp.BaseRequest
693
694	// 存证编码
695	EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
696}
697
698func (r *GetDepositInfoRequest) ToJsonString() string {
699    b, _ := json.Marshal(r)
700    return string(b)
701}
702
703// FromJsonString It is highly **NOT** recommended to use this function
704// because it has no param check, nor strict type check
705func (r *GetDepositInfoRequest) FromJsonString(s string) error {
706	f := make(map[string]interface{})
707	if err := json.Unmarshal([]byte(s), &f); err != nil {
708		return err
709	}
710	delete(f, "EvidenceId")
711	if len(f) > 0 {
712		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetDepositInfoRequest has unknown keys!", "")
713	}
714	return json.Unmarshal([]byte(s), &r)
715}
716
717type GetDepositInfoResponse struct {
718	*tchttp.BaseResponse
719	Response *struct {
720
721		// 存证编号
722		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
723
724		// 上链时间
725		EvidenceTime *string `json:"EvidenceTime,omitempty" name:"EvidenceTime"`
726
727		// 区块链交易哈希
728		EvidenceTxHash *string `json:"EvidenceTxHash,omitempty" name:"EvidenceTxHash"`
729
730		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
731		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
732	} `json:"Response"`
733}
734
735func (r *GetDepositInfoResponse) ToJsonString() string {
736    b, _ := json.Marshal(r)
737    return string(b)
738}
739
740// FromJsonString It is highly **NOT** recommended to use this function
741// because it has no param check, nor strict type check
742func (r *GetDepositInfoResponse) FromJsonString(s string) error {
743	return json.Unmarshal([]byte(s), &r)
744}
745
746type VerifyEvidenceBlockChainTxHashRequest struct {
747	*tchttp.BaseRequest
748
749	// 区块链交易 hash,在“存证基本信息查询(GetDepositInfo)”接口中可以获取。
750	EvidenceTxHash *string `json:"EvidenceTxHash,omitempty" name:"EvidenceTxHash"`
751}
752
753func (r *VerifyEvidenceBlockChainTxHashRequest) ToJsonString() string {
754    b, _ := json.Marshal(r)
755    return string(b)
756}
757
758// FromJsonString It is highly **NOT** recommended to use this function
759// because it has no param check, nor strict type check
760func (r *VerifyEvidenceBlockChainTxHashRequest) FromJsonString(s string) error {
761	f := make(map[string]interface{})
762	if err := json.Unmarshal([]byte(s), &f); err != nil {
763		return err
764	}
765	delete(f, "EvidenceTxHash")
766	if len(f) > 0 {
767		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "VerifyEvidenceBlockChainTxHashRequest has unknown keys!", "")
768	}
769	return json.Unmarshal([]byte(s), &r)
770}
771
772type VerifyEvidenceBlockChainTxHashResponse struct {
773	*tchttp.BaseResponse
774	Response *struct {
775
776		// 核验结果,true为核验成功,fals为核验失败
777		Result *bool `json:"Result,omitempty" name:"Result"`
778
779		// 存证时间,仅当核验结果为true时返回
780	// 注意:此字段可能返回 null,表示取不到有效值。
781		EvidenceTime *string `json:"EvidenceTime,omitempty" name:"EvidenceTime"`
782
783		// 存证编码,仅当核验结果为true时返回
784	// 注意:此字段可能返回 null,表示取不到有效值。
785		EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
786
787		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
788		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
789	} `json:"Response"`
790}
791
792func (r *VerifyEvidenceBlockChainTxHashResponse) ToJsonString() string {
793    b, _ := json.Marshal(r)
794    return string(b)
795}
796
797// FromJsonString It is highly **NOT** recommended to use this function
798// because it has no param check, nor strict type check
799func (r *VerifyEvidenceBlockChainTxHashResponse) FromJsonString(s string) error {
800	return json.Unmarshal([]byte(s), &r)
801}
802
803type VerifyEvidenceHashRequest struct {
804	*tchttp.BaseRequest
805
806	// 存证内容hash,hash类型即为用户在存证时所用或所选的hash类型
807	EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
808}
809
810func (r *VerifyEvidenceHashRequest) ToJsonString() string {
811    b, _ := json.Marshal(r)
812    return string(b)
813}
814
815// FromJsonString It is highly **NOT** recommended to use this function
816// because it has no param check, nor strict type check
817func (r *VerifyEvidenceHashRequest) FromJsonString(s string) error {
818	f := make(map[string]interface{})
819	if err := json.Unmarshal([]byte(s), &f); err != nil {
820		return err
821	}
822	delete(f, "EvidenceHash")
823	if len(f) > 0 {
824		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "VerifyEvidenceHashRequest has unknown keys!", "")
825	}
826	return json.Unmarshal([]byte(s), &r)
827}
828
829type VerifyEvidenceHashResponse struct {
830	*tchttp.BaseResponse
831	Response *struct {
832
833		// 核验结果,true为核验成功,false为核验失败
834		Result *bool `json:"Result,omitempty" name:"Result"`
835
836		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
837		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
838	} `json:"Response"`
839}
840
841func (r *VerifyEvidenceHashResponse) ToJsonString() string {
842    b, _ := json.Marshal(r)
843    return string(b)
844}
845
846// FromJsonString It is highly **NOT** recommended to use this function
847// because it has no param check, nor strict type check
848func (r *VerifyEvidenceHashResponse) FromJsonString(s string) error {
849	return json.Unmarshal([]byte(s), &r)
850}
851