MicroApp 微应用
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface MicroApp {
"concept": "MicroApp", // 产品概念
"framework": "qiankun" | "icestark", // 微前端框架
"name": string, // 微应用名称
"routePrefix": string, // 页面路径前缀
"proxyPrefix": string, // 接口和静态资源前缀
"loginUrl": string, // 登录页面地址
"noAuthUrl": string, // 无权限页面地址
"notFoundUrl": string, // 404页面地址
}
class MicroAppTreeNode {
ConceptEnum concept; // 产品概念
FrameworkEnum framework; // 微前端框架
String name; // 微应用名称
String routePrefix; // 页面路径前缀
String proxyPrefix; // 接口和静态资源前缀
String loginUrl; // 登录页面地址
String noAuthUrl; // 无权限页面地址
String notFoundUrl; // 404页面地址
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/MicroApp",
"definitions": {
"MicroApp": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "MicroApp"
},
"framework": {
"type": "string",
"enum": [
"qiankun",
"icestark"
]
},
"name": {
"type": "string"
},
"routePrefix": {
"type": "string"
},
"proxyPrefix": {
"type": "string"
},
"loginUrl": {
"type": "string"
},
"noAuthUrl": {
"type": "string"
},
"notFoundUrl": {
"type": "string"
}
},
"required": [
"concept",
"framework",
"name",
"routePrefix",
"proxyPrefix",
"loginUrl",
"noAuthUrl",
"notFoundUrl"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "MicroApp",
"framework": null,
"name": null,
"routePrefix": null,
"proxyPrefix": null,
"loginUrl": null,
"noAuthUrl": null,
"notFoundUrl": null
}
concept: MicroApp
framework: null
name: null
routePrefix: null
proxyPrefix: null
loginUrl: null
noAuthUrl: null
notFoundUrl: null