Role 角色
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface Role {
"concept": "Role", // 产品概念
"name": string, // 角色名称
"uuid": string, // 唯一标识
"createdTime": string, // 创建时间
"description": string, // 角色描述
}
class RoleTreeNode {
ConceptEnum concept; // 产品概念
String name; // 角色名称
String uuid; // 唯一标识
String createdTime; // 创建时间
String description; // 角色描述
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Role",
"definitions": {
"Role": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "Role"
},
"name": {
"type": "string"
},
"uuid": {
"type": "string"
},
"createdTime": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"concept",
"name",
"uuid",
"createdTime",
"description"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "Role",
"name": "员工",
"createdTime": null,
"description": null
}
concept: Role
name: 员工
createdTime: null
description: null