Files
AIOA/deploy/compose/keycloak/realm-aioa.json
T
selfrelease 57c8a26147 feat: LLM多阶段交互式Schema生成 + UI布局优化
- AI Service: 多阶段对话模型(理解→澄清→生成→校验→确认),支持对话历史和当前Schema上下文
- Backend: 适配多阶段AI模型,Gateway/Service/Controller传递history和currentSchema
- Frontend: AiDesignerChat组件重写,支持阶段徽章、快速回复、Schema校验展示
- Frontend: 表单/流程设计器布局优化,AI助手和Schema预览作为独立列
- Frontend: 流程设计器元数据和模式选择器合并为一行
- Keycloak: 自定义登录主题(中文化)
- 修复CSS媒体查询括号平衡问题
2026-07-19 09:36:42 +08:00

129 lines
4.2 KiB
JSON

{
"realm": "aioa",
"enabled": true,
"displayName": "AIOA 智能办公自动化平台",
"registrationAllowed": false,
"resetPasswordAllowed": true,
"loginWithEmailAllowed": true,
"loginTheme": "aioa",
"internationalizationEnabled": true,
"defaultLocale": "zh_CN",
"supportedLocales": ["zh-CN", "zh_CN", "en", "en-US"],
"roles": {
"realm": [
{ "name": "employee", "description": "普通员工" },
{ "name": "department_manager", "description": "部门主管" },
{ "name": "oa_admin", "description": "OA 管理员" },
{ "name": "hr_reviewer", "description": "人力资源复核人" }
]
},
"clients": [
{
"clientId": "aioa-mobile",
"name": "AIOA Mobile",
"enabled": true,
"publicClient": true,
"standardFlowEnabled": true,
"directAccessGrantsEnabled": true,
"redirectUris": ["aioa://oauth/callback", "aioa://oauth/logout", "http://localhost:*"],
"webOrigins": ["+"],
"attributes": {
"pkce.code.challenge.method": "S256"
},
"protocolMappers": [
{
"name": "tenant-id",
"protocol": "openid-connect",
"protocolMapper": "oidc-usermodel-attribute-mapper",
"consentRequired": false,
"config": {
"user.attribute": "tenant_id",
"claim.name": "tenant_id",
"jsonType.label": "String",
"id.token.claim": "true",
"access.token.claim": "true",
"userinfo.token.claim": "true"
}
}
]
},
{
"clientId": "aioa-admin-web",
"name": "AIOA Admin Web",
"enabled": true,
"publicClient": true,
"standardFlowEnabled": true,
"directAccessGrantsEnabled": false,
"redirectUris": ["http://localhost:5173/*", "http://127.0.0.1:5173/*"],
"webOrigins": ["http://localhost:5173", "http://127.0.0.1:5173"],
"attributes": { "pkce.code.challenge.method": "S256" },
"protocolMappers": [
{
"name": "tenant-id",
"protocol": "openid-connect",
"protocolMapper": "oidc-usermodel-attribute-mapper",
"consentRequired": false,
"config": {
"user.attribute": "tenant_id",
"claim.name": "tenant_id",
"jsonType.label": "String",
"id.token.claim": "true",
"access.token.claim": "true",
"userinfo.token.claim": "true"
}
}
]
}
],
"users": [
{
"id": "10000000-0000-7000-8000-000000000001",
"username": "employee",
"enabled": true,
"emailVerified": true,
"firstName": "小明",
"lastName": "员工",
"email": "employee@example.local",
"attributes": { "tenant_id": ["00000000-0000-7000-8000-000000000001"] },
"credentials": [{ "type": "password", "value": "Employee123!", "temporary": false }],
"realmRoles": ["employee"]
},
{
"id": "10000000-0000-7000-8000-000000000002",
"username": "manager",
"enabled": true,
"emailVerified": true,
"firstName": "主管",
"lastName": "王",
"email": "manager@example.local",
"attributes": { "tenant_id": ["00000000-0000-7000-8000-000000000001"] },
"credentials": [{ "type": "password", "value": "Manager123!", "temporary": false }],
"realmRoles": ["employee", "department_manager"]
},
{
"id": "10000000-0000-7000-8000-000000000003",
"username": "admin",
"enabled": true,
"emailVerified": true,
"firstName": "管理员",
"lastName": "OA",
"email": "admin@example.local",
"attributes": { "tenant_id": ["00000000-0000-7000-8000-000000000001"] },
"credentials": [{ "type": "password", "value": "Admin123!", "temporary": false }],
"realmRoles": ["employee", "oa_admin"]
},
{
"id": "10000000-0000-7000-8000-000000000004",
"username": "hr",
"enabled": true,
"emailVerified": true,
"firstName": "人力",
"lastName": "HR",
"email": "hr@example.local",
"attributes": { "tenant_id": ["00000000-0000-7000-8000-000000000001"] },
"credentials": [{ "type": "password", "value": "HrReviewer123!", "temporary": false }],
"realmRoles": ["employee", "hr_reviewer"]
}
]
}