Skip to content

Commit

Permalink
gen
Browse files Browse the repository at this point in the history
  • Loading branch information
smgano committed May 18, 2024
1 parent a2ac9ab commit ff241c8
Show file tree
Hide file tree
Showing 34 changed files with 425 additions and 1,015 deletions.
44 changes: 7 additions & 37 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,52 +489,22 @@ const docTemplate = `{
"internal_api_dto.ExamplePostRequest": {
"type": "object",
"required": [
"Title",
"app_id",
"c_ver",
"cmd_id",
"fid",
"lang",
"question",
"token"
"question"
],
"properties": {
"app_id": {
"description": "AppID 应用id",
"type": "string"
},
"c_ver": {
"description": "CVer 客户端协议版本号",
"type": "string"
},
"cmd_id": {
"description": "CmdId 功能类型枚举:\n1 AUTH鉴权;\n2 QA 问答;\n4 总结SUMMARY;\n5 KEYWORDS 关键词;\n6 CLASSIFICATION 文档分类;\n7 RENAME 重命名;\n8 mindmap 思维导图;",
"type": "integer",
"example": 1
},
"fid": {
"description": "Fid: 文档id",
"Title": {
"description": "标题",
"type": "string"
},
"ignore_feature_prompt": {
"description": "IgnoreFeaturePrompt 是否忽略功能检查 1 是; 0 否;",
"type": "integer"
},
"lang": {
"description": "Lang 语言",
"app_id": {
"description": "应用id",
"type": "string"
},
"question": {
"description": "Question 问题",
"type": "string"
},
"show_gpt_2": {
"description": "show_gpt_2",
"description": "问题",
"type": "string"
},
"token": {
"description": "Token 鉴权token",
"type": "string",
"example": "sdfsdsdfsd"
}
}
},
Expand Down
44 changes: 7 additions & 37 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -486,52 +486,22 @@
"internal_api_dto.ExamplePostRequest": {
"type": "object",
"required": [
"Title",
"app_id",
"c_ver",
"cmd_id",
"fid",
"lang",
"question",
"token"
"question"
],
"properties": {
"app_id": {
"description": "AppID 应用id",
"type": "string"
},
"c_ver": {
"description": "CVer 客户端协议版本号",
"type": "string"
},
"cmd_id": {
"description": "CmdId 功能类型枚举:\n1 AUTH鉴权;\n2 QA 问答;\n4 总结SUMMARY;\n5 KEYWORDS 关键词;\n6 CLASSIFICATION 文档分类;\n7 RENAME 重命名;\n8 mindmap 思维导图;",
"type": "integer",
"example": 1
},
"fid": {
"description": "Fid: 文档id",
"Title": {
"description": "标题",
"type": "string"
},
"ignore_feature_prompt": {
"description": "IgnoreFeaturePrompt 是否忽略功能检查 1 是; 0 否;",
"type": "integer"
},
"lang": {
"description": "Lang 语言",
"app_id": {
"description": "应用id",
"type": "string"
},
"question": {
"description": "Question 问题",
"type": "string"
},
"show_gpt_2": {
"description": "show_gpt_2",
"description": "问题",
"type": "string"
},
"token": {
"description": "Token 鉴权token",
"type": "string",
"example": "sdfsdsdfsd"
}
}
},
Expand Down
44 changes: 6 additions & 38 deletions api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,51 +96,19 @@ definitions:
type: object
internal_api_dto.ExamplePostRequest:
properties:
app_id:
description: AppID 应用id
type: string
c_ver:
description: CVer 客户端协议版本号
type: string
cmd_id:
description: |-
CmdId 功能类型枚举:
1 AUTH鉴权;
2 QA 问答;
4 总结SUMMARY;
5 KEYWORDS 关键词;
6 CLASSIFICATION 文档分类;
7 RENAME 重命名;
8 mindmap 思维导图;
example: 1
type: integer
fid:
description: Fid: 文档id
Title:
description: 标题
type: string
ignore_feature_prompt:
description: IgnoreFeaturePrompt 是否忽略功能检查 1 是; 0 否;
type: integer
lang:
description: Lang 语言
app_id:
description: 应用id
type: string
question:
description: Question 问题
type: string
show_gpt_2:
description: show_gpt_2
type: string
token:
description: Token 鉴权token
example: sdfsdsdfsd
description: 问题
type: string
required:
- Title
- app_id
- c_ver
- cmd_id
- fid
- lang
- question
- token
type: object
internal_api_dto.ExamplePostResponse:
properties:
Expand Down
38 changes: 6 additions & 32 deletions gen/go/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -954,46 +954,20 @@
}
};
defs["internal_api_dto.ExamplePostRequest"] = {
"required" : [ "app_id", "c_ver", "cmd_id", "fid", "lang", "question", "token" ],
"required" : [ "Title", "app_id", "question" ],
"type" : "object",
"properties" : {
"app_id" : {
"type" : "string",
"description" : "AppID 应用id"
},
"c_ver" : {
"type" : "string",
"description" : "CVer 客户端协议版本号"
},
"cmd_id" : {
"type" : "integer",
"description" : "CmdId 功能类型枚举:\n1 AUTH鉴权;\n2 QA 问答;\n4 总结SUMMARY;\n5 KEYWORDS 关键词;\n6 CLASSIFICATION 文档分类;\n7 RENAME 重命名;\n8 mindmap 思维导图;",
"example" : 1
},
"fid" : {
"Title" : {
"type" : "string",
"description" : "Fid: 文档id"
"description" : "标题"
},
"ignore_feature_prompt" : {
"type" : "integer",
"description" : "IgnoreFeaturePrompt 是否忽略功能检查 1 是; 0 否;"
},
"lang" : {
"app_id" : {
"type" : "string",
"description" : "Lang 语言"
"description" : "应用id"
},
"question" : {
"type" : "string",
"description" : "Question 问题"
},
"show_gpt_2" : {
"type" : "string",
"description" : "show_gpt_2"
},
"token" : {
"type" : "string",
"description" : "Token 鉴权token",
"example" : "sdfsdsdfsd"
"description" : "问题"
}
}
};
Expand Down
44 changes: 6 additions & 38 deletions gen/go/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -407,51 +407,19 @@ components:
type: object
internal_api_dto.ExamplePostRequest:
properties:
app_id:
description: AppID 应用id
type: string
c_ver:
description: CVer 客户端协议版本号
type: string
cmd_id:
description: |-
CmdId 功能类型枚举:
1 AUTH鉴权;
2 QA 问答;
4 总结SUMMARY;
5 KEYWORDS 关键词;
6 CLASSIFICATION 文档分类;
7 RENAME 重命名;
8 mindmap 思维导图;
example: 1
type: integer
fid:
description: Fid: 文档id
Title:
description: 标题
type: string
ignore_feature_prompt:
description: IgnoreFeaturePrompt 是否忽略功能检查 1 是; 0 否;
type: integer
lang:
description: Lang 语言
app_id:
description: 应用id
type: string
question:
description: Question 问题
type: string
show_gpt_2:
description: show_gpt_2
type: string
token:
description: Token 鉴权token
example: sdfsdsdfsd
description: 问题
type: string
required:
- Title
- app_id
- c_ver
- cmd_id
- fid
- lang
- question
- token
type: object
internal_api_dto.ExamplePostResponse:
example:
Expand Down
30 changes: 15 additions & 15 deletions gen/go/api_.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ff241c8

Please sign in to comment.