Assignee 经办人
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface Assignee {
"concept": "Assignee", // 产品概念
"users": Array<string>, // 绑定用户
"dynamicUsers": Array<LogicItem>, // 动态用户
"roles": Array<string>, // 绑定角色
"dynamicRoles": Array<LogicItem>, // 动态角色
"logicUsers": Array<Logic>, // 逻辑用户
}
class AssigneeTreeNode {
ConceptEnum concept; // 产品概念
List<String> users; // 绑定用户
List<LogicItemTreeNode> dynamicUsers; // 动态用户
List<String> roles; // 绑定角色
List<LogicItemTreeNode> dynamicRoles; // 动态角色
List<LogicTreeNode> logicUsers; // 逻辑用户
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Assignee",
"definitions": {
"Assignee": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "Assignee"
},
"users": {
"type": "array",
"items": {
"type": "string"
}
},
"dynamicUsers": {
"type": "array",
"items": {
"$ref": "#/definitions/LogicItem"
}
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
},
"dynamicRoles": {
"type": "array",
"items": {
"$ref": "#/definitions/LogicItem"
}
},
"logicUsers": {
"type": "array",
"items": {
"$ref": "#/definitions/Logic"
}
}
},
"required": [
"concept",
"users",
"dynamicUsers",
"roles",
"dynamicRoles",
"logicUsers"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "Assignee",
"users": [],
"dynamicUsers": [],
"roles": [],
"dynamicRoles": [],
"logicUsers": []
}
concept: Assignee
users: []
dynamicUsers: []
roles: []
dynamicRoles: []
logicUsers: []