chore: sync local updates
This commit is contained in:
4
api-docs/infogenie-api-apifox/.gitignore
vendored
Normal file
4
api-docs/infogenie-api-apifox/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
node_modules
|
||||
.git
|
||||
apifox.private.*
|
||||
.apifox
|
||||
1
api-docs/infogenie-api-apifox/AI 模型应用/apifox.folder.json
Normal file
1
api-docs/infogenie-api-apifox/AI 模型应用/apifox.folder.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,26 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/chat/stream"
|
||||
name: Chat 流式 SSE
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
- name: Accept
|
||||
value: text/event-stream
|
||||
- name: Cache-Control
|
||||
value: no-cache
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "写一首四句短诗。"
|
||||
}
|
||||
],
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-chat"
|
||||
}
|
||||
22
api-docs/infogenie-api-apifox/AI 模型应用/对话/Chat 非流式.http.yaml
Normal file
22
api-docs/infogenie-api-apifox/AI 模型应用/对话/Chat 非流式.http.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/chat"
|
||||
name: Chat 非流式
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "用一句话介绍你自己。"
|
||||
}
|
||||
],
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-chat"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,16 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/linux-command"
|
||||
name: Linux 命令建议
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"task_description": "查找当前目录下大于 10MB 的文件",
|
||||
"difficulty_level": "beginner"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/markdown_formatting"
|
||||
name: Markdown 排版
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"article_text": "第一段内容\n\n第二段内容",
|
||||
"emoji_style": "balanced",
|
||||
"markdown_option": "standard"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
16
api-docs/infogenie-api-apifox/AI 模型应用/应用/亲属称呼计算.http.yaml
Normal file
16
api-docs/infogenie-api-apifox/AI 模型应用/应用/亲属称呼计算.http.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/kinship-calculator"
|
||||
name: 亲属称呼计算
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"relation_chain": "我妈妈的姐姐的儿子",
|
||||
"dialects": ["粤语", "闽南语"]
|
||||
}
|
||||
16
api-docs/infogenie-api-apifox/AI 模型应用/应用/变量命名建议.http.yaml
Normal file
16
api-docs/infogenie-api-apifox/AI 模型应用/应用/变量命名建议.http.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/variable-naming"
|
||||
name: 变量命名建议
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"description": "存储用户最近一次登录时间的字段",
|
||||
"language": "javascript"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/aimodelapp/models"
|
||||
name: 可用模型列表
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
16
api-docs/infogenie-api-apifox/AI 模型应用/应用/多语言翻译.http.yaml
Normal file
16
api-docs/infogenie-api-apifox/AI 模型应用/应用/多语言翻译.http.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/translation"
|
||||
name: 多语言翻译
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"source_text": "Hello, world!",
|
||||
"target_language": "zh-CN"
|
||||
}
|
||||
15
api-docs/infogenie-api-apifox/AI 模型应用/应用/姓名分析.http.yaml
Normal file
15
api-docs/infogenie-api-apifox/AI 模型应用/应用/姓名分析.http.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/name-analysis"
|
||||
name: 姓名分析
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"name": "张晨曦"
|
||||
}
|
||||
17
api-docs/infogenie-api-apifox/AI 模型应用/应用/现代文转文言.http.yaml
Normal file
17
api-docs/infogenie-api-apifox/AI 模型应用/应用/现代文转文言.http.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/classical_conversion"
|
||||
name: 现代文转文言
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"modern_text": "今天天气很好,我们去公园散步。",
|
||||
"style": "古雅",
|
||||
"article_type": "散文"
|
||||
}
|
||||
16
api-docs/infogenie-api-apifox/AI 模型应用/应用/表情符号生成.http.yaml
Normal file
16
api-docs/infogenie-api-apifox/AI 模型应用/应用/表情符号生成.http.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/expression-maker"
|
||||
name: 表情符号生成
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"text": "今天答辩顺利通过了!",
|
||||
"style": "mixed"
|
||||
}
|
||||
17
api-docs/infogenie-api-apifox/AI 模型应用/应用/诗歌生成.http.yaml
Normal file
17
api-docs/infogenie-api-apifox/AI 模型应用/应用/诗歌生成.http.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/aimodelapp/poetry"
|
||||
name: 诗歌生成
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"theme": "春雨与江南",
|
||||
"style": "现代诗",
|
||||
"mood": "宁静"
|
||||
}
|
||||
12
api-docs/infogenie-api-apifox/apifox.env.json
Normal file
12
api-docs/infogenie-api-apifox/apifox.env.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"Local": {
|
||||
"baseUrl": "http://127.0.0.1:5002",
|
||||
"bearerToken": "",
|
||||
"siteAdminToken": ""
|
||||
},
|
||||
"Production": {
|
||||
"baseUrl": "https://infogenie.api.shumengya.top",
|
||||
"bearerToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50Ijoic2h1bWVuZ3lhIiwiZXBvY2giOjAsImlzcyI6InNwcm91dGdhdGUiLCJzdWIiOiJzaHVtZW5neWEiLCJleHAiOjE3NzcyMDgxODIsImlhdCI6MTc3NjYwMzM4Mn0.VffffNCIWkp7X0GHo2xKkVFxTyEHdEXHWKu6UZF1xfM",
|
||||
"siteAdminToken": "shumengya520"
|
||||
}
|
||||
}
|
||||
7
api-docs/infogenie-api-apifox/apifox.meta.json
Normal file
7
api-docs/infogenie-api-apifox/apifox.meta.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "infogenie-api",
|
||||
"description": "万象口袋(InfoGenie)Go 后端 API(infogenie-backend-go)。\n\n【环境】apifox.env.json 仅含 Local(APP_PORT 默认 5002)与 Production。在 Apifox 选中环境后调试。\n\n【变量】\n• bearerToken:萌芽认证中心 JWT(前端 localStorage token 或登录接口返回;需登录的接口已写 Authorization: Bearer {{bearerToken}})。\n• siteAdminToken:与后端 INFOGENIE_SITE_ADMIN_TOKEN 一致,管理端 GET/PUT /api/admin/site/* 使用请求头 X-Site-Admin-Token: {{siteAdminToken}}。\n\n【安全】勿将真实 token 提交到 Git;若曾把 JWT 写入仓库请尽快在认证中心作废并重新登录。\n\n【根路径】GET / 返回服务说明 JSON;详细健康与依赖探测见 GET /api/health。",
|
||||
"type": "collection",
|
||||
"ignore": []
|
||||
}
|
||||
1
api-docs/infogenie-api-apifox/核心/apifox.folder.json
Normal file
1
api-docs/infogenie-api-apifox/核心/apifox.folder.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
3
api-docs/infogenie-api-apifox/核心/健康检查.http.yaml
Normal file
3
api-docs/infogenie-api-apifox/核心/健康检查.http.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/health"
|
||||
name: 健康检查
|
||||
3
api-docs/infogenie-api-apifox/核心/服务信息.http.yaml
Normal file
3
api-docs/infogenie-api-apifox/核心/服务信息.http.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/"
|
||||
name: 服务信息
|
||||
1
api-docs/infogenie-api-apifox/用户/apifox.folder.json
Normal file
1
api-docs/infogenie-api-apifox/用户/apifox.folder.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
7
api-docs/infogenie-api-apifox/用户/用户资料.http.yaml
Normal file
7
api-docs/infogenie-api-apifox/用户/用户资料.http.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/user/profile"
|
||||
name: 用户资料
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
3
api-docs/infogenie-api-apifox/站点/60s 上游节点.http.yaml
Normal file
3
api-docs/infogenie-api-apifox/站点/60s 上游节点.http.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/site/60s-source"
|
||||
name: 60s 上游节点
|
||||
3
api-docs/infogenie-api-apifox/站点/60s 隐藏功能列表.http.yaml
Normal file
3
api-docs/infogenie-api-apifox/站点/60s 隐藏功能列表.http.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/site/60s-disabled"
|
||||
name: 60s 隐藏功能列表
|
||||
3
api-docs/infogenie-api-apifox/站点/AI 应用隐藏列表.http.yaml
Normal file
3
api-docs/infogenie-api-apifox/站点/AI 应用隐藏列表.http.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/site/ai-model-disabled"
|
||||
name: AI 应用隐藏列表
|
||||
1
api-docs/infogenie-api-apifox/站点/apifox.folder.json
Normal file
1
api-docs/infogenie-api-apifox/站点/apifox.folder.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
14
api-docs/infogenie-api-apifox/站点/功能卡片点击 +1.http.yaml
Normal file
14
api-docs/infogenie-api-apifox/站点/功能卡片点击 +1.http.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
method: post
|
||||
url: "{{baseUrl}}/api/site/feature-card-clicks/increment"
|
||||
name: 功能卡片点击 +1
|
||||
parameters:
|
||||
header:
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"section": "60sapi",
|
||||
"item_id": "example-item-id"
|
||||
}
|
||||
3
api-docs/infogenie-api-apifox/站点/功能卡片点击统计.http.yaml
Normal file
3
api-docs/infogenie-api-apifox/站点/功能卡片点击统计.http.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/site/feature-card-clicks?section=60sapi"
|
||||
name: 功能卡片点击统计
|
||||
1
api-docs/infogenie-api-apifox/站点管理/apifox.folder.json
Normal file
1
api-docs/infogenie-api-apifox/站点管理/apifox.folder.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
15
api-docs/infogenie-api-apifox/站点管理/写入 60s 隐藏列表.http.yaml
Normal file
15
api-docs/infogenie-api-apifox/站点管理/写入 60s 隐藏列表.http.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
method: put
|
||||
url: "{{baseUrl}}/api/admin/site/60s-disabled"
|
||||
name: 写入 60s 隐藏列表
|
||||
parameters:
|
||||
header:
|
||||
- name: X-Site-Admin-Token
|
||||
value: "{{siteAdminToken}}"
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"disabled": []
|
||||
}
|
||||
15
api-docs/infogenie-api-apifox/站点管理/写入 AI 应用隐藏列表.http.yaml
Normal file
15
api-docs/infogenie-api-apifox/站点管理/写入 AI 应用隐藏列表.http.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
method: put
|
||||
url: "{{baseUrl}}/api/admin/site/ai-model-disabled"
|
||||
name: 写入 AI 应用隐藏列表
|
||||
parameters:
|
||||
header:
|
||||
- name: X-Site-Admin-Token
|
||||
value: "{{siteAdminToken}}"
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"disabled": []
|
||||
}
|
||||
18
api-docs/infogenie-api-apifox/站点管理/写入 AI 运行时配置.http.yaml
Normal file
18
api-docs/infogenie-api-apifox/站点管理/写入 AI 运行时配置.http.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
method: put
|
||||
url: "{{baseUrl}}/api/admin/site/ai-runtime"
|
||||
name: 写入 AI 运行时配置
|
||||
parameters:
|
||||
header:
|
||||
- name: X-Site-Admin-Token
|
||||
value: "{{siteAdminToken}}"
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"api_base": "",
|
||||
"api_key": "",
|
||||
"default_model": "",
|
||||
"default_provider": "deepseek"
|
||||
}
|
||||
15
api-docs/infogenie-api-apifox/站点管理/切换 60s 上游节点.http.yaml
Normal file
15
api-docs/infogenie-api-apifox/站点管理/切换 60s 上游节点.http.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
method: put
|
||||
url: "{{baseUrl}}/api/admin/site/60s-source"
|
||||
name: 切换 60s 上游节点
|
||||
parameters:
|
||||
header:
|
||||
- name: X-Site-Admin-Token
|
||||
value: "{{siteAdminToken}}"
|
||||
- name: Content-Type
|
||||
value: application/json
|
||||
requestBody:
|
||||
type: application/json
|
||||
data: |-
|
||||
{
|
||||
"source_id": "self"
|
||||
}
|
||||
7
api-docs/infogenie-api-apifox/站点管理/诊断信息.http.yaml
Normal file
7
api-docs/infogenie-api-apifox/站点管理/诊断信息.http.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/admin/site/diagnostics"
|
||||
name: 诊断信息
|
||||
parameters:
|
||||
header:
|
||||
- name: X-Site-Admin-Token
|
||||
value: "{{siteAdminToken}}"
|
||||
7
api-docs/infogenie-api-apifox/站点管理/读取 AI 运行时配置.http.yaml
Normal file
7
api-docs/infogenie-api-apifox/站点管理/读取 AI 运行时配置.http.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/admin/site/ai-runtime"
|
||||
name: 读取 AI 运行时配置
|
||||
parameters:
|
||||
header:
|
||||
- name: X-Site-Admin-Token
|
||||
value: "{{siteAdminToken}}"
|
||||
1
api-docs/infogenie-api-apifox/认证/apifox.folder.json
Normal file
1
api-docs/infogenie-api-apifox/认证/apifox.folder.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
8
api-docs/infogenie-api-apifox/认证/登录态检查.http.yaml
Normal file
8
api-docs/infogenie-api-apifox/认证/登录态检查.http.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/auth/check"
|
||||
name: 登录态检查
|
||||
description: 携带 JWT;后端向认证中心校验,与前端会话一致。
|
||||
parameters:
|
||||
header:
|
||||
- name: Authorization
|
||||
value: Bearer {{bearerToken}}
|
||||
4
api-docs/infogenie-api-apifox/认证/登录态检查(匿名).http.yaml
Normal file
4
api-docs/infogenie-api-apifox/认证/登录态检查(匿名).http.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
method: get
|
||||
url: "{{baseUrl}}/api/auth/check"
|
||||
name: 登录态检查(无 Token)
|
||||
description: 可选;不带 Authorization 时由 OptionalJWTAuth 放行,用于对比未登录响应。
|
||||
659
api-docs/infogenie-api.json
Normal file
659
api-docs/infogenie-api.json
Normal file
@@ -0,0 +1,659 @@
|
||||
{
|
||||
"info": {
|
||||
"_postman_id": "9e4d5b21-ac5f-5d32-b8e2-infogenie01",
|
||||
"name": "infogenie-api",
|
||||
"description": "万象口袋(InfoGenie)后端 API 合集:健康检查、认证与用户、站点配置、管理端与 AI 应用。\n集合变量仅含 baseUrl(生产默认)。请在运行环境(如 Apifox「环境」)中配置 bearerToken(萌芽 JWT)与 siteAdminToken(站点管理口令),勿在集合里重复定义同名变量,以免空值覆盖环境。\n需登录的接口已显式携带 Authorization: Bearer {{bearerToken}}。",
|
||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
||||
},
|
||||
"variable": [
|
||||
{
|
||||
"key": "baseUrl",
|
||||
"value": "https://infogenie.api.shumengya.top"
|
||||
},
|
||||
{
|
||||
"key": "bearerToken",
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"item": [
|
||||
{
|
||||
"name": "core",
|
||||
"description": "服务根路径与健康检查。",
|
||||
"item": [
|
||||
{
|
||||
"name": "服务信息",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": "{{baseUrl}}/",
|
||||
"description": "返回服务说明、版本与主要 API 路径摘要。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "健康检查",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": "{{baseUrl}}/api/health",
|
||||
"description": "数据库、Redis、60s 上游轻量探测与整体运行状态。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "auth",
|
||||
"description": "登录态检测(可选 Token)。",
|
||||
"item": [
|
||||
{
|
||||
"name": "登录态检查",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"url": "{{baseUrl}}/api/auth/check",
|
||||
"description": "OptionalJWT:填写 bearerToken 可校验登录态;留空则返回 logged_in: false。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "user",
|
||||
"description": "已登录用户资料(需萌芽认证 Token)。",
|
||||
"item": [
|
||||
{
|
||||
"name": "用户资料",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"url": "{{baseUrl}}/api/user/profile",
|
||||
"description": "返回账号、昵称、邮箱、头像、等级、萌币与签到信息。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "site",
|
||||
"description": "站点公开配置与功能卡片统计(无需登录)。",
|
||||
"item": [
|
||||
{
|
||||
"name": "60s 隐藏功能列表",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": "{{baseUrl}}/api/site/60s-disabled",
|
||||
"description": "当前在前端隐藏的 60s 功能 id 列表。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "60s 上游节点",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": "{{baseUrl}}/api/site/60s-source",
|
||||
"description": "当前站点使用的 60s API 上游 base_url 与标签。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "AI 应用隐藏列表",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": "{{baseUrl}}/api/site/ai-model-disabled",
|
||||
"description": "当前隐藏的 AI 应用 id 列表。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "功能卡片点击统计",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": "{{baseUrl}}/api/site/feature-card-clicks?section=60sapi",
|
||||
"description": "查询某板块下各 item 点击次数。section:60sapi | smallgame | toolbox | aimodel。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "功能卡片点击 +1",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"section\": \"60sapi\",\n \"item_id\": \"example-item-id\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/site/feature-card-clicks/increment",
|
||||
"description": "记录一次卡片点击并返回最新计数。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "admin-site",
|
||||
"description": "站点管理(需请求头 X-Site-Admin-Token,与 INFOGENIE_SITE_ADMIN_TOKEN 一致)。",
|
||||
"item": [
|
||||
{
|
||||
"name": "写入 60s 隐藏列表",
|
||||
"request": {
|
||||
"method": "PUT",
|
||||
"header": [
|
||||
{
|
||||
"key": "X-Site-Admin-Token",
|
||||
"value": "{{siteAdminToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"disabled\": []\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/admin/site/60s-disabled",
|
||||
"description": "全量替换隐藏的 60s 功能 id 列表。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "切换 60s 上游节点",
|
||||
"request": {
|
||||
"method": "PUT",
|
||||
"header": [
|
||||
{
|
||||
"key": "X-Site-Admin-Token",
|
||||
"value": "{{siteAdminToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"source_id\": \"self\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/admin/site/60s-source",
|
||||
"description": "source_id:self(萌芽节点)或 official(官方节点)。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "写入 AI 应用隐藏列表",
|
||||
"request": {
|
||||
"method": "PUT",
|
||||
"header": [
|
||||
{
|
||||
"key": "X-Site-Admin-Token",
|
||||
"value": "{{siteAdminToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"disabled\": []\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/admin/site/ai-model-disabled",
|
||||
"description": "全量替换隐藏的 AI 应用 id 列表。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "读取 AI 运行时配置",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "X-Site-Admin-Token",
|
||||
"value": "{{siteAdminToken}}",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"url": "{{baseUrl}}/api/admin/site/ai-runtime",
|
||||
"description": "读取数据库中的 AI 上游地址与密钥脱敏信息。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "写入 AI 运行时配置",
|
||||
"request": {
|
||||
"method": "PUT",
|
||||
"header": [
|
||||
{
|
||||
"key": "X-Site-Admin-Token",
|
||||
"value": "{{siteAdminToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"api_base\": \"\",\n \"api_key\": \"\",\n \"default_model\": \"\",\n \"default_provider\": \"deepseek\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/admin/site/ai-runtime",
|
||||
"description": "api_key 留空或不传则保留原密钥;勿将脱敏后的 **** 当作新密钥提交。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "诊断信息",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "X-Site-Admin-Token",
|
||||
"value": "{{siteAdminToken}}",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"url": "{{baseUrl}}/api/admin/site/diagnostics",
|
||||
"description": "连接配置摘要(不含密码/密钥明文)。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "aimodel",
|
||||
"description": "AI 模型应用(需萌芽认证 Token)。",
|
||||
"item": [
|
||||
{
|
||||
"name": "对话",
|
||||
"item": [
|
||||
{
|
||||
"name": "Chat 非流式",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"用一句话介绍你自己。\"\n }\n ],\n \"provider\": \"deepseek\",\n \"model\": \"deepseek-chat\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/chat",
|
||||
"description": "OpenAI 风格 messages;provider/model 须在服务端白名单内。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Chat 流式 SSE",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Accept",
|
||||
"value": "text/event-stream",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"写一首四句短诗。\"\n }\n ],\n \"provider\": \"deepseek\",\n \"model\": \"deepseek-chat\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/chat/stream",
|
||||
"description": "返回 text/event-stream(SSE);客户端需按流读取。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "应用",
|
||||
"item": [
|
||||
{
|
||||
"name": "姓名分析",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"name\": \"张晨曦\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/name-analysis",
|
||||
"description": "姓名学与文化含义分析。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "变量命名建议",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"description\": \"存储用户最近一次登录时间的字段\",\n \"language\": \"javascript\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/variable-naming",
|
||||
"description": "按多种命名风格生成变量名建议。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "诗歌生成",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"theme\": \"春雨与江南\",\n \"style\": \"现代诗\",\n \"mood\": \"宁静\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/poetry",
|
||||
"description": "按主题、风格、情感基调作诗。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "多语言翻译",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"source_text\": \"Hello, world!\",\n \"target_language\": \"zh-CN\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/translation",
|
||||
"description": "翻译为指定目标语言(JSON 结构化结果)。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "现代文转文言",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"modern_text\": \"今天天气很好,我们去公园散步。\",\n \"style\": \"古雅\",\n \"article_type\": \"散文\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/classical_conversion",
|
||||
"description": "现代文转文言文,返回 JSON 结构。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "表情符号生成",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"text\": \"今天答辩顺利通过了!\",\n \"style\": \"mixed\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/expression-maker",
|
||||
"description": "根据文案生成 emoji/颜文字等建议;style 如 mixed、emoji、kaomoji 等。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Linux 命令建议",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"task_description\": \"查找当前目录下大于 10MB 的文件\",\n \"difficulty_level\": \"beginner\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/linux-command",
|
||||
"description": "根据任务描述生成命令与安全提示等 JSON。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown 排版",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"article_text\": \"第一段内容\\n\\n第二段内容\",\n \"emoji_style\": \"balanced\",\n \"markdown_option\": \"standard\"\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/markdown_formatting",
|
||||
"description": "在不改写原文的前提下输出结构化 Markdown。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "亲属称呼计算",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"relation_chain\": \"我妈妈的姐姐的儿子\",\n \"dialects\": [\"粤语\", \"闽南语\"]\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": "{{baseUrl}}/api/aimodelapp/kinship-calculator",
|
||||
"description": "解析关系链,给出普通话及方言称呼 JSON。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "可用模型列表",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [
|
||||
{
|
||||
"key": "Authorization",
|
||||
"value": "Bearer {{bearerToken}}",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"url": "{{baseUrl}}/api/aimodelapp/models",
|
||||
"description": "返回服务端允许的 provider 与 model 白名单。"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user