AuthInterface 接口
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface AuthInterface {
"concept": "AuthInterface", // 产品概念
"authLogic": string, // 关联的鉴权逻辑
}
class AuthInterfaceTreeNode {
ConceptEnum concept; // 产品概念
String authLogic; // 关联的鉴权逻辑
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/AuthInterface",
"definitions": {
"AuthInterface": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "AuthInterface"
},
"authLogic": {
"type": "string"
}
},
"required": [
"concept",
"authLogic"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "AuthInterface",
"authLogic": null
}
concept: AuthInterface
authLogic: null