Appearance
区块管理
删除区块分组
基本信息
Path: /api/block-groups/delete/:id
Method: GET
接口描述:
请求参数
路径参数
| 参数名称 | 示例 | 备注 |
|---|---|---|
| id | 100 | 区块分组id |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object | 非必须 | 被删除的区块分组详情 | ||
| ├─ id | number | 非必须 | |||
| ├─ name | string | 非必须 | 区块分组名称 | ||
| ├─ app | object | 非必须 | 关联的应用app信息 | ||
| ├─ id | number | 非必须 | |||
| ├─ name | string | 非必须 | 应用名称 | ||
| ├─ app_website | null | 非必须 | 用户配置的正式环境应用访问地址 | ||
| ├─ platform | number | 非必须 | 从属设计器 | ||
| ├─ obs_url | null | 非必须 | 应用资源obs地址 | ||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 | ||
| ├─ state | null | 非必须 | 状态 | ||
| ├─ published | boolean | 非必须 | 应用是否正式上线 | ||
| ├─ createdBy | number | 非必须 | 创建人 | ||
| ├─ tenant | number | 非必须 | 从属组织 | ||
| ├─ home_page | null | 非必须 | 首页页面id | ||
| ├─ css | null | 非必须 | 全局css json对象 | ||
| ├─ config | null | 非必须 | 应用全局配置 | ||
| ├─ git_group | null | 非必须 | 应用git分组-预留字段 | ||
| ├─ project_name | null | 非必须 | 应用git仓库地址 | ||
| ├─ constants | null | 非必须 | 应用全局变量 | ||
| ├─ data_handler | null | 非必须 | 应用通用数据处理-前端管理 服务端存json串 | ||
| ├─ description | null | 非必须 | 应用描述 | ||
| ├─ latest | null | 非必须 | 应用最后一次记录 预留字段 | ||
| ├─ platform_history | null | 非必须 | 应用关联设计器最后一次构建记录 预留字段 | ||
| ├─ editor_url | null | 非必须 | 此应用的访问地址 | ||
| ├─ branch | null | 非必须 | 应用发布的目标git 分支 | ||
| ├─ visit_url | null | 非必须 | 预留字段 | ||
| ├─ is_demo | null | 非必须 | 是否为系统内demo应用 | ||
| ├─ image_url | null | 非必须 | 应用封面图 | ||
| ├─ is_default | null | 非必须 | 是否为系统内默认应用 | ||
| ├─ template_type | null | 非必须 | 应用模板类型 | ||
| ├─ set_template_time | null | 非必须 | 应用被设置为模板时间 | ||
| ├─ set_template_by | null | 非必须 | 设置此应用为模板的用户 | ||
| ├─ framework | null | 非必须 | 应用的前端框架 | ||
| ├─ global_state | null | 非必须 | 应用全局状态 前端管理 服务端存json | ||
| ├─ default_lang | null | 非必须 | 应用默认语言编码 预留字段 | ||
| ├─ extend_config | null | 非必须 | 应用系统扩展配置 前端管理 服务端存json | ||
| ├─ assets_url | null | 非必须 | 应用预览/发布生成代码zip包 obs地址 | ||
| ├─ data_hash | null | 非必须 | 应用数据hash, 防止无数据变化构建 | ||
| ├─ desc | null | 非必须 | 区块分组描述 | ||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 | ||
| ├─ blocks | object [] | 非必须 | 区块信息 | item 类型: object | |
| ├─ id | number | 必须 | |||
| ├─ label | string | 必须 | 区块编码 | ||
| ├─ framework | string | 必须 | 前端技术栈 | ||
| ├─ content | object | 必须 | 区块neir | ||
| ├─ componentName | string | 非必须 | |||
| ├─ fileName | string | 非必须 | |||
| ├─ css | string | 非必须 | |||
| ├─ schema | object | 非必须 | |||
| ├─ properties | object [] | 非必须 | item 类型: object | ||
| ├─ label | object | 必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ collapse | object | 必须 | |||
| ├─ number | number | 非必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ content | object [] | 必须 | item 类型: object | ||
| ├─ property | string | 必须 | |||
| ├─ type | string | 必须 | |||
| ├─ defaultValue | array,string,boolean | 必须 | |||
| ├─ label | object | 必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ widget | object | 必须 | |||
| ├─ component | string | 非必须 | |||
| ├─ props | object | 非必须 | |||
| ├─ modelValue | array,boolean | 非必须 | |||
| ├─ cols | number | 必须 | |||
| ├─ rules | string [] | 必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ linked | object | 必须 | |||
| ├─ componentName | string | 非必须 | |||
| ├─ property | string | 非必须 | |||
| ├─ id | string | 非必须 | |||
| ├─ handle | object | 必须 | |||
| ├─ getter | string | 非必须 | |||
| ├─ setter | string | 非必须 | |||
| ├─ hidden | boolean | 必须 | |||
| ├─ required | boolean | 必须 | |||
| ├─ readOnly | boolean | 必须 | |||
| ├─ disabled | boolean | 必须 | |||
| ├─ events | object | 非必须 | |||
| ├─ onAdd | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ link | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onFormLayout | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onClose | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onCancel | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onBack | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onPrevious | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onNext | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onClick | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ children | object [] | 非必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ className | string | 非必须 | |||
| ├─ inline | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ label-suffix | string | 非必须 | |||
| ├─ label-position | string | 非必须 | |||
| ├─ label-width | string | 非必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ id | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ size | string | 非必须 | |||
| ├─ style | object | 非必须 | |||
| ├─ margin-left | string | 非必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ visible | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ model | object | 非必须 | |||
| ├─ prop | string | 非必须 | |||
| ├─ title | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ width | string | 非必须 | |||
| ├─ key | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ className | string | 非必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ className | string | 非必须 | |||
| ├─ value | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ model | object | 非必须 | |||
| ├─ prop | string | 非必须 | |||
| ├─ placeholder | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ key | string | 非必须 | |||
| ├─ size | string | 非必须 | |||
| ├─ onChange | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ ref | string | 非必须 | |||
| ├─ data | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ show-checkbox | boolean | 非必须 | |||
| ├─ check-on-click-node | boolean | 非必须 | |||
| ├─ icon-trigger-click-node | boolean | 非必须 | |||
| ├─ shrink-icon | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ expand-icon | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ filter-node-method | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onCheckChange | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ key | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ name | string | 非必须 | |||
| ├─ onLayout | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ children | object | 必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ key | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ condition | object | 必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ fileName | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ className | object,string | 非必须 | |||
| ├─ slot | object | 非必须 | |||
| ├─ name | string | 非必须 | |||
| ├─ src | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ name | string | 非必须 | |||
| ├─ condition | object | 必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ loop | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ loopArgs | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ condition | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ state | object | 非必须 | |||
| ├─ boxVisibility | boolean | 非必须 | |||
| ├─ checkedNodes | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ checkedNodesLength | number | 非必须 | |||
| ├─ filterText | string | 非必须 | |||
| ├─ IconMinusSquare | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ IconPlusSquare | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ treeData | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ formData | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ methods | object | 非必须 | |||
| ├─ openDialog | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ closeDialog | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ search | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ checkChange | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ filterNode | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ confirm | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ linkClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ formLayout | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ goBack | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ goPrevious | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ goNext | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ triggerClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ triggerCancel | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ triggerClose | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ lifeCycles | object | 非必须 | |||
| ├─ setup | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onMounted | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ id | string | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ component | string | 非必须 | |||
| ├─ label | string | 非必须 | |||
| ├─ configure | object | 非必须 | |||
| ├─ isContainer | boolean | 非必须 | |||
| ├─ slots | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ created_at | string | 必须 | 创建时间 | ||
| ├─ updated_at | string | 必须 | 更新时间 | ||
| ├─ assets | object | 必须 | 构建资源 | ||
| ├─ material | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ scripts | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ styles | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ createdBy | number | 必须 | 创建人 | ||
| ├─ last_build_info | object | 必须 | 最新一次构建信息 | ||
| ├─ result | boolean | 非必须 | |||
| ├─ versions | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ endTime | string | 非必须 | |||
| ├─ description | null | 必须 | 区块描述 | ||
| ├─ tags | string [] | 必须 | 标签 | item 类型: string | |
| ├─ | 非必须 | ||||
| ├─ current_history | number | 必须 | 当前历史记录id | ||
| ├─ screenshot | string | 必须 | 截屏 | ||
| ├─ path | string | 必须 | 区块路径 | ||
| ├─ occupier | number,null | 必须 | 当前锁定人id | ||
| ├─ isOfficial | null | 必须 | 是否是官方 | ||
| ├─ public | number | 必须 | 公开状态:0,1,2 | ||
| ├─ isDefault | null | 必须 | 是否是默认 | ||
| ├─ tiny_reserved | boolean | 必须 | 是否是tiny专有 | ||
| ├─ author | null | 必须 | 预留字段 | ||
| ├─ name_cn | null | 必须 | 区块名称 | ||
| ├─ npm_name | string | 必须 | 区块npm包名 | ||
| ├─ created_app | null | 必须 | 创建区块时所在appId | ||
| locale | string | 非必须 |
删除区块历史记录
基本信息
Path: /api/block-history/delete/:id
Method: GET
接口描述:
请求参数
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
路径参数
| 参数名称 | 示例 | 备注 |
|---|---|---|
| id |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| message | string | 非必须 | |||
| block | number | 非必须 | |||
| time | string | 非必须 | |||
| content | string | 非必须 |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object | 非必须 | |||
| ├─ id | number | 非必须 | |||
| ├─ message | string | 非必须 | 历史记录描述消息 | ||
| ├─ block | object | 非必须 | 区块 | ||
| ├─ content | string | 非必须 | 区块内容 | ||
| ├─ published_at | string | 非必须 | 发布时间 | ||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 |
区块管理侧列表
基本信息
Path: /material-center/api/blocks
Method: GET
接口描述:
请求参数
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| appId | 是 | 112 | 应用id |
| categoryId | 否 | 12 | 区块所属区块分类 |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object [] | 非必须 | item 类型: object | ||
| ├─ id | number | 必须 | 区块id | ||
| ├─ label | string | 必须 | 区块标签名 | ||
| ├─ created_at | string | 必须 | |||
| ├─ updated_at | string | 必须 | |||
| ├─ last_build_info | object | 必须 | 区块最后一次发布信息 | ||
| ├─ result | boolean | 非必须 | 构建是否成功 | ||
| ├─ versions | string [] | 非必须 | 区块发布使用的前端脚手架信息 | item 类型: string | |
| ├─ | 非必须 | 模板信息,例如:@opentiny/tinybuilder-webcomp-vue-tiny@0.0.10 | |||
| ├─ endTime | string | 非必须 | 发布结束时间 | ||
| ├─ screenshot | string | 必须 | 区块封面图 | ||
| ├─ occupier | object | 必须 | 区块编辑人 | ||
| ├─ id | number | 非必须 | |||
| ├─ username | string | 非必须 | 用户名 | ||
| string | 非必须 | 邮箱 | |||
| ├─ blocked | null | 非必须 | 是否被拉黑 | ||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 | ||
| ├─ block | null | 非必须 | 预留字段 | ||
| ├─ is_admin | boolean | 非必须 | 是否是超级管理员 | ||
| ├─ is_public | null | 非必须 | 是否为公共账号 | ||
| ├─ name_cn | string,null | 必须 | 区块名称 | ||
| ├─ is_published | boolean | 必须 | 是否发布 | ||
| ├─ author | object | 必须 | 区块作者信息,和createdBy相同 | ||
| locale | string | 非必须 |
新增区块分组
基本信息
Path: /material-center/api/block-groups/create
Method: POST
接口描述:
app 和 blocks 需要查询出 apps表、blocks表关联的数据
请求参数
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| name | string | 必须 | 区块分组名称 | ||
| app | number | 必须 | 所属应用 | ||
| desc | string | 非必须 | 描述 | ||
| blocks | object [] | 非必须 | 包含的区块,可选 | item 类型: object | |
| ├─ id | string | 必须 | 区块id | ||
| ├─ version | string | 必须 | 区块版本号 |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object | 非必须 | |||
| ├─ id | number | 非必须 | 区块分组id | ||
| ├─ name | string | 非必须 | 名称 | ||
| ├─ app | object | 非必须 | 所属应用数据 | ||
| ├─ id | number | 非必须 | |||
| ├─ name | string | 非必须 | 应用名称 | ||
| ├─ app_website | null | 非必须 | 用户配置的正式环境应用访问地址 | ||
| ├─ platform | number | 非必须 | 从属设计器 | ||
| ├─ obs_url | null | 非必须 | 应用资源obs地址 | ||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 | ||
| ├─ state | null | 非必须 | 状态 | ||
| ├─ published | boolean | 非必须 | 应用是否正式上线 | ||
| ├─ createdBy | number | 非必须 | 创建人 | ||
| ├─ tenant | number | 非必须 | 从属组织 | ||
| ├─ home_page | null | 非必须 | 首页页面id | ||
| ├─ css | null | 非必须 | 全局css | ||
| ├─ config | null | 非必须 | 应用全局配置 | ||
| ├─ git_group | null | 非必须 | 应用git分组-预留字段 | ||
| ├─ project_name | null | 非必须 | 应用git仓库地址 | ||
| ├─ constants | null | 非必须 | 应用全局变量 | ||
| ├─ data_handler | null | 非必须 | 应用通用数据处理-前端管理 服务端存json串 | ||
| ├─ description | null | 非必须 | 应用描述 | ||
| ├─ latest | null | 非必须 | 应用最后一次记录 预留字段 | ||
| ├─ platform_history | null | 非必须 | 应用关联设计器最后一次构建记录 预留字段 | ||
| ├─ editor_url | null | 非必须 | 此应用的访问地址 | ||
| ├─ branch | null | 非必须 | 应用发布的目标git 分支 | ||
| ├─ visit_url | null | 非必须 | 预留字段 | ||
| ├─ is_demo | null | 非必须 | 是否为系统内demo应用 | ||
| ├─ image_url | null | 非必须 | 应用封面图 | ||
| ├─ is_default | null | 非必须 | 是否为系统内默认应用 | ||
| ├─ template_type | null | 非必须 | 应用模板类型 | ||
| ├─ set_template_time | null | 非必须 | 应用被设置为模板时间 | ||
| ├─ set_template_by | null | 非必须 | 设置此应用为模板的用户 | ||
| ├─ framework | null | 非必须 | 应用的前端框架 | ||
| ├─ global_state | null | 非必须 | 应用全局状态 前端管理 服务端存json | ||
| ├─ default_lang | null | 非必须 | 应用默认语言编码 预留字段 | ||
| ├─ extend_config | null | 非必须 | 应用系统扩展配置 前端管理 服务端存json | ||
| ├─ assets_url | null | 非必须 | 应用预览/发布生成代码zip包 obs地址 | ||
| ├─ data_hash | null | 非必须 | 应用数据hash, 防止无数据变化构建 | ||
| ├─ desc | null | 非必须 | 区块分组描述 | ||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 | ||
| ├─ blocks | object [] | 非必须 | 关联的区块数据 | item 类型: object | |
| ├─ id | number | 必须 | |||
| ├─ label | string | 必须 | 区块编码 | ||
| ├─ framework | string | 必须 | 前端技术栈 | ||
| ├─ content | object | 必须 | 区块内容 | ||
| ├─ componentName | string | 非必须 | |||
| ├─ fileName | string | 非必须 | |||
| ├─ css | string | 非必须 | |||
| ├─ schema | object | 非必须 | |||
| ├─ properties | object [] | 非必须 | item 类型: object | ||
| ├─ label | object | 必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ collapse | object | 必须 | |||
| ├─ number | number | 非必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ content | object [] | 必须 | item 类型: object | ||
| ├─ property | string | 必须 | |||
| ├─ type | string | 必须 | |||
| ├─ defaultValue | array,string,boolean | 必须 | |||
| ├─ label | object | 必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ widget | object | 必须 | |||
| ├─ component | string | 非必须 | |||
| ├─ props | object | 非必须 | |||
| ├─ modelValue | array,boolean | 非必须 | |||
| ├─ cols | number | 必须 | |||
| ├─ rules | string [] | 必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ linked | object | 必须 | |||
| ├─ componentName | string | 非必须 | |||
| ├─ property | string | 非必须 | |||
| ├─ id | string | 非必须 | |||
| ├─ handle | object | 必须 | |||
| ├─ getter | string | 非必须 | |||
| ├─ setter | string | 非必须 | |||
| ├─ hidden | boolean | 必须 | |||
| ├─ required | boolean | 必须 | |||
| ├─ readOnly | boolean | 必须 | |||
| ├─ disabled | boolean | 必须 | |||
| ├─ events | object | 非必须 | |||
| ├─ onAdd | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ link | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onFormLayout | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onClose | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onCancel | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onBack | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onPrevious | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onNext | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ onClick | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ children | object [] | 非必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ className | string | 非必须 | |||
| ├─ inline | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ label-suffix | string | 非必须 | |||
| ├─ label-position | string | 非必须 | |||
| ├─ label-width | string | 非必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ id | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ size | string | 非必须 | |||
| ├─ style | object | 非必须 | |||
| ├─ margin-left | string | 非必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ visible | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ model | object | 非必须 | |||
| ├─ prop | string | 非必须 | |||
| ├─ title | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ width | string | 非必须 | |||
| ├─ key | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ className | string | 非必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ className | string | 非必须 | |||
| ├─ value | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ model | object | 非必须 | |||
| ├─ prop | string | 非必须 | |||
| ├─ placeholder | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ key | string | 非必须 | |||
| ├─ size | string | 非必须 | |||
| ├─ onChange | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ ref | string | 非必须 | |||
| ├─ data | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ show-checkbox | boolean | 非必须 | |||
| ├─ check-on-click-node | boolean | 非必须 | |||
| ├─ icon-trigger-click-node | boolean | 非必须 | |||
| ├─ shrink-icon | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ expand-icon | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ filter-node-method | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onCheckChange | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ key | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ name | string | 非必须 | |||
| ├─ onLayout | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ children | object | 必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ key | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ condition | object | 必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ fileName | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ className | object,string | 非必须 | |||
| ├─ slot | object | 非必须 | |||
| ├─ name | string | 非必须 | |||
| ├─ src | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ name | string | 非必须 | |||
| ├─ condition | object | 必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ loop | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ loopArgs | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ condition | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ state | object | 非必须 | |||
| ├─ boxVisibility | boolean | 非必须 | |||
| ├─ checkedNodes | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ checkedNodesLength | number | 非必须 | |||
| ├─ filterText | string | 非必须 | |||
| ├─ IconMinusSquare | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ IconPlusSquare | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ treeData | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ formData | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ methods | object | 非必须 | |||
| ├─ openDialog | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ closeDialog | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ search | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ checkChange | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ filterNode | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ confirm | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ linkClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ formLayout | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ goBack | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ goPrevious | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ goNext | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ triggerClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ triggerCancel | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ triggerClose | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ lifeCycles | object | 非必须 | |||
| ├─ setup | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onMounted | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ id | string | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ component | string | 非必须 | |||
| ├─ label | string | 非必须 | |||
| ├─ configure | object | 非必须 | |||
| ├─ isContainer | boolean | 非必须 | |||
| ├─ slots | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ created_at | string | 必须 | 创建时间 | ||
| ├─ updated_at | string | 必须 | 更新时间 | ||
| ├─ assets | object | 必须 | 构建资源 | ||
| ├─ material | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ scripts | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ styles | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ createdBy | number | 必须 | 创建人 | ||
| ├─ last_build_info | object | 必须 | 最新一次构建信息 | ||
| ├─ result | boolean | 非必须 | |||
| ├─ versions | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ endTime | string | 非必须 | |||
| ├─ description | null | 必须 | 描述 | ||
| ├─ tags | string [] | 必须 | 标签 | item 类型: string | |
| ├─ | 非必须 | ||||
| ├─ current_history | number | 必须 | 当前历史记录id | ||
| ├─ screenshot | string | 必须 | 截屏 | ||
| ├─ path | string | 必须 | 区块路径 | ||
| ├─ occupier | number,null | 必须 | 当前锁定人id | ||
| ├─ isOfficial | null | 必须 | 是否是官方 | ||
| ├─ public | number | 必须 | 公开状态:0,1,2 | ||
| ├─ isDefault | null | 必须 | 是否是默认 | ||
| ├─ tiny_reserved | boolean | 必须 | 是否是tiny专有 | ||
| ├─ author | null | 必须 | 预留字段 | ||
| ├─ name_cn | null | 必须 | 区块名称 | ||
| ├─ npm_name | string | 必须 | npm包名 | ||
| ├─ created_app | null | 必须 | 创建区块时所在appId | ||
| locale | string | 非必须 |
新增区块历史记录
基本信息
Path: /api/block-history/create
Method: POST
接口描述:
请求参数
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| message | string | 非必须 | 修改信息 | ||
| block | number | 必须 | 区块ID | ||
| time | string | 非必须 | 变更时间,等价于published_at | ||
| content | string | 非必须 | 区块内容 |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object | 非必须 | |||
| ├─ id | number | 非必须 | |||
| ├─ message | string | 非必须 | 历史记录描述消息 | ||
| ├─ block | object | 非必须 | 区块 | ||
| ├─ content | string | 非必须 | 区块内容 | ||
| ├─ published_at | string | 非必须 | 发布时间 | ||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 |
更新区块分组
基本信息
Path: /api/block-groups/update/:id
Method: POST
接口描述:
请求参数
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
路径参数
| 参数名称 | 示例 | 备注 |
|---|---|---|
| id | 100 | 区块分组id |
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| name | 是 | ||
| app | 是 |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| app | string | 非必须 | 从属应用 | ||
| blocks | object [] | 非必须 | item 类型: object | ||
| ├─ id | number | 必须 | 区块id | mock: 1393 | |
| ├─ version | string | 必须 | 区块版本 | mock: ~1.0.1 |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object | 非必须 | 区块分组详情 | ||
| ├─ id | number | 非必须 | |||
| ├─ name | string | 非必须 | 区块分组名称 | ||
| ├─ app | object | 非必须 | 应用信息 | ||
| ├─ desc | string | 非必须 | 区块分组描述 | ||
| ├─ published_at | string | 非必须 | |||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 | ||
| ├─ blocks | string [] | 非必须 | 区块信息 | item 类型: string | |
| ├─ | 非必须 |
未在区块分组的全部区块综合查询列表
基本信息
Path: /material-center/api/block/notgroup/:id
Method: GET
接口描述:
查找去系统中未在此分组中的区块
区块的来源范围:
- 正在使用此设计器用户的私有区块
- 半公开给此设计器应用租户的区块
- 公开的区块
请求参数
路径参数
| 参数名称 | 示例 | 备注 |
|---|---|---|
| id | 322 | 区块分组id |
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| createdBy | 否 | 22 | 区块作者id |
| tags_contains | 否 | zzc | 标签名 |
| public | 否 | 2 | 区块公开状态 1 公开 2半公开 |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object [] | 非必须 | item 类型: object | ||
| ├─ id | number | 必须 | 区块id | ||
| ├─ label | string | 必须 | 区块编码 | ||
| ├─ framework | string | 必须 | 区块技术栈 | 枚举: Vue,Angular | |
| ├─ created_at | string | 必须 | 创建时间 | ||
| ├─ updated_at | string | 必须 | 更新时间 | ||
| ├─ createdBy | number | 必须 | 创建人 | ||
| ├─ last_build_info | object | 必须 | 最新一次构建信息 | ||
| ├─ result | boolean | 非必须 | |||
| ├─ versions | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ endTime | string | 非必须 | |||
| ├─ description | null,string | 必须 | 描述 | ||
| ├─ tags | string [] | 必须 | 标签 | item 类型: string | |
| ├─ | 非必须 | ||||
| ├─ current_history | number | 必须 | 当前历史记录id | ||
| ├─ screenshot | string,null | 必须 | 截屏 | ||
| ├─ path | string,null | 必须 | 区块路径 | ||
| ├─ occupier | number,null | 必须 | 当前锁定人id | ||
| ├─ isOfficial | null,boolean | 必须 | 是否是官方 | ||
| ├─ public | number | 必须 | 公开状态:0,1,2 | ||
| ├─ isDefault | null,boolean | 必须 | 是否是默认 | ||
| ├─ tiny_reserved | boolean | 必须 | 是否是tiny专有 | ||
| ├─ author | null | 必须 | 预留字段 | ||
| ├─ name_cn | null,string | 必须 | 区块名称 | ||
| ├─ npm_name | string | 必须 | 区块npm包名 | ||
| ├─ created_app | null | 必须 | 创建区块时所在appId | ||
| ├─ groups | object [] | 必须 | item 类型: object | ||
| ├─ id | number | 必须 | |||
| ├─ name | string | 必须 | 名称 | ||
| ├─ app | number,null | 必须 | 关联appid | ||
| ├─ desc | null | 必须 | 描述 | ||
| ├─ created_at | string | 必须 | 创建时间 | ||
| ├─ updated_at | string | 必须 | 更新时间 | ||
| ├─ public_scope_tenants | string [] | 必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| locale | string | 非必须 |
查询区块历史记录
基本信息
Path: /api/block-history
Method: GET
接口描述:
请求参数
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| block_id | 否 | 12 | 区块id |
| id | 否 |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object [] | 非必须 | item 类型: object | ||
| ├─ id | number | 非必须 | |||
| ├─ message | string | 非必须 | 历史记录描述消息 | ||
| ├─ block | object | 非必须 | 区块 | ||
| ├─ content | string | 非必须 | 区块内容 | ||
| ├─ published_at | string | 非必须 | 发布时间 | ||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 |
添加/修改国际化语言
基本信息
Path: /api/block/i18n/:id
Method: POST
接口描述:
请求参数
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 |
路径参数
| 参数名称 | 示例 | 备注 |
|---|---|---|
| id | 14 | 区块id |
Body
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| i18n_langs | number [] | 非必须 | item 类型: number | ||
| ├─ | 非必须 | 国际化语言id |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object | 非必须 | |||
| ├─ id | number | 非必须 | |||
| ├─ label | string | 非必须 | |||
| ├─ framework | string | 非必须 | |||
| ├─ content | object | 非必须 | |||
| ├─ blockName | string | 非必须 | |||
| ├─ id | string | 非必须 | |||
| ├─ props | object | 非必须 | |||
| ├─ __style__ | string | 非必须 | |||
| ├─ lifeCycles | object | 非必须 | |||
| ├─ ngOnChanges | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ compiled | string | 非必须 | |||
| ├─ source | string | 非必须 | |||
| ├─ css | string | 非必须 | |||
| ├─ i18n | object | 非必须 | |||
| ├─ zh_CN | object | 非必须 | |||
| ├─ i18n-kv6bz5m1 | string | 非必须 | |||
| ├─ i18n-kv6bz5m2 | string | 非必须 | |||
| ├─ i18n-kv6bz5m3 | string | 非必须 | |||
| ├─ en_US | object | 非必须 | |||
| ├─ i18n-kv6bz5m1 | string | 非必须 | |||
| ├─ i18n-kv6bz5m2 | string | 非必须 | |||
| ├─ i18n-kv6bz5m3 | string | 非必须 | |||
| ├─ methods | object | 非必须 | |||
| ├─ __initMethods__ | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ source | string | 非必须 | |||
| ├─ compiled | string | 非必须 | |||
| ├─ children | object [] | 非必须 | item 类型: object | ||
| ├─ componentName | string | 非必须 | |||
| ├─ id | string | 非必须 | |||
| ├─ props | object | 非必须 | |||
| ├─ __style__ | string | 非必须 | |||
| ├─ className | string | 非必须 | |||
| ├─ children | object [] | 非必须 | item 类型: object | ||
| ├─ id | string | 非必须 | |||
| ├─ componentName | string | 非必须 | |||
| ├─ props | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ __style__ | string | 非必须 | |||
| ├─ className | string | 非必须 | |||
| ├─ ngClass | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ variable | string | 非必须 | |||
| ├─ click | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ events | object [] | 非必须 | item 类型: object | ||
| ├─ name | string | 非必须 | |||
| ├─ id | string | 非必须 | |||
| ├─ params | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ args | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ value | string | 非必须 | |||
| ├─ loop | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ variable | string | 非必须 | |||
| ├─ loopArgs | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ schema | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ properties | object | 非必须 | |||
| ├─ FilterButtonsizk3 | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ properties | object | 非必须 | |||
| ├─ dataSource | object | 非必须 | |||
| ├─ title | string | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ searchKey | object | 非必须 | |||
| ├─ title | string | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ default | string | 非必须 | |||
| ├─ onSelect | object | 非必须 | |||
| ├─ title | string | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ default | string | 非必须 | |||
| ├─ dataSource | object | 非必须 | |||
| ├─ list | object [] | 非必须 | item 类型: object | ||
| ├─ name | string | 必须 | |||
| ├─ protocal | string | 必须 | |||
| ├─ initialData | object | 必须 | |||
| ├─ variable | array,string | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ actions | object | 非必须 | |||
| ├─ module | object | 非必须 | |||
| ├─ compiled | string | 非必须 | |||
| ├─ source | string | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ list | object [] | 非必须 | item 类型: object | ||
| ├─ id | string | 非必须 | |||
| ├─ title | string | 非必须 | |||
| ├─ published_at | string | 非必须 | |||
| ├─ created_at | string | 非必须 | |||
| ├─ updated_at | string | 非必须 | |||
| ├─ platform | null | 非必须 | |||
| ├─ assets | null | 非必须 | |||
| ├─ last_build_info | null | 非必须 | |||
| ├─ tenant | null | 非必须 | |||
| ├─ block_history | null | 非必须 | |||
| ├─ description | null | 非必须 | |||
| ├─ tags | null | 非必须 | |||
| ├─ author | null | 非必须 | |||
| ├─ current_history | null | 非必须 | |||
| ├─ histories | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ groups | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ i18n_langs | object [] | 非必须 | item 类型: object | ||
| ├─ id | number | 必须 | |||
| ├─ lang | string | 必须 | |||
| ├─ label | string | 必须 | |||
| ├─ created_at | string | 必须 | |||
| ├─ updated_at | string | 必须 |
获取区块分组
基本信息
Path: /material-center/api/block-groups
Method: GET
接口描述:
需要和前端 精简返回数据的关联值
请求参数
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| name | 否 | 区块名称 | |
| app | 否 | 从属应用id | |
| id | 否 | 区块分组id |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| data | object [] | 非必须 | item 类型: object | ||
| ├─ id | number | 非必须 | |||
| ├─ name | string | 非必须 | 区块分组名称 | ||
| ├─ app | object | 非必须 | 关联app信息 | ||
| ├─ id | number | 非必须 | |||
| ├─ name | string | 非必须 | 应用名称 | ||
| ├─ app_website | null | 非必须 | 用户配置的正式环境应用访问地址 | ||
| ├─ platform | number | 非必须 | 从属设计器 | ||
| ├─ obs_url | string | 非必须 | 应用资源obs地址 | ||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 | ||
| ├─ state | null | 非必须 | 应用状态 | ||
| ├─ published | boolean | 非必须 | 应用是否正式上线 | ||
| ├─ createdBy | number | 非必须 | 应用创建人 | ||
| ├─ tenant | number | 非必须 | 从属组织 | ||
| ├─ home_page | null | 非必须 | 首页页面id | ||
| ├─ css | null | 非必须 | 全局css json对象 | ||
| ├─ config | object | 非必须 | 应用全局配置 | ||
| ├─ git_group | null | 非必须 | 应用git分组 | ||
| ├─ project_name | string | 非必须 | 应用git仓库地址 | ||
| ├─ constants | null | 非必须 | 应用全局变量 | ||
| ├─ data_handler | null | 非必须 | 应用通用数据处理-前端管理 服务端存json串 | ||
| ├─ description | string | 非必须 | 应用描述 | ||
| ├─ latest | null | 非必须 | 应用最后一次记录 | ||
| ├─ platform_history | null | 非必须 | 应用关联设计器最后一次构建记录 | ||
| ├─ editor_url | string | 非必须 | 此应用的访问地址 | ||
| ├─ branch | string | 非必须 | 应用发布的目标git 分支 | ||
| ├─ visit_url | null | 非必须 | 预留字段 | ||
| ├─ is_demo | null | 非必须 | 是否为系统内demo应用 | ||
| ├─ image_url | string | 非必须 | 应用封面图 | ||
| ├─ is_default | null | 非必须 | 是否为系统内默认应用 | ||
| ├─ template_type | null | 非必须 | 应用模板类型 | ||
| ├─ set_template_time | null | 非必须 | 应用被设置为模板时间 | ||
| ├─ set_template_by | null | 非必须 | 设置此应用为模板的用户 | ||
| ├─ framework | string | 非必须 | 应用的前端框架 | ||
| ├─ global_state | null | 非必须 | 应用全局状态 前端管理 服务端存json | ||
| ├─ default_lang | null | 非必须 | 应用默认语言编码 预留字段 | ||
| ├─ extend_config | object | 非必须 | 应用系统扩展配置 前端管理 服务端存json | ||
| ├─ platform_build_mode | string | 非必须 | |||
| ├─ app_type | string | 非必须 | |||
| ├─ bridge | string | 非必须 | |||
| ├─ utils | string | 非必须 | |||
| ├─ i18n | object [] | 非必须 | item 类型: object | ||
| ├─ name | string | 必须 | |||
| ├─ url | string | 必须 | |||
| ├─ datasource | string | 非必须 | |||
| ├─ assets_url | string | 非必须 | 应用预览/发布生成代码zip包 obs地址 | ||
| ├─ data_hash | string | 非必须 | 应用数据hash, 防止无数据变化构建 | ||
| ├─ desc | null | 非必须 | 区块分组描述 | ||
| ├─ created_at | string | 非必须 | 创建时间 | ||
| ├─ updated_at | string | 非必须 | 更新时间 | ||
| ├─ blocks | object [] | 非必须 | 区块数组 | item 类型: object | |
| ├─ id | number | 必须 | |||
| ├─ label | string | 必须 | 区块编码 | ||
| ├─ framework | string | 必须 | 技术栈 | ||
| ├─ content | object | 必须 | 区块内容 | ||
| ├─ state | object | 非必须 | |||
| ├─ data | object | 非必须 | |||
| ├─ extend | object | 非必须 | |||
| ├─ legend | object | 非必须 | |||
| ├─ x | string | 非必须 | |||
| ├─ y | string | 非必须 | |||
| ├─ textStyle | object | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ fontSize | number,string | 非必须 | |||
| ├─ itemWidth | number | 非必须 | |||
| ├─ itemHeight | number | 非必须 | |||
| ├─ show | boolean | 非必须 | |||
| ├─ icon | string | 非必须 | |||
| ├─ bottom | number,string | 非必须 | |||
| ├─ center | number | 非必须 | |||
| ├─ itemGap | number | 非必须 | |||
| ├─ orient | string | 非必须 | |||
| ├─ data | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ top | string | 非必须 | |||
| ├─ left | string | 非必须 | |||
| ├─ xAxis | object [] | 非必须 | item 类型: object | ||
| ├─ type | string | 必须 | |||
| ├─ axisLabel | object | 必须 | |||
| ├─ interval | number | 非必须 | |||
| ├─ textStyle | object | 非必须 | |||
| ├─ fontSize | number | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ axisTick | object | 必须 | |||
| ├─ show | boolean | 非必须 | |||
| ├─ axisLine | object | 必须 | |||
| ├─ show | boolean | 非必须 | |||
| ├─ yAxis | object [] | 非必须 | item 类型: object | ||
| ├─ axisTick | object | 必须 | |||
| ├─ show | boolean | 非必须 | |||
| ├─ axisLine | object | 必须 | |||
| ├─ show | boolean | 非必须 | |||
| ├─ axisLabel | object | 必须 | |||
| ├─ textStyle | object | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ fontSize | number | 非必须 | |||
| ├─ fontSize | number | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ splitLine | object | 必须 | |||
| ├─ show | boolean | 非必须 | |||
| ├─ lineStyle | object | 非必须 | |||
| ├─ color | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ opacity | number | 非必须 | |||
| ├─ grid | object | 非必须 | |||
| ├─ left | string | 非必须 | |||
| ├─ right | string | 非必须 | |||
| ├─ top | string | 非必须 | |||
| ├─ bottom | string | 非必须 | |||
| ├─ containLabel | boolean | 非必须 | |||
| ├─ color | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ radar | object | 非必须 | |||
| ├─ radius | string | 非必须 | |||
| ├─ triggerEvent | boolean | 非必须 | |||
| ├─ name | object | 非必须 | |||
| ├─ textStyle | object | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ fontSize | string | 非必须 | |||
| ├─ padding | number [] | 非必须 | item 类型: number | ||
| ├─ | 非必须 | ||||
| ├─ nameGap | string | 非必须 | |||
| ├─ splitArea | object | 非必须 | |||
| ├─ areaStyle | object | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ axisLine | object | 非必须 | |||
| ├─ lineStyle | object | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ splitLine | object | 非必须 | |||
| ├─ lineStyle | object | 非必须 | |||
| ├─ width | number | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ tooltip | object | 非必须 | |||
| ├─ show | boolean | 非必须 | |||
| ├─ backgroundColor | string | 非必须 | |||
| ├─ borderColor | string | 非必须 | |||
| ├─ borderWidth | number | 非必须 | |||
| ├─ textStyle | object | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ fontSize | number | 非必须 | |||
| ├─ extraCssText | string | 非必须 | |||
| ├─ series | object [] | 非必须 | item 类型: object | ||
| ├─ name | string | 非必须 | |||
| ├─ type | string | 必须 | |||
| ├─ radius | string [] | 必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ center | string [] | 必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ labelLine | object | 非必须 | |||
| ├─ normal | object | 非必须 | |||
| ├─ length | number | 非必须 | |||
| ├─ lineStyle | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ label | object | 必须 | |||
| ├─ normal | object | 非必须 | |||
| ├─ borderWidth | number | 非必须 | |||
| ├─ borderRadius | number | 非必须 | |||
| ├─ padding | number [] | 非必须 | item 类型: number | ||
| ├─ | 非必须 | ||||
| ├─ height | number | 非必须 | |||
| ├─ fontSize | number | 非必须 | |||
| ├─ align | string | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ show | boolean | 非必须 | |||
| ├─ color | string | 非必须 | |||
| ├─ data | number [] | 必须 | item 类型: number | ||
| ├─ | 非必须 | ||||
| ├─ settings | object | 非必须 | |||
| ├─ option | object | 非必须 | |||
| ├─ data | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ viewConfig | object | 非必须 | |||
| ├─ theme | string | 非必须 | |||
| ├─ navigator | object | 非必须 | |||
| ├─ show | boolean | 非必须 | |||
| ├─ scale | object | 非必须 | |||
| ├─ overall | object | 非必须 | |||
| ├─ color | object | 非必须 | |||
| ├─ methods | object | 非必须 | |||
| ├─ onClickSystem | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onClickPage | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ componentName | string | 非必须 | |||
| ├─ fileName | string | 非必须 | |||
| ├─ css | string | 非必须 | |||
| ├─ props | object | 非必须 | |||
| ├─ style | string | 非必须 | |||
| ├─ children | object [] | 非必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ style | string | 非必须 | |||
| ├─ ref | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ src | object,string | 非必须 | |||
| ├─ style | string | 非必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ onClick | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ title | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ componentType | string | 必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ style | string | 非必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ data | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ height | string | 非必须 | |||
| ├─ width | string | 非必须 | |||
| ├─ extend | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ settings | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ style | string | 非必须 | |||
| ├─ option | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ chartType | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ componentType | string | 必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ style | string | 非必须 | |||
| ├─ span | string,number | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ style | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ children | object [] | 必须 | item 类型: object | ||
| ├─ componentName | string | 必须 | |||
| ├─ props | object | 必须 | |||
| ├─ style | string | 非必须 | |||
| ├─ id | string | 必须 | |||
| ├─ schema | object | 非必须 | |||
| ├─ properties | object [] | 非必须 | item 类型: object | ||
| ├─ label | object | 必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ description | object | 必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ collapse | object | 必须 | |||
| ├─ number | number | 非必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ content | object [] | 必须 | item 类型: object | ||
| ├─ property | string | 必须 | |||
| ├─ type | string | 必须 | |||
| ├─ defaultValue | array,string | 必须 | |||
| ├─ label | object | 必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ cols | number | 必须 | |||
| ├─ rules | string [] | 必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ handle | object | 必须 | |||
| ├─ getter | string | 非必须 | |||
| ├─ setter | string | 非必须 | |||
| ├─ hidden | boolean | 必须 | |||
| ├─ required | boolean | 必须 | |||
| ├─ readOnly | boolean | 必须 | |||
| ├─ disabled | boolean | 必须 | |||
| ├─ widget | object | 必须 | |||
| ├─ component | string | 非必须 | |||
| ├─ props | object | 非必须 | |||
| ├─ modelValue | array,string | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ textField | string | 非必须 | |||
| ├─ language | string | 非必须 | |||
| ├─ buttonText | string | 非必须 | |||
| ├─ title | string | 非必须 | |||
| ├─ expand | boolean | 非必须 | |||
| ├─ options | object [] | 非必须 | item 类型: object | ||
| ├─ label | string | 必须 | |||
| ├─ value | string | 必须 | |||
| ├─ properties | object [] | 必须 | item 类型: object | ||
| ├─ label | object | 必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ content | object [] | 必须 | item 类型: object | ||
| ├─ property | string | 必须 | |||
| ├─ type | string | 必须 | |||
| ├─ defaultValue | string | 必须 | |||
| ├─ label | object | 必须 | |||
| ├─ text | object | 非必须 | |||
| ├─ zh_CN | string | 非必须 | |||
| ├─ widget | object | 必须 | |||
| ├─ component | string | 非必须 | |||
| ├─ props | object | 非必须 | |||
| ├─ modelValue | string,null | 非必须 | |||
| ├─ options | object [] | 非必须 | item 类型: object | ||
| ├─ label | string | 必须 | |||
| ├─ value | string | 必须 | |||
| ├─ accessor | object | 必须 | |||
| ├─ setter | object | 非必须 | |||
| ├─ type | string | 非必须 | |||
| ├─ value | string | 非必须 | |||
| ├─ events | object | 非必须 | |||
| ├─ slots | object | 非必须 | |||
| ├─ undefined | object | 非必须 | |||
| ├─ label | object | 非必须 | |||
| ├─ dataSource | object | 非必须 | |||
| ├─ lifeCycles | object | 非必须 | |||
| ├─ configure | object | 非必须 | |||
| ├─ isContainer | boolean | 非必须 | |||
| ├─ created_at | string | 必须 | 创建时间 | ||
| ├─ updated_at | string | 必须 | 更新时间 | ||
| ├─ assets | object | 必须 | 构建资源 | ||
| ├─ material | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ scripts | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ styles | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ createdBy | number | 必须 | 创建人 | ||
| ├─ last_build_info | object | 必须 | 最新一次构建信息 | ||
| ├─ result | boolean | 非必须 | |||
| ├─ versions | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 | ||||
| ├─ endTime | string | 非必须 | |||
| ├─ description | string,null | 必须 | 描述 | ||
| ├─ tags | string [] | 必须 | 标签 | item 类型: string | |
| ├─ | 非必须 | ||||
| ├─ current_history | number | 必须 | 当前历史记录id | ||
| ├─ screenshot | string | 必须 | 截图 | ||
| ├─ path | string | 必须 | 区块路径 | ||
| ├─ occupier | null,number | 必须 | 当前锁定人id | ||
| ├─ isOfficial | boolean | 必须 | 是否是官方 | ||
| ├─ public | number | 必须 | 公开状态:0,1,2 | ||
| ├─ isDefault | boolean | 必须 | 是否是默认 | ||
| ├─ tiny_reserved | boolean | 必须 | 是否是tiny专有 | ||
| ├─ author | null | 必须 | 预留字段 | ||
| ├─ name_cn | null,string | 必须 | 区块名称 | ||
| ├─ npm_name | string | 必须 | npm包名 | ||
| ├─ created_app | null | 必须 | 创建区块时所在appId | ||
| ├─ current_version | string | 必须 | |||
| locale | string | 非必须 |