dapi/wwwroot/update_apikey.ui
yumoqing c210f30322 feat: 客户API Key管理 - 创建/更新/复制/删除功能
1. json/downapp.json: 添加更新和删除工具栏按钮,移除noedit限制
2. wwwroot/update_apikey.dspy: 查询并返回预填充的更新表单
3. wwwroot/do_update_apikey.dspy: 处理更新表单提交
4. wwwroot/delete_apikey.dspy: 删除API Key及关联应用
5. wwwroot/apikey_manage.ui: 独立API Key管理页面
6. scripts/load_path.py: 使用通配符%/dapi/%注册所有路径
2026-05-31 12:09:45 +08:00

50 lines
905 B
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"widgettype":"Form",
"options":{
"title":"更新API Key",
"description":"更新应用信息和API Key配置",
"fields":[
{
"name":"id",
"label":"应用ID",
"uitype":"str",
"readonly": true
},
{
"name":"appname",
"label":"应用名称",
"uitype":"str",
"required": true
},
{
"name":"description",
"label":"应用描述",
"uitype":"text"
},
{
"name":"allowedips",
"label":"允许的IP集",
"uitype":"str",
"placeholder": "多个IP用逗号分隔"
},
{
"name":"regenerate_apikey",
"label":"重新生成API Key",
"uitype":"checkbox",
"description": "勾选后将重新生成API Key原Key将失效"
}
]
},
"binds":[
{
"wid":"self",
"event":"submit",
"actiontype":"urlwidget",
"target":"self",
"options":{
"url":"{{entire_url('./update_apikey.dspy')}}"
}
}
]
}