Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 110 additions & 3 deletions backend/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4847,7 +4847,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "调用上游 models 接口,仅返回可导入预览,不直接落库",
"description": "调用上游 models 接口,返回可导入模型与目录变更预览,不直接落库",
"consumes": [
"application/json"
],
Expand Down Expand Up @@ -4908,7 +4908,7 @@ const docTemplate = `{
"BearerAuth": []
}
],
"description": "调用上游 models 接口写入上游真实模型清单,不自动绑定平台模型",
"description": "调用上游 models 接口获取完整目录,原子更新远端管理模型可用状态,不删除平台模型或路由配置",
"consumes": [
"application/json"
],
Expand All @@ -4926,6 +4926,18 @@ const docTemplate = `{
"name": "id",
"in": "path",
"required": true
},
{
"type": "boolean",
"description": "确认允许空模型目录对账",
"name": "allow_empty",
"in": "query"
},
{
"type": "string",
"description": "用户确认的远端目录快照标识",
"name": "expected_snapshot",
"in": "query"
}
],
"responses": {
Expand All @@ -4947,6 +4959,12 @@ const docTemplate = `{
"$ref": "#/definitions/ChannelErrorDoc"
}
},
"409": {
"description": "Conflict",
"schema": {
"$ref": "#/definitions/ChannelErrorDoc"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
Expand Down Expand Up @@ -25162,9 +25180,14 @@ const docTemplate = `{
"createdUpstreamModels",
"existingUpstreamModels",
"inactivatedModels",
"protectedUpstreamModels",
"reactivatedModels",
"skippedUpstreamModels",
"snapshotID",
"syncedModels",
"totalUpstream"
"totalUpstream",
"unchangedUpstreamModels",
"updatedUpstreamModels"
],
"properties": {
"createdUpstreamModels": {
Expand All @@ -25176,9 +25199,18 @@ const docTemplate = `{
"inactivatedModels": {
"type": "integer"
},
"protectedUpstreamModels": {
"type": "integer"
},
"reactivatedModels": {
"type": "integer"
},
"skippedUpstreamModels": {
"type": "integer"
},
"snapshotID": {
"type": "string"
},
"syncedModels": {
"type": "array",
"items": {
Expand All @@ -25187,6 +25219,12 @@ const docTemplate = `{
},
"totalUpstream": {
"type": "integer"
},
"unchangedUpstreamModels": {
"type": "integer"
},
"updatedUpstreamModels": {
"type": "integer"
}
}
},
Expand Down Expand Up @@ -26623,6 +26661,55 @@ const docTemplate = `{
}
}
},
"UpstreamModelSyncPlanResponse": {
"type": "object",
"required": [
"addedModels",
"inactivatedModels",
"protectedModels",
"reactivatedModels",
"unchangedModels",
"updatedModels"
],
"properties": {
"addedModels": {
"type": "array",
"items": {
"type": "string"
}
},
"inactivatedModels": {
"type": "array",
"items": {
"type": "string"
}
},
"protectedModels": {
"type": "array",
"items": {
"type": "string"
}
},
"reactivatedModels": {
"type": "array",
"items": {
"type": "string"
}
},
"unchangedModels": {
"type": "array",
"items": {
"type": "string"
}
},
"updatedModels": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"UpstreamRemoteModelResponse": {
"type": "object",
"required": [
Expand Down Expand Up @@ -26680,6 +26767,8 @@ const docTemplate = `{
"type": "object",
"required": [
"items",
"snapshotID",
"syncPlan",
"total"
],
"properties": {
Expand All @@ -26689,6 +26778,12 @@ const docTemplate = `{
"$ref": "#/definitions/UpstreamRemoteModelResponse"
}
},
"snapshotID": {
"type": "string"
},
"syncPlan": {
"$ref": "#/definitions/UpstreamModelSyncPlanResponse"
},
"total": {
"type": "integer"
}
Expand Down Expand Up @@ -26817,8 +26912,11 @@ const docTemplate = `{
"bindingCode",
"created",
"kindsJSON",
"protected",
"reactivated",
"status",
"suggestedProtocol",
"updated",
"upstreamModelName"
],
"properties": {
Expand All @@ -26831,12 +26929,21 @@ const docTemplate = `{
"kindsJSON": {
"type": "string"
},
"protected": {
"type": "boolean"
},
"reactivated": {
"type": "boolean"
},
"status": {
"type": "string"
},
"suggestedProtocol": {
"type": "string"
},
"updated": {
"type": "boolean"
},
"upstreamModelName": {
"type": "string"
}
Expand Down
Loading
Loading