-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.html
796 lines (775 loc) · 68.1 KB
/
api.html
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>API Doc</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/antd.min.css" />
<style>
.content-line {
height: 25px;
line-height: 25px;
}
.content-line-count {
height: 35px;
line-height: 35px;
}
.title {
margin-top: 25px;
}
.knife4j-description {
/* width: 90%;
margin: 15px auto; */
margin-top: 5px;
}
.divider {
margin: 4px 0;
}
.divider-count {
margin: 8px 0;
}
.knife4j-document {
margin-top: 30px;
}
.api-tab {
margin-top: 15px;
.ant-tag {
height: 32px;
line-height: 32px;
}
}
.knife4j-menu-api-deprecated {
text-decoration: line-through;
}
.knife4j-api-title {
margin-top: 10px;
margin-bottom: 5px;
font-size: 16px;
font-weight: 600;
color: #616368;
height: 35px;
line-height: 35px;
}
.knife4j-api-row {
height: 45px;
line-height: 45px;
}
.knife4j-api-summary {
border-color: #49cc90;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 2px;
cursor: pointer;
}
.knife4j-api-summary-method {
font-size: 14px;
font-weight: 700;
min-width: 80px;
padding: 6px 15px;
text-align: center;
border-radius: 3px;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
font-family: Titillium Web, sans-serif;
color: #fff;
}
.knife4j-api-summary-path {
font-size: 14px;
display: flex;
-webkit-box-flex: 0;
-ms-flex: 0 3 auto;
flex: 0 3 auto;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
word-break: break-all;
padding: 0 32px;
}
.knife4j-api-post {
border-color: #49cc90;
background: rgba(73, 204, 144, 0.1);
}
.knife4j-api-post .knife4j-api-summary-method {
background: #49cc90;
}
.knife4j-api-get {
border-color: #61affe;
background: rgba(97, 175, 254, 0.1);
}
.knife4j-api-get .knife4j-api-summary-method {
background: #61affe;
}
.knife4j-api-head {
border-color: #9012fe;
background: rgba(144, 18, 254, 0.1);
}
.knife4j-api-head .knife4j-api-summary-method {
background: #9012fe;
}
.knife4j-api-put {
border-color: #fca130;
background: rgba(252, 161, 48, 0.1);
}
.knife4j-api-put .knife4j-api-summary-method {
background: #fca130;
}
.knife4j-api-delete {
border-color: #f93e3e;
background: rgba(249, 62, 62, 0.1);
}
.knife4j-api-delete .knife4j-api-summary-method {
background: #f93e3e;
}
.knife4j-api-options {
border-color: #0d5aa7;
background: rgba(13, 90, 167, 0.1);
}
.knife4j-api-options .knife4j-api-summary-method {
background: #0d5aa7;
}
.knife4j-api-patch {
border-color: #50e3c2;
background: rgba(80, 227, 194, 0.1);
}
.knife4j-api-patch .knife4j-api-summary-method {
background: #50e3c2;
}
#knife4jDoc ul{
padding-left: 10px;
list-style: none;
counter-reset: ordered;
}
#knife4jDoc ul li:before {
counter-increment: ordered;
content: counters(ordered,".")" ";
color:#1890ff;
}
.api-basic {
padding: 11px;
}
.api-basic-title {
font-size: 14px;
font-weight: 700;
}
.api-basic-body {
font-size: 14px;
font-family: -webkit-body;
}
.knife4j-api-editor-show {
margin: 15px 0;
font: 100 12px/18px monaco, andale mono, courier new;
padding: 10px 12px;
border: #ccc 1px solid;
border-left-width: 4px;
background-color: #fefefe;
box-shadow: 0 0 4px #eee;
word-break: break-all;
word-wrap: break-word;
color: #444;
}
.knife4j-api-editor-show .string { color: green; } /*字符串的样式*/
.knife4j-api-editor-show .number { color: darkorange; } /*数字的样式*/
.knife4j-api-editor-show .boolean { color: blue; } /*布尔型数据的样式*/
.knife4j-api-editor-show .null { color: magenta; } /*null值的样式*/
.knife4j-api-editor-show .key { color: red; } /*key值的样式*/
.api-description {
border-left: 4px solid #ddd;
line-height: 30px;
}
.api-body-desc {
padding: 10px;
min-height: 35px;
box-sizing: border-box;
border: 1px solid #e8e8e8;
}
.ant-card-body {
padding: 5px;
}
.api-title {
margin-top: 10px;
margin-bottom: 5px;
font-size: 16px;
font-weight: 600;
height: 30px;
line-height: 30px;
border-left: 4px solid #00ab6d;
text-indent: 8px;
}
.content-line {
height: 25px;
line-height: 25px;
}
.content-line-count {
height: 35px;
line-height: 35px;
}
.divider {
margin: 4px 0;
}
.knife4j-doc-m{
position: fixed;
height: 500px;
width: 400px;
border: 1px solid #b7b4b4;
overflow-y: auto;
right: 12px;
top: 40px;
z-index: 9999;
background: #fcfafa;
}
</style>
</head>
<body>
<div id="knife4jDocument" class="resume_preview_page" style="margin:10px auto;width:88%">
<div class="htmledit_views" >
<a-row>
<!--基础信息-->
<a-row>
<a-col :span="24">
<div class="title">
<h2>{{instance.title}}</h2>
</div>
<div class="knife4j-description">
<a-row class="content-line">
<a-col :span="5">
<h3>简介</h3>
</a-col>
<a-col :span="19"><span v-html="instance.description" /></a-col>
</a-row>
<a-divider class="divider" />
</div>
<div class="knife4j-description">
<a-row class="content-line">
<a-col :span="5">
<h3>作者</h3>
</a-col>
<a-col :span="19"><span v-html="instance.contact" /></a-col>
</a-row>
<a-divider class="divider" />
</div>
<div class="knife4j-description">
<a-row class="content-line">
<a-col :span="5">
<h3>版本</h3>
</a-col>
<a-col :span="19"><span v-html="instance.version" /></a-col>
</a-row>
<a-divider class="divider" />
</div>
<div class="knife4j-description">
<a-row class="content-line">
<a-col :span="5">
<h3>host</h3>
</a-col>
<a-col :span="19"><span v-html="instance.host" /></a-col>
</a-row>
<a-divider class="divider" />
</div>
<div class="knife4j-description">
<a-row class="content-line">
<a-col :span="5">
<h3>basePath</h3>
</a-col>
<a-col :span="19"><span v-html="instance.basePath" /></a-col>
</a-row>
<a-divider class="divider" />
</div>
<div class="knife4j-description">
<a-row class="content-line">
<a-col :span="5">
<h3>服务Url</h3>
</a-col>
<a-col :span="19"><span v-html="instance.termsOfService" /></a-col>
</a-row>
<a-divider class="divider" />
</div>
<div class="knife4j-description">
<a-row class="content-line">
<a-col :span="5">
<h3>分组名称</h3>
</a-col>
<a-col :span="19"><span v-html="instance.name" /></a-col>
</a-row>
<a-divider class="divider" />
</div>
<div class="knife4j-description">
<a-row class="content-line">
<a-col :span="5">
<h3>分组url</h3>
</a-col>
<a-col :span="19"><span v-html="instance.url" /></a-col>
</a-row>
<a-divider class="divider" />
</div>
<div class="description">
<a-row class="content-line">
<a-col :span="5">
<h3>分组location</h3>
</a-col>
<a-col :span="19"><span v-html="instance.location" /></a-col>
</a-row>
<a-divider class="divider" />
</div>
<div class="knife4j-description">
<a-row class="content-line">
<a-col :span="5">
<h3>接口统计信息</h3>
</a-col>
<a-col :span="19">
<a-row class="content-line-count" v-for="param in instance.pathArrs" :key="param.method">
<a-col :span="3">
{{param.method}}
</a-col>
<a-col :span="2">
<a-tag color="#108ee9">{{param.count}}</a-tag>
</a-col>
<a-divider class="divider-count" />
</a-row>
</a-col>
</a-row>
</div>
</a-col>
</a-row>
<!--目录-->
<a-row id="knife4j-doc-m" class="knife4j-doc-m">
<a-row style="float: right;width: 57px;z-index: 10000;overflow: hidden;">
<a-button type="link" id="btnHide">隐藏</a-button>
</a-row>
<a-row v-if="hideShow" id="knife4jDoc">
<ul>
<li><a href="#knife4jDocument">主页</a></li>
<li v-for="tag in tags" :key="tag.name">
<a :href="'#'+tag.name">{{tag.name}}</a>
<ul>
<li v-for="c in tag.childrens" :key="c.id"><a :href="'#'+c.operationId">{{c.summary}}</a></li>
</ul>
</li>
</ul>
</a-row>
</a-row>
<!--分组API信息-->
<!--遍历tags-->
<a-row v-for="tag in tags" :key="tag.name">
<h1 :id="tag.name">{{tag.name}}</h1>
<div class="knife4j-document" v-for="api in tag.childrens">
<!--接口基本信息-->
<a-row>
<a-row :id="api.operationId" class="knife4j-api-title">
<span v-if="api.deprecated" class="knife4j-menu-api-deprecated">
{{ api.summary }}
</span>
<span v-else>
{{ api.summary }}
</span>
</a-row>
<a-row :class="'knife4j-api-' + api.methodType.toLowerCase()">
<div class="knife4j-api-summary">
<span class="knife4j-api-summary-method">{{ api.methodType }}</span>
<span class="knife4j-api-summary-path">{{ api.showUrl }}</span>
</div>
</a-row>
<a-row class="knife4j-api-row">
<a-col :span="12">
<a-row>
<a-col class="api-basic-title" :span="6">请求数据类型</a-col>
{{ api.consumes }}
</a-row>
</a-col>
<a-col :span="12">
<a-row>
<a-col class="api-basic-title" :span="6">响应数据类型</a-col>
{{ api.produces }}
</a-row>
</a-col>
</a-row>
</a-row>
<div v-if="api.author">
<div class="api-title">
开发者
</div>
<div v-if="api.author" v-html="api.author" class="api-body-desc"></div>
</div>
<!--接口描述-->
<div v-if="api.description">
<div class="api-title">
接口描述
</div>
<div
v-if="api.description"
v-html="api.description"
class="api-body-desc"
></div>
</div>
<!--请求示例-->
<div v-if="api.requestValue">
<div class="api-title">
请求示例
</div>
<pre
class="knife4j-api-editor-show"
v-html="formaterJson(api.requestValue)"
></pre>
</div>
<div class="api-title">
请求参数
</div>
<a-table default-expand-all-rows :columns="columns" :data-source="api.reqParameters"
:row-key="genUnionTableKey"
size="small"
:pagination="page" >
<template slot="requireTemplate" slot-scope="text">
<span v-if="text" style="color:red">{{ text.toLocaleString() }}</span>
<span v-else>{{ text.toLocaleString() }}</span>
</template>
<template slot="typeTemplate" slot-scope="text">
<span :class="'knife4j-request-' + text">{{ text }}</span>
</template>
<template slot="datatypeTemplate" slot-scope="text, record">
<data-type :text="text" :record="record"></data-type>
</template>
</a-table>
<!--响应状态-->
<div class="api-title">
响应状态
</div>
<a-table
:columns="responseStatuscolumns"
:data-source="api.responseCodes"
row-key="code"
size="small"
:pagination="page"
>
<template slot="descriptionTemplate" slot-scope="text">
<div v-html="text"></div>
</template>
</a-table>
<!--响应参数-->
<!--响应参数需要判断是否存在多个code-schema的情况-->
<div v-if="api.multipartResponseSchema">
<!--多个响应编码code的情况在离线文档中需要单独遍历分开-->
<a-tabs v-for="resp in api.multipCodeDatas" :key="resp.code">
<a-tab-pane :tab="resp.code">
<!--判断响应头-->
<div v-if="resp.responseHeaderParameters">
<div class="api-title">
响应Header
</div>
<a-table
:columns="responseHeaderColumns"
:data-source="resp.responseHeaderParameters"
row-key="id"
size="small"
:pagination="page"
>
</a-table>
</div>
<!--响应参数-->
<div class="api-title">
响应参数
</div>
<a-table
:columns="responseParametersColumns"
:data-source="resp.data"
row-key="id"
size="small"
:pagination="page"
>
</a-table>
<div class="api-title">
响应示例
</div>
<div class="api-editor-show" v-if="resp.responseBasicType">
{{ resp.responseText }}
</div>
<pre
class="knife4j-api-editor-show"
v-else
v-html="formaterJson(resp.responseValue)"
></pre>
<!-- <editor-show :value="resp.responseBasicType ? resp.responseText : resp.responseValue"></editor-show> -->
<!-- <editor :value="resp.responseBasicType ? resp.responseText : resp.responseValue" @init="multiResponseSampleEditorInit" lang="json" theme="eclipse" width="100%" :height="editorMultiHeight"></editor> -->
</a-tab-pane>
</a-tabs>
</div>
<div v-else>
<!--判断响应头-->
<div v-if="api.responseHeaderParameters">
<div class="api-title">
响应Header
</div>
<a-table
:columns="responseHeaderColumns"
:data-source="api.responseHeaderParameters"
row-key="id"
size="small"
:pagination="page"
>
</a-table>
</div>
<!--响应参数-->
<div class="api-title">
响应参数
</div>
<a-table
:columns="responseParametersColumns"
:data-source="api.multipData.data"
row-key="id"
size="small"
:pagination="page"
>
</a-table>
<div class="api-title">
响应示例
</div>
<div class="api-editor-show" v-if="api.multipData.responseBasicType">
{{ api.multipData.responseText }}
</div>
<pre
class="knife4j-api-editor-show"
v-else
v-html="formaterJson(api.multipData.responseValue)"
></pre>
</div>
<!--接口遍历结束-->
</div>
</a-row>
</a-row>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.min.js"></script>
<script type="text/javascript">
function getData(){
var datas={"instance":{"title":"API Doc","description":"API Doc","contact":"","version":"1.0","host":"localhost:8848","basePath":"/","termsOfService":"","name":"Released","url":"/v2/api-docs?group=Released","location":"/v2/api-docs?group=Released","pathArrs":[{"method":"GET","count":2},{"method":"POST","count":5}]},"hideShow":true,"tags":[{"name":"test-controller","description":null,"order":2147483647,"author":null,"childrens":[{"id":"e6ca4466616b426f3d00e58bbd7a28b5","operationId":"allMemosUsingGET","deprecated":false,"summary":"allMemos","methodType":"GET","showUrl":"/api/allMemos","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"username","children":null,"description":"username","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":"统一返回结构«List«Memo»»"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"code","children":null,"description":"返回状态码","id":"param25","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"data","children":[{"name":"deadline","children":null,"description":"","id":"param47","type":"string","schemaValue":null},{"name":"detail","children":null,"description":"","id":"param48","type":"string","schemaValue":null},{"name":"headline","children":null,"description":"","id":"param49","type":"string","schemaValue":null},{"name":"id","children":null,"description":"","id":"param50","type":"integer(int32)","schemaValue":null}],"description":"返回的数据","id":"param26","type":"array","schemaValue":"Memo"},{"name":"message","children":null,"description":"返回的信息","id":"param35","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"code\": 0,\n\t\"data\": [\n\t\t{\n\t\t\t\"deadline\": \"\",\n\t\t\t\"detail\": \"\",\n\t\t\t\"headline\": \"\",\n\t\t\t\"id\": 0\n\t\t}\n\t],\n\t\"message\": \"\"\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"统一返回结构«List«Memo»»","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"code\": 0,\n\t\"data\": [\n\t\t{\n\t\t\t\"deadline\": \"\",\n\t\t\t\"detail\": \"\",\n\t\t\t\"headline\": \"\",\n\t\t\t\"id\": 0\n\t\t}\n\t],\n\t\"message\": \"\"\n}","responseJson":{"code":0,"data":[{"deadline":"","detail":"","headline":"","id":0}],"message":""},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param25","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"array","in":null,"schema":true,"schemaValue":"Memo","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param26","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":[{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param47","ignoreFilterName":null,"in":null,"level":1,"name":"deadline","parentTypes":["Memo","Memo"],"pid":"param26","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"string","validateInstance":null,"validateStatus":false,"value":null},{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param48","ignoreFilterName":null,"in":null,"level":1,"name":"detail","parentTypes":["Memo","Memo"],"pid":"param26","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"string","validateInstance":null,"validateStatus":false,"value":null},{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param49","ignoreFilterName":null,"in":null,"level":1,"name":"headline","parentTypes":["Memo","Memo"],"pid":"param26","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"string","validateInstance":null,"validateStatus":false,"value":null},{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param50","ignoreFilterName":null,"in":null,"level":1,"name":"id","parentTypes":["Memo","Memo"],"pid":"param26","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"integer(int32)","validateInstance":null,"validateStatus":false,"value":null}],"parentTypes":["Memo"]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param35","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"统一返回结构«List«Memo»»","responseRefParameters":[{"name":"Memo","params":[{"name":"deadline","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param27","pid":"param26","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"detail","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param28","pid":"param26","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"headline","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param29","pid":"param26","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"id","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param30","pid":"param26","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}],"responseTreetableRefParameters":[{"init":false,"id":"param26","name":"Memo","params":[{"name":"deadline","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param31","pid":"param26","level":1,"show":true,"readOnly":false,"example":"","childrenTypes":[],"children":null,"parentTypes":["Memo","Memo"]},{"name":"detail","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param32","pid":"param26","level":1,"show":true,"readOnly":false,"example":"","childrenTypes":[],"children":null,"parentTypes":["Memo","Memo"]},{"name":"headline","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param33","pid":"param26","level":1,"show":true,"readOnly":false,"example":"","childrenTypes":[],"children":null,"parentTypes":["Memo","Memo"]},{"name":"id","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param34","pid":"param26","level":1,"show":true,"readOnly":false,"example":"","childrenTypes":[],"children":null,"parentTypes":["Memo","Memo"]}],"level":1,"childrenTypes":[]}],"responseDescriptions":{"code":"返回状态码","data":"返回的数据","data>deadline":"","data>detail":"","data>headline":"","data>id":"","message":"返回的信息","message>deadline":"","message>detail":"","message>headline":"","message>id":""},"data":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param25","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"array","in":null,"schema":true,"schemaValue":"Memo","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param26","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":[{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param47","ignoreFilterName":null,"in":null,"level":1,"name":"deadline","parentTypes":["Memo","Memo"],"pid":"param26","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"string","validateInstance":null,"validateStatus":false,"value":null},{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param48","ignoreFilterName":null,"in":null,"level":1,"name":"detail","parentTypes":["Memo","Memo"],"pid":"param26","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"string","validateInstance":null,"validateStatus":false,"value":null},{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param49","ignoreFilterName":null,"in":null,"level":1,"name":"headline","parentTypes":["Memo","Memo"],"pid":"param26","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"string","validateInstance":null,"validateStatus":false,"value":null},{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param50","ignoreFilterName":null,"in":null,"level":1,"name":"id","parentTypes":["Memo","Memo"],"pid":"param26","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"integer(int32)","validateInstance":null,"validateStatus":false,"value":null}],"parentTypes":["Memo"]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param35","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"e5c1457e4b37994aa290535169fcb905","operationId":"dayMemosUsingGET","deprecated":false,"summary":"dayMemos","methodType":"GET","showUrl":"/api/dayMemos","consumes":["application/x-www-form-urlencoded"],"produces":["*/*"],"author":null,"description":"","requestValue":null,"reqParameters":[{"name":"deadline","children":null,"description":"deadline","in":"query","require":true,"type":"string","schemaValue":null},{"name":"username","children":null,"description":"username","in":"query","require":true,"type":"string","schemaValue":null}],"responseCodes":[{"code":"200","description":"OK","schema":"统一返回结构«List«DayMemo»»"},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"code","children":null,"description":"返回状态码","id":"param63","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"data","children":[{"name":"detail","children":null,"description":"","id":"param81","type":"string","schemaValue":null},{"name":"headline","children":null,"description":"","id":"param82","type":"string","schemaValue":null},{"name":"id","children":null,"description":"","id":"param83","type":"integer(int32)","schemaValue":null}],"description":"返回的数据","id":"param64","type":"array","schemaValue":"DayMemo"},{"name":"message","children":null,"description":"返回的信息","id":"param71","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"code\": 0,\n\t\"data\": [\n\t\t{\n\t\t\t\"detail\": \"\",\n\t\t\t\"headline\": \"\",\n\t\t\t\"id\": 0\n\t\t}\n\t],\n\t\"message\": \"\"\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"统一返回结构«List«DayMemo»»","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"code\": 0,\n\t\"data\": [\n\t\t{\n\t\t\t\"detail\": \"\",\n\t\t\t\"headline\": \"\",\n\t\t\t\"id\": 0\n\t\t}\n\t],\n\t\"message\": \"\"\n}","responseJson":{"code":0,"data":[{"detail":"","headline":"","id":0}],"message":""},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param63","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"array","in":null,"schema":true,"schemaValue":"DayMemo","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param64","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":[{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param81","ignoreFilterName":null,"in":null,"level":1,"name":"detail","parentTypes":["DayMemo","DayMemo"],"pid":"param64","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"string","validateInstance":null,"validateStatus":false,"value":null},{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param82","ignoreFilterName":null,"in":null,"level":1,"name":"headline","parentTypes":["DayMemo","DayMemo"],"pid":"param64","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"string","validateInstance":null,"validateStatus":false,"value":null},{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param83","ignoreFilterName":null,"in":null,"level":1,"name":"id","parentTypes":["DayMemo","DayMemo"],"pid":"param64","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"integer(int32)","validateInstance":null,"validateStatus":false,"value":null}],"parentTypes":["DayMemo"]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param71","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"统一返回结构«List«DayMemo»»","responseRefParameters":[{"name":"DayMemo","params":[{"name":"detail","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param65","pid":"param64","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"headline","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param66","pid":"param64","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"id","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param67","pid":"param64","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}],"responseTreetableRefParameters":[{"init":false,"id":"param64","name":"DayMemo","params":[{"name":"detail","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param68","pid":"param64","level":1,"show":true,"readOnly":false,"example":"","childrenTypes":[],"children":null,"parentTypes":["DayMemo","DayMemo"]},{"name":"headline","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param69","pid":"param64","level":1,"show":true,"readOnly":false,"example":"","childrenTypes":[],"children":null,"parentTypes":["DayMemo","DayMemo"]},{"name":"id","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"","txtValue":null,"enum":null,"id":"param70","pid":"param64","level":1,"show":true,"readOnly":false,"example":"","childrenTypes":[],"children":null,"parentTypes":["DayMemo","DayMemo"]}],"level":1,"childrenTypes":[]}],"responseDescriptions":{"code":"返回状态码","data":"返回的数据","data>detail":"","data>headline":"","data>id":"","message":"返回的信息","message>detail":"","message>headline":"","message>id":""},"data":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param63","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"array","in":null,"schema":true,"schemaValue":"DayMemo","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param64","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":[{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param81","ignoreFilterName":null,"in":null,"level":1,"name":"detail","parentTypes":["DayMemo","DayMemo"],"pid":"param64","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"string","validateInstance":null,"validateStatus":false,"value":null},{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param82","ignoreFilterName":null,"in":null,"level":1,"name":"headline","parentTypes":["DayMemo","DayMemo"],"pid":"param64","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"string","validateInstance":null,"validateStatus":false,"value":null},{"children":null,"childrenTypes":[],"def":null,"description":"","enum":null,"id":"param83","ignoreFilterName":null,"in":null,"level":1,"name":"id","parentTypes":["DayMemo","DayMemo"],"pid":"param64","require":false,"schema":false,"schemaValue":null,"show":true,"txtValue":null,"type":"integer(int32)","validateInstance":null,"validateStatus":false,"value":null}],"parentTypes":["DayMemo"]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param71","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"7f9084b39e51d3f75b85f76533f66d34","operationId":"deleteMemoUsingPOST","deprecated":false,"summary":"deleteMemo","methodType":"POST","showUrl":"/api/deleteMemo","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":"{\n \"id\": 0\n}","reqParameters":[{"name":"deleteMemoPostDTO","children":[{"name":"id","children":null,"description":"","in":null,"require":false,"type":"integer(int32)","schemaValue":null}],"description":"deleteMemoPostDTO","in":"body","require":true,"type":"DeleteMemoPostDTO","schemaValue":"DeleteMemoPostDTO"}],"responseCodes":[{"code":"200","description":"OK","schema":"统一返回结构«string»"},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"code","children":null,"description":"返回状态码","id":"param89","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"data","children":null,"description":"返回的数据","id":"param90","type":"string","schemaValue":null},{"name":"message","children":null,"description":"返回的信息","id":"param91","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"code\": 0,\n\t\"data\": \"\",\n\t\"message\": \"\"\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"统一返回结构«string»","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"code\": 0,\n\t\"data\": \"\",\n\t\"message\": \"\"\n}","responseJson":{"code":0,"data":"","message":""},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param89","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param90","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param91","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"统一返回结构«string»","responseRefParameters":[],"responseTreetableRefParameters":[],"responseDescriptions":{"code":"返回状态码","data":"返回的数据","message":"返回的信息"},"data":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param89","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param90","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param91","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"e9c2f8328a0b8f53ae15dfa3e35bec2d","operationId":"editMemoUsingPOST","deprecated":false,"summary":"editMemo","methodType":"POST","showUrl":"/api/editMemo","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":"{\n \"deadline\": \"\",\n \"detail\": \"\",\n \"headline\": \"\",\n \"id\": 0\n}","reqParameters":[{"name":"memoPostDTO","children":[{"name":"deadline","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null},{"name":"detail","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null},{"name":"headline","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null},{"name":"id","children":null,"description":"","in":null,"require":false,"type":"integer(int32)","schemaValue":null}],"description":"memoPostDTO","in":"body","require":true,"type":"MemoPostDTO","schemaValue":"MemoPostDTO"}],"responseCodes":[{"code":"200","description":"OK","schema":"统一返回结构«string»"},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"code","children":null,"description":"返回状态码","id":"param102","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"data","children":null,"description":"返回的数据","id":"param103","type":"string","schemaValue":null},{"name":"message","children":null,"description":"返回的信息","id":"param104","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"code\": 0,\n\t\"data\": \"\",\n\t\"message\": \"\"\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"统一返回结构«string»","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"code\": 0,\n\t\"data\": \"\",\n\t\"message\": \"\"\n}","responseJson":{"code":0,"data":"","message":""},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param102","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param103","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param104","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"统一返回结构«string»","responseRefParameters":[],"responseTreetableRefParameters":[],"responseDescriptions":{"code":"返回状态码","data":"返回的数据","message":"返回的信息"},"data":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param102","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param103","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param104","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"dbc4707754cac89b2b10a9b11c85785d","operationId":"loginUsingPOST","deprecated":false,"summary":"login","methodType":"POST","showUrl":"/api/login","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":"{\n \"password\": \"\",\n \"username\": \"\"\n}","reqParameters":[{"name":"userPostDTO","children":[{"name":"password","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null},{"name":"username","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null}],"description":"userPostDTO","in":"body","require":true,"type":"UserPostDTO","schemaValue":"UserPostDTO"}],"responseCodes":[{"code":"200","description":"OK","schema":"统一返回结构«string»"},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"code","children":null,"description":"返回状态码","id":"param117","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"data","children":null,"description":"返回的数据","id":"param118","type":"string","schemaValue":null},{"name":"message","children":null,"description":"返回的信息","id":"param119","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"code\": 0,\n\t\"data\": \"\",\n\t\"message\": \"\"\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"统一返回结构«string»","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"code\": 0,\n\t\"data\": \"\",\n\t\"message\": \"\"\n}","responseJson":{"code":0,"data":"","message":""},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param117","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param118","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param119","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"统一返回结构«string»","responseRefParameters":[],"responseTreetableRefParameters":[],"responseDescriptions":{"code":"返回状态码","data":"返回的数据","message":"返回的信息"},"data":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param117","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param118","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param119","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"750b1df8c040c9ec6556ed230785d5d2","operationId":"newMemoUsingPOST","deprecated":false,"summary":"newMemo","methodType":"POST","showUrl":"/api/newMemo","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":"{\n \"deadline\": \"\",\n \"detail\": \"\",\n \"headline\": \"\",\n \"username\": \"\"\n}","reqParameters":[{"name":"newMemoPostDTO","children":[{"name":"deadline","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null},{"name":"detail","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null},{"name":"headline","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null},{"name":"username","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null}],"description":"newMemoPostDTO","in":"body","require":true,"type":"NewMemoPostDTO","schemaValue":"NewMemoPostDTO"}],"responseCodes":[{"code":"200","description":"OK","schema":"统一返回结构«string»"},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"code","children":null,"description":"返回状态码","id":"param130","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"data","children":null,"description":"返回的数据","id":"param131","type":"string","schemaValue":null},{"name":"message","children":null,"description":"返回的信息","id":"param132","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"code\": 0,\n\t\"data\": \"\",\n\t\"message\": \"\"\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"统一返回结构«string»","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"code\": 0,\n\t\"data\": \"\",\n\t\"message\": \"\"\n}","responseJson":{"code":0,"data":"","message":""},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param130","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param131","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param132","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"统一返回结构«string»","responseRefParameters":[],"responseTreetableRefParameters":[],"responseDescriptions":{"code":"返回状态码","data":"返回的数据","message":"返回的信息"},"data":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param130","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param131","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param132","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}},{"id":"e81db74379ef7f6d3bdee06214adf0d6","operationId":"registerUsingPOST","deprecated":false,"summary":"register","methodType":"POST","showUrl":"/api/register","consumes":["application/json"],"produces":["*/*"],"author":null,"description":"","requestValue":"{\n \"password\": \"\",\n \"username\": \"\"\n}","reqParameters":[{"name":"userPostDTO","children":[{"name":"password","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null},{"name":"username","children":null,"description":"","in":null,"require":false,"type":"string","schemaValue":null}],"description":"userPostDTO","in":"body","require":true,"type":"UserPostDTO","schemaValue":"UserPostDTO"}],"responseCodes":[{"code":"200","description":"OK","schema":"统一返回结构«string»"},{"code":"201","description":"Created","schema":null},{"code":"401","description":"Unauthorized","schema":null},{"code":"403","description":"Forbidden","schema":null},{"code":"404","description":"Not Found","schema":null}],"multipartResponseSchema":false,"multipCodeDatas":[{"code":"200","responseHeaderParameters":null,"data":[{"name":"code","children":null,"description":"返回状态码","id":"param7","type":"integer(int32)","schemaValue":"integer(int32)"},{"name":"data","children":null,"description":"返回的数据","id":"param8","type":"string","schemaValue":null},{"name":"message","children":null,"description":"返回的信息","id":"param9","type":"string","schemaValue":null}],"responseBasicType":false,"responseText":null,"responseValue":"{\n\t\"code\": 0,\n\t\"data\": \"\",\n\t\"message\": \"\"\n}"}],"responseHeaderParameters":null,"multipData":{"oas2":true,"code":"200","description":"OK","schema":"统一返回结构«string»","schemaTitle":null,"refTreetableparameters":[],"responseCodes":[],"responseValue":"{\n\t\"code\": 0,\n\t\"data\": \"\",\n\t\"message\": \"\"\n}","responseJson":{"code":0,"data":"","message":""},"responseText":null,"responseBasicType":false,"responseHeaderParameters":null,"responseParameters":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param7","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param8","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param9","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}],"responseParameterRefName":"统一返回结构«string»","responseRefParameters":[],"responseTreetableRefParameters":[],"responseDescriptions":{"code":"返回状态码","data":"返回的数据","message":"返回的信息"},"data":[{"name":"code","ignoreFilterName":null,"require":false,"type":"integer(int32)","in":null,"schema":true,"schemaValue":"integer(int32)","value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回状态码","txtValue":null,"enum":null,"id":"param7","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":["integer(int32)"]},{"name":"data","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的数据","txtValue":null,"enum":null,"id":"param8","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]},{"name":"message","ignoreFilterName":null,"require":false,"type":"string","in":null,"schema":false,"schemaValue":null,"value":null,"validateStatus":false,"validateInstance":null,"def":null,"description":"返回的信息","txtValue":null,"enum":null,"id":"param9","pid":"-1","level":1,"show":true,"readOnly":false,"example":null,"childrenTypes":[],"children":null,"parentTypes":[]}]}}],"hasNew":true,"hasChanged":false}]};
//console(datas);
return datas;
}
function main(){
//当前接口json数据
var d=getData();
//请求参数table-header
const requestcolumns = [
{
title: "参数名称",
dataIndex: "name",
width: "30%"
},
{
title: "参数说明",
dataIndex: "description",
width: "25%"
},
{
title: "请求类型",
dataIndex: "in",
scopedSlots: { customRender: "typeTemplate" }
},
{
title: "是否必须",
dataIndex: "require",
scopedSlots: { customRender: "requireTemplate" }
},
{
title: "数据类型",
dataIndex: "type",
scopedSlots: { customRender: "datatypeTemplate" }
},
{
title: "schema",
dataIndex: "schemaValue",
width: "15%"
}
];
//响应状态table-header
const responseStatuscolumns = [
{
title: "状态码",
dataIndex: "code",
width: "20%"
},
{
title: "说明",
dataIndex: "description",
width: "55%",
scopedSlots: { customRender: "descriptionTemplate" }
},
{
title: "schema",
dataIndex: "schema"
}
];
//响应头-header
const responseHeaderColumns = [
{
title: "参数名称",
dataIndex: "name",
width: "30%"
},
{
title: "参数说明",
dataIndex: "description",
width: "55%"
},
{
title: "数据类型",
dataIndex: "type"
}
];
const responseParametersColumns = [
{
title: "参数名称",
dataIndex: "name",
width: "35%"
},
{
title: "参数说明",
dataIndex: "description",
width: "40%"
},
{
title: "类型",
dataIndex: "type"
},
{
title: "schema",
dataIndex: "schemaValue",
width: "15%"
}
];
//dataType组件
var dataType={
name: "DataType",
props: {
text: {
type: String,
required: true
},
record: {
type: Object,
required: true
}
},
data:function(){
return {
validators: []
}
},
created() {
this.intiValidator();
},
methods: {
intiValidator() {
var that = this;
const record = this.record;
if (record.validateInstance != null) {
var len = that.getJsonKeyLength(record.validateInstance);
var _size = 0;
for (var k in record.validateInstance) {
var str = k + ":" + record.validateInstance[k];
that.validators.push({ key: k, val: str });
}
}
},
getJsonKeyLength(json) {
var size = 0;
if (json != null) {
for (var key in json) {
if (json.hasOwnProperty(key)) size++;
}
}
return size;
}
},
template:'<div><span v-if="!record.validateStatus">{{text}}</span><span v-else class="knife4j-request-validate-jsr"><a-tooltip placement="right"><template slot="title"><div v-for="pt in validators" :key="pt.key">{{pt.val}}</div></template>{{text}}</a-tooltip></span></div>'
}
var data={
tags:d.tags,
instance:d.instance,
columns: requestcolumns,
responseHeaderColumns: responseHeaderColumns,
responseStatuscolumns: responseStatuscolumns,
responseParametersColumns: responseParametersColumns,
expanRows: true,
//接收一个响应信息对象,遍历得到树形结构的值
multipCode: false,
multipCodeDatas: [],
multipData: {},
page: false,
hideShow:true
}
new Vue({
el:"#knife4jDocument",
components:{
"DataType":dataType
},
data(){
return data
},
mounted(){
//初始化完成
//赋予点击事件;
document.getElementById("btnHide").addEventListener("click",function(){
//隐藏目录
var doc=document.getElementById("knife4jDoc");
var docGlobal=document.getElementById("knife4j-doc-m");
if(doc.style.display=="none"){
doc.style.display="";
document.getElementById("btnHide").innerHTML="隐 藏";
docGlobal.style.width="400px";
docGlobal.style.height="500px";
}else{
doc.style.display="none";
document.getElementById("btnHide").innerHTML="目 录";
docGlobal.style.width="52px";
docGlobal.style.height="35px";
}
})
},
created(){
},
methods:{
genUnionTableKey() {
var key="param"+new Date().getTime().toString() + Math.floor(Math.random() * 1000000).toString();
return key;
},
formaterJson(json) {
try {
if (typeof json != "string") {
json = JSON.stringify(json, undefined, 2);
}
json = json
.replace(/&/g, "&")
.replace(/</g, "<")
.replace(/>/g, ">");
return json.replace(
/("(\u[a-zA-Z0-9]{4}|\[^u]|[^\"])*"(s*:)?|(true|false|null)|-?d+(?:.d*)?(?:[eE][+-]?d+)?)/g,
function(match) {
var cls = "number";
if (/^"/.test(match)) {
if (/:$/.test(match)) {
cls = "key";
} else {
cls = "string";
}
} else if (/true|false/.test(match)) {
cls = "boolean";
} else if (/null/.test(match)) {
cls = "null";
}
return '<span class="' + cls + '">' + match + "</span>";
}
);
} catch (error) {
return json;
}
}
}
})
}
main();
</script>
</body>
</html>