Skip to content

Commit ff241c8

Browse files
author
smgano
committed
gen
1 parent a2ac9ab commit ff241c8

34 files changed

+425
-1015
lines changed

api/swagger/docs.go

+7-37
Original file line numberDiff line numberDiff line change
@@ -489,52 +489,22 @@ const docTemplate = `{
489489
"internal_api_dto.ExamplePostRequest": {
490490
"type": "object",
491491
"required": [
492+
"Title",
492493
"app_id",
493-
"c_ver",
494-
"cmd_id",
495-
"fid",
496-
"lang",
497-
"question",
498-
"token"
494+
"question"
499495
],
500496
"properties": {
501-
"app_id": {
502-
"description": "AppID 应用id",
503-
"type": "string"
504-
},
505-
"c_ver": {
506-
"description": "CVer 客户端协议版本号",
507-
"type": "string"
508-
},
509-
"cmd_id": {
510-
"description": "CmdId 功能类型枚举:\n1 AUTH鉴权;\n2 QA 问答;\n4 总结SUMMARY;\n5 KEYWORDS 关键词;\n6 CLASSIFICATION 文档分类;\n7 RENAME 重命名;\n8 mindmap 思维导图;",
511-
"type": "integer",
512-
"example": 1
513-
},
514-
"fid": {
515-
"description": "Fid: 文档id",
497+
"Title": {
498+
"description": "标题",
516499
"type": "string"
517500
},
518-
"ignore_feature_prompt": {
519-
"description": "IgnoreFeaturePrompt 是否忽略功能检查 1 是; 0 否;",
520-
"type": "integer"
521-
},
522-
"lang": {
523-
"description": "Lang 语言",
501+
"app_id": {
502+
"description": "应用id",
524503
"type": "string"
525504
},
526505
"question": {
527-
"description": "Question 问题",
528-
"type": "string"
529-
},
530-
"show_gpt_2": {
531-
"description": "show_gpt_2",
506+
"description": "问题",
532507
"type": "string"
533-
},
534-
"token": {
535-
"description": "Token 鉴权token",
536-
"type": "string",
537-
"example": "sdfsdsdfsd"
538508
}
539509
}
540510
},

api/swagger/swagger.json

+7-37
Original file line numberDiff line numberDiff line change
@@ -486,52 +486,22 @@
486486
"internal_api_dto.ExamplePostRequest": {
487487
"type": "object",
488488
"required": [
489+
"Title",
489490
"app_id",
490-
"c_ver",
491-
"cmd_id",
492-
"fid",
493-
"lang",
494-
"question",
495-
"token"
491+
"question"
496492
],
497493
"properties": {
498-
"app_id": {
499-
"description": "AppID 应用id",
500-
"type": "string"
501-
},
502-
"c_ver": {
503-
"description": "CVer 客户端协议版本号",
504-
"type": "string"
505-
},
506-
"cmd_id": {
507-
"description": "CmdId 功能类型枚举:\n1 AUTH鉴权;\n2 QA 问答;\n4 总结SUMMARY;\n5 KEYWORDS 关键词;\n6 CLASSIFICATION 文档分类;\n7 RENAME 重命名;\n8 mindmap 思维导图;",
508-
"type": "integer",
509-
"example": 1
510-
},
511-
"fid": {
512-
"description": "Fid: 文档id",
494+
"Title": {
495+
"description": "标题",
513496
"type": "string"
514497
},
515-
"ignore_feature_prompt": {
516-
"description": "IgnoreFeaturePrompt 是否忽略功能检查 1 是; 0 否;",
517-
"type": "integer"
518-
},
519-
"lang": {
520-
"description": "Lang 语言",
498+
"app_id": {
499+
"description": "应用id",
521500
"type": "string"
522501
},
523502
"question": {
524-
"description": "Question 问题",
525-
"type": "string"
526-
},
527-
"show_gpt_2": {
528-
"description": "show_gpt_2",
503+
"description": "问题",
529504
"type": "string"
530-
},
531-
"token": {
532-
"description": "Token 鉴权token",
533-
"type": "string",
534-
"example": "sdfsdsdfsd"
535505
}
536506
}
537507
},

api/swagger/swagger.yaml

+6-38
Original file line numberDiff line numberDiff line change
@@ -96,51 +96,19 @@ definitions:
9696
type: object
9797
internal_api_dto.ExamplePostRequest:
9898
properties:
99-
app_id:
100-
description: AppID 应用id
101-
type: string
102-
c_ver:
103-
description: CVer 客户端协议版本号
104-
type: string
105-
cmd_id:
106-
description: |-
107-
CmdId 功能类型枚举:
108-
1 AUTH鉴权;
109-
2 QA 问答;
110-
4 总结SUMMARY;
111-
5 KEYWORDS 关键词;
112-
6 CLASSIFICATION 文档分类;
113-
7 RENAME 重命名;
114-
8 mindmap 思维导图;
115-
example: 1
116-
type: integer
117-
fid:
118-
description: Fid: 文档id
99+
Title:
100+
description: 标题
119101
type: string
120-
ignore_feature_prompt:
121-
description: IgnoreFeaturePrompt 是否忽略功能检查 1 是; 0 否;
122-
type: integer
123-
lang:
124-
description: Lang 语言
102+
app_id:
103+
description: 应用id
125104
type: string
126105
question:
127-
description: Question 问题
128-
type: string
129-
show_gpt_2:
130-
description: show_gpt_2
131-
type: string
132-
token:
133-
description: Token 鉴权token
134-
example: sdfsdsdfsd
106+
description: 问题
135107
type: string
136108
required:
109+
- Title
137110
- app_id
138-
- c_ver
139-
- cmd_id
140-
- fid
141-
- lang
142111
- question
143-
- token
144112
type: object
145113
internal_api_dto.ExamplePostResponse:
146114
properties:

gen/go/api.html

+6-32
Original file line numberDiff line numberDiff line change
@@ -954,46 +954,20 @@
954954
}
955955
};
956956
defs["internal_api_dto.ExamplePostRequest"] = {
957-
"required" : [ "app_id", "c_ver", "cmd_id", "fid", "lang", "question", "token" ],
957+
"required" : [ "Title", "app_id", "question" ],
958958
"type" : "object",
959959
"properties" : {
960-
"app_id" : {
961-
"type" : "string",
962-
"description" : "AppID 应用id"
963-
},
964-
"c_ver" : {
965-
"type" : "string",
966-
"description" : "CVer 客户端协议版本号"
967-
},
968-
"cmd_id" : {
969-
"type" : "integer",
970-
"description" : "CmdId 功能类型枚举:\n1 AUTH鉴权;\n2 QA 问答;\n4 总结SUMMARY;\n5 KEYWORDS 关键词;\n6 CLASSIFICATION 文档分类;\n7 RENAME 重命名;\n8 mindmap 思维导图;",
971-
"example" : 1
972-
},
973-
"fid" : {
960+
"Title" : {
974961
"type" : "string",
975-
"description" : "Fid: 文档id"
962+
"description" : "标题"
976963
},
977-
"ignore_feature_prompt" : {
978-
"type" : "integer",
979-
"description" : "IgnoreFeaturePrompt 是否忽略功能检查 1 是; 0 否;"
980-
},
981-
"lang" : {
964+
"app_id" : {
982965
"type" : "string",
983-
"description" : "Lang 语言"
966+
"description" : "应用id"
984967
},
985968
"question" : {
986969
"type" : "string",
987-
"description" : "Question 问题"
988-
},
989-
"show_gpt_2" : {
990-
"type" : "string",
991-
"description" : "show_gpt_2"
992-
},
993-
"token" : {
994-
"type" : "string",
995-
"description" : "Token 鉴权token",
996-
"example" : "sdfsdsdfsd"
970+
"description" : "问题"
997971
}
998972
}
999973
};

gen/go/api/openapi.yaml

+6-38
Original file line numberDiff line numberDiff line change
@@ -407,51 +407,19 @@ components:
407407
type: object
408408
internal_api_dto.ExamplePostRequest:
409409
properties:
410-
app_id:
411-
description: AppID 应用id
412-
type: string
413-
c_ver:
414-
description: CVer 客户端协议版本号
415-
type: string
416-
cmd_id:
417-
description: |-
418-
CmdId 功能类型枚举:
419-
1 AUTH鉴权;
420-
2 QA 问答;
421-
4 总结SUMMARY;
422-
5 KEYWORDS 关键词;
423-
6 CLASSIFICATION 文档分类;
424-
7 RENAME 重命名;
425-
8 mindmap 思维导图;
426-
example: 1
427-
type: integer
428-
fid:
429-
description: Fid: 文档id
410+
Title:
411+
description: 标题
430412
type: string
431-
ignore_feature_prompt:
432-
description: IgnoreFeaturePrompt 是否忽略功能检查 1 是; 0 否;
433-
type: integer
434-
lang:
435-
description: Lang 语言
413+
app_id:
414+
description: 应用id
436415
type: string
437416
question:
438-
description: Question 问题
439-
type: string
440-
show_gpt_2:
441-
description: show_gpt_2
442-
type: string
443-
token:
444-
description: Token 鉴权token
445-
example: sdfsdsdfsd
417+
description: 问题
446418
type: string
447419
required:
420+
- Title
448421
- app_id
449-
- c_ver
450-
- cmd_id
451-
- fid
452-
- lang
453422
- question
454-
- token
455423
type: object
456424
internal_api_dto.ExamplePostResponse:
457425
example:

gen/go/api_.go

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)