-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5914b5
commit bee8923
Showing
11 changed files
with
3,158 additions
and
3,135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
title: 底层基础对象 | ||
description: 底层基础对象定义了一些基础字段、操作按钮、权限,其它对象会继承这些属性配置。 | ||
--- | ||
|
||
- [base对象](#base对象) | ||
- [core对象](#core对象) | ||
|
||
## base对象 | ||
base对象是所有对象的基础对象,这意味着华炎魔方中所有的对象都是继承自该对象。 | ||
|
||
- 该对象中配置了一些基础的字段,比如创建人、创建时间、所有者、所属分部等,可以在继承自该对象的对象中改写或扩展这些字段的属性。 | ||
- 该对象中配置了一些基础的操作按钮,比如新建、编辑、删除等,可以在继承自该对象的对象中改写这些按钮的属性或者添加新的按钮。 | ||
- 该对象中配置了普通用户和管理员简档的对象权限,比如普通用户只能修改、删除属于自己的记录,而管理员可以修改、删除所有记录。 | ||
|
||
```yaml | ||
name: base | ||
hidden: true | ||
``` | ||
| 字段名 | 字段类型 | 字段含义 | | ||
|----|----|----| | ||
| owner | lookup | 所有者 | | ||
| space | text | 所属工作区 | | ||
| created | datetime | 创建时间 | | ||
| created_by | lookup | 创建人 | | ||
| modified | datetime | 修改时间 | | ||
| modified_by | lookup | 修改人 | | ||
| is_deleted | boolean | 已删除 | | ||
| deleted | datetime | 删除时间 | | ||
| deleted_by | lookup | 删除人 | | ||
| instances | grid | 申请单 | | ||
| instances.$._id | text | 申请单ID | | ||
| instances.$.state | text | 申请单状态 | | ||
| sharing | grid | 记录级权限 | | ||
| sharing.$ | object | 授权条件 | | ||
| sharing.$.u | [text] | 授权用户 | | ||
| sharing.$.o | [text] | 授权组织 | | ||
| sharing.$.r | text | 来自规则 | | ||
| message_count | number | 留言数 | | ||
| locked | boolean | 已锁定 | | ||
| company_id | lookup | 主分部 | | ||
| company_ids | lookup | 所属分部 | | ||
| instance_state | select | 审批状态 | | ||
| _table | object | 记录对象流程映射功能中表单中表格行信息 | | ||
| _table._id | text | 记录对象流程映射功能中表单中表格行信息ID | | ||
| _table._code | text | 记录对象流程映射功能中表单中表格行信息Code | | ||
| 权限属性 | user | admin | | ||
|----|----|----| | ||
| allowCreate | true | true | | ||
| allowDelete | true | true | | ||
| allowEdit | true | true | | ||
| allowRead | true | true | | ||
| modifyAllRecords | false | true | | ||
| viewAllRecords | false | true | | ||
## core对象 | ||
关系型数据库的基础对象。 | ||
```yaml | ||
name: core | ||
hidden: true | ||
``` | ||
| 权限属性 | admin | | ||
|----|----| | ||
| allowCreate| true | | ||
| allowDelete| true | | ||
| allowEdit| true | | ||
| allowRead| true | | ||
| modifyAllRecords| true | | ||
| viewAllRecords| true | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
--- | ||
title: 留言 | ||
description: 留言相关标准对象。 | ||
--- | ||
|
||
- [消息](#消息-chat_messages) | ||
- [房间](#房间-chat_rooms) | ||
- [订阅](#订阅-chat_subscriptions) | ||
|
||
## 消息-chat_messages | ||
基础模块:通知消息。 | ||
|
||
```yaml | ||
name: chat_messages | ||
label: Chat Message | ||
icon: rtc_presence | ||
hidden: false | ||
``` | ||
| 字段名 | 字段类型 | 字段含义 | | ||
|----|----|----| | ||
| related_to | lookup | 相关 | | ||
| name | textarea | 内容 | | ||
| type | select | 消息类型 | | ||
| 权限属性 | user | admin | guest | | ||
|----|----|----|----| | ||
| allowCreate | true | true | true | | ||
| allowDelete | true | true | false | | ||
| allowEdit | true | true | false | | ||
| allowRead | true | true | true | | ||
| modifyAllRecords | false | false | false | | ||
| viewAllRecords | true | true | true | | ||
## 房间-chat_rooms | ||
基础模块:会议房间。 | ||
```yaml | ||
name: chat_rooms | ||
label: Chat Room | ||
hidden: true | ||
``` | ||
| 字段名 | 字段类型 | 字段含义 | | ||
|----|----|----| | ||
| name | text | 内容 | | ||
| members | lookup | 成员 | | ||
| owner | lookup | 房主 | | ||
| type | select | 类型 | | ||
| 权限属性 | user | admin | guest | | ||
|----|----|----|----| | ||
| allowCreate | true | true | true | | ||
| allowDelete | false | false | false | | ||
| allowEdit | false | false | false | | ||
| allowRead | true | true | true | | ||
| modifyAllRecords | true | true | true | | ||
| viewAllRecords | true | false | true | | ||
## 订阅-chat_subscriptions | ||
基础模块:订阅内容。 | ||
```yaml | ||
name: chat_subscriptions | ||
label: Chat Subscription | ||
hidden: true | ||
``` | ||
| 字段名 | 字段类型 | 字段含义 | | ||
|----|----|----| | ||
| name | text | 名称 | | ||
| related_to | lookup | 相关 | | ||
| last_message_text | text | 最新消息预览(文本) | | ||
| last_message_date | datetime | 最新消息发送时间 | | ||
| unread | number | 未读数 | | ||
| 权限属性 | user | admin | guest | | ||
|----|----|----|----| | ||
| allowCreate | true | true | true | | ||
| allowDelete | false | false | false | | ||
| allowEdit | true | true | true | | ||
| allowRead | true | true | true | | ||
| modifyAllRecords | false | true | false | | ||
| viewAllRecords | false | false | false | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
--- | ||
title: 知识 | ||
description: 知识相关标准对象。 | ||
--- | ||
|
||
- [栏目](#栏目-cms_categories) | ||
- [知识](#知识-cms_posts) | ||
- [站点](#站点-cms_sites) | ||
|
||
## 栏目-cms_categories | ||
用于保存知识文章的分类。 | ||
|
||
```yaml | ||
name: cms_categories | ||
icon: folder | ||
label: Category | ||
hidden: true | ||
``` | ||
| 字段名 | 字段类型 | 字段含义 | | ||
|----|----|----| | ||
| name | text | 名称 | | ||
| description | textarea | 描述 | | ||
| site | lookup | 站点 | | ||
| parent | lookup | 上级栏目 | | ||
| parents | lookup | 上级栏目(多层) | | ||
| order | number | 排序号 | | ||
| featured | boolean | featured | | ||
| 权限属性 | user | admin | | ||
|----|----|----| | ||
| allowCreate | true | true | | ||
| allowDelete | true | true | | ||
| allowEdit | true | true | | ||
| allowRead | true | true | | ||
| modifyAllRecords | false | true | | ||
| viewAllRecords | true | true | | ||
## 知识-cms_posts | ||
用于保存知识文章。 | ||
```yaml | ||
name: cms_posts | ||
icon: knowledge | ||
label: Knowledge | ||
enable_files: true | ||
enable_chatter: true | ||
version: 2 | ||
sidebar: | ||
template_name: creator_grid_sidebar_sites | ||
``` | ||
| 字段名 | 字段类型 | 字段含义 | | ||
|----|----|----| | ||
| name | text | 标题 | | ||
| summary | textarea | 摘要 | | ||
| body | markdown | 正文 | | ||
| htmlBody | html | 正文 | | ||
| site | lookup | 站点 | | ||
| category | lookup | 栏目 | | ||
| members | object | 授权查看 | | ||
| members.users | lookup | 人员 | | ||
| members.organizations | lookup | 部门 | | ||
| viewCount | number | 阅读次数 | | ||
| 权限属性 | user | admin | | ||
|----|----|----| | ||
| allowCreate | true | true | | ||
| allowDelete | true | true | | ||
| allowEdit | true | true | | ||
| allowRead | true | true | | ||
| modifyAllRecords | false | true | | ||
| viewAllRecords | true | true | | ||
## 站点-cms_sites | ||
用于保存知识应用中的站点,每篇文章都必须属于某个站点。 | ||
```yaml | ||
name: cms_sites | ||
icon: app | ||
label: Site | ||
hidden: true | ||
``` | ||
| 字段名 | 字段类型 | 字段含义 | | ||
|----|----|----| | ||
| type | select | 类型 | | ||
| name | text | 名称 | | ||
| visibility | select | 可见性 | | ||
| enable_post_permissions | boolean | 启用文章级权限 | | ||
| order | number | 排序号 | | ||
| admins | lookup | 站点成员(私有) | | ||
| description | textarea | 描述 | | ||
| cover | avatar | 封面图片 | | ||
| avatar | avatar | Logo图片 | | ||
| layout | textarea | 网站模版 | | ||
| 权限属性 | user | admin | | ||
|----|----|----| | ||
| allowCreate | true | true | | ||
| allowDelete | true | true | | ||
| allowEdit | true | true | | ||
| allowRead | true | true | | ||
| modifyAllRecords | false | true | | ||
| viewAllRecords | true | true | |
Oops, something went wrong.