AuthLogic 鉴权逻辑
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface AuthLogic {
"concept": "AuthLogic" | "AuthLogicForCallInterface", // 产品概念
"isDefault": boolean, // 是否为默认鉴权逻辑
}
class AuthLogicTreeNode {
ConceptEnum concept; // 产品概念
boolean isDefault; // 是否为默认鉴权逻辑
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/AuthLogic",
"definitions": {
"AuthLogic": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"enum": [
"AuthLogic",
"AuthLogicForCallInterface"
]
},
"isDefault": {
"type": "boolean"
}
},
"required": [
"concept",
"isDefault"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "AuthLogic",
"isDefault": null
}
concept: AuthLogic
isDefault: null