Path: /material-center/api/block-categories/:id
Method: PUT
接口描述:
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 |
路径参数
参数名称 | 示例 | 备注 |
---|---|---|
id | 12 | 区块分类id |
Body
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
app | number | 非必须 | 从属应用id | ||
name | string | 非必须 | 应用名称 | ||
desc | string | 非必须 | 描述 | ||
category_id | string | 非必须 | 区块分组key | ||
blocks | number [] | 非必须 | 关联区块 | item 类型: number | |
├─ | 非必须 | 区块id |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | 区块分类名称 | ||
├─ app | object | 非必须 | 关联app | ||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ app_website | null | 非必须 | |||
├─ platform | number | 非必须 | |||
├─ obs_url | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ state | null | 非必须 | |||
├─ published | boolean | 非必须 | |||
├─ createdBy | number | 非必须 | |||
├─ tenant | null | 非必须 | |||
├─ home_page | null | 非必须 | |||
├─ css | null | 非必须 | |||
├─ config | null | 非必须 | |||
├─ git_group | null | 非必须 | |||
├─ project_name | null | 非必须 | |||
├─ constants | null | 非必须 | |||
├─ data_handler | null | 非必须 | |||
├─ description | string | 非必须 | |||
├─ latest | null | 非必须 | |||
├─ platform_history | null | 非必须 | |||
├─ editor_url | null | 非必须 | |||
├─ branch | null | 非必须 | |||
├─ visit_url | null | 非必须 | |||
├─ is_demo | null | 非必须 | |||
├─ image_url | null | 非必须 | |||
├─ is_default | null | 非必须 | |||
├─ template_type | null | 非必须 | |||
├─ set_template_time | null | 非必须 | |||
├─ set_template_by | null | 非必须 | |||
├─ framework | string | 非必须 | |||
├─ global_state | null | 非必须 | |||
├─ default_lang | null | 非必须 | |||
├─ extend_config | null | 非必须 | |||
├─ assets_url | null | 非必须 | |||
├─ data_hash | null | 非必须 | |||
├─ desc | string | 非必须 | 描述 | ||
├─ createdBy | object | 非必须 | 创建人 | ||
├─ id | number | 非必须 | |||
├─ username | string | 非必须 | |||
string | 非必须 | ||||
├─ resetPasswordToken | string | 非必须 | |||
├─ blocked | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ block | null | 非必须 | |||
├─ is_admin | boolean | 非必须 | |||
├─ is_public | null | 非必须 | |||
├─ updatedBy | object | 非必须 | 更新人 | ||
├─ id | number | 非必须 | |||
├─ username | string | 非必须 | |||
string | 非必须 | ||||
├─ resetPasswordToken | string | 非必须 | |||
├─ blocked | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ block | null | 非必须 | |||
├─ is_admin | boolean | 非必须 | |||
├─ is_public | null | 非必须 | |||
├─ created_at | string | 非必须 | 创建时间 | ||
├─ updated_at | string | 非必须 | 更新时间 | ||
├─ category_id | string | 非必须 | 区块分类唯一id | ||
├─ blocks | object [] | 非必须 | 区块 | item 类型: object | |
├─ id | number | 必须 | |||
├─ label | string | 必须 | 区块编码 | ||
├─ framework | string | 必须 | 技术栈 | ||
├─ content | object | 必须 | 内容 | ||
├─ componentName | string | 非必须 | 组件或区块名 | ||
├─ fileName | string | 非必须 | 页面名称 | ||
├─ css | string | 非必须 | 全局 css 样式 | ||
├─ schema | object | 非必须 | 数据结构 | ||
├─ events | object | 非必须 | 事件 | ||
├─ 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 | 非必须 | |||
├─ 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 | 非必须 | |||
├─ 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,boolean | 非必须 | |||
├─ description | object | 必须 | |||
├─ zh_CN | string | 非必须 | |||
├─ linked | object | 必须 | |||
├─ id | string | 非必须 | |||
├─ componentName | string | 非必须 | |||
├─ property | string | 非必须 | |||
├─ methods | object | 非必须 | 声明的方法 | ||
├─ 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 | 非必须 | |||
├─ 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 | 必须 | |||
├─ loop | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ loopArgs | string [] | 非必须 | item 类型: string | ||
├─ | 非必须 | ||||
├─ props | object | 必须 | |||
├─ key | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ label | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ className | string | 非必须 | |||
├─ children | object [] | 必须 | item 类型: object | ||
├─ componentName | string | 必须 | |||
├─ condition | object | 必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ props | object | 必须 | |||
├─ className | object,string | 非必须 | |||
├─ src | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ onClick | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ id | string | 必须 | |||
├─ children | object [] | 必须 | item 类型: object | ||
├─ componentName | string | 必须 | |||
├─ condition | object | 必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ props | object | 必须 | |||
├─ className | string | 非必须 | |||
├─ onClick | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ onLayout | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ text | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ type | string | 非必须 | |||
├─ children | object | 必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ key | string | 非必须 | |||
├─ id | string | 必须 | |||
├─ fileName | string | 非必须 | |||
├─ id | string | 必须 | |||
├─ condition | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ id | string | 必须 | |||
├─ state | object | 非必须 | 页面的 state | ||
├─ formData | string [] | 非必须 | item 类型: string | ||
├─ | 非必须 | ||||
├─ type | string | 非必须 | 类型 | ||
├─ component | string | 非必须 | 组件 | ||
├─ label | string | 非必须 | 标签 | ||
├─ lifeCycles | object | 非必须 | 生命周期 | ||
├─ onMounted | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | 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 | null,number | 必须 | 当前锁定人id | ||
├─ isOfficial | null | 必须 | 是否官方 | ||
├─ public | number | 必须 | 公开状态 | ||
├─ isDefault | null | 必须 | 是否��认 | ||
├─ tiny_reserved | boolean | 必须 | 是否是tiny专有 | ||
├─ author | null | 必须 | |||
├─ name_cn | null | 必须 | 组件名称 | ||
├─ npm_name | string | 必须 | npm包名 | ||
├─ created_app | null | 必须 | 创建区块时所在appId | ||
locale | string | 非必须 |
Path: /material-center/api/block-categories
Method: POST
接口描述:
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 |
Body
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
app | number | 必须 | 从属应用id | ||
name | string | 必须 | 分组名称 | ||
desc | string | 非必须 | |||
category_id | string | 必须 | 分组唯一key | ||
blocks | number [] | 非必须 | 关联区块 | item 类型: number | |
├─ | 非必须 | 区块id |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | 分组id | ||
├─ name | string | 非必须 | 分组名称 | ||
├─ app | object | 非必须 | 从属应用 | ||
├─ id | number | 非必须 | 应用id | ||
├─ name | string | 非必须 | 应用名称 | ||
├─ app_website | null | 非必须 | 用户配置的正式环境应用访问地址 | ||
├─ platform | number | 非必须 | 从属设计器 | ||
├─ obs_url | null | 非必须 | 应用资源obs地址 | ||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ state | null | 非必须 | 应用状态 预留字段-无用 | ||
├─ published | boolean | 非必须 | 应用是否正式上线 预留字段 无用 | ||
├─ createdBy | number | 非必须 | 应用创建者 | ||
├─ tenant | null | 非必须 | 从属租户 | ||
├─ 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 | string | 非必须 | 应用描述 | ||
├─ 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 | string | 非必须 | 应用被设置为模板时间 | ||
├─ set_template_by | number | 非必须 | 设置此应用为模板的用户 | ||
├─ framework | string | 非必须 | 应用的前端框架 | ||
├─ global_state | null | 非必须 | 应用全局状态 前端管理 服务端存json | ||
├─ default_lang | null | 非必须 | 应用默认语言编码 预留字段 | ||
├─ extend_config | null | 非必须 | 应用系统扩展配置 前端管理 服务端存json | ||
├─ assets_url | null | 非必须 | 应用预览/发布生成代码zip包 obs地址 | ||
├─ data_hash | null | 非必须 | 应用数据hash, 防止无数据变化构建 | ||
├─ desc | string | 非必须 | 分组描述 | ||
├─ createdBy | object | 非必须 | 创建人 | ||
├─ id | number | 非必须 | 系统用户id | ||
├─ username | string | 非必须 | 系统用户名 | ||
string | 非必须 | 用户邮箱 | |||
├─ resetPasswordToken | string | 非必须 | 用户唯一key | ||
├─ blocked | null | 非必须 | 是否被系统拉黑 true表示拉黑 | ||
├─ created_at | string | 非必须 | 创建时间 | ||
├─ updated_at | string | 非必须 | 更新时间 | ||
├─ block | null | 非必须 | 预留字段 | ||
├─ is_admin | boolean | 非必须 | 是否为超级管理员 true 表示是 | ||
├─ is_public | null | 非必须 | |||
├─ updatedBy | object | 非必须 | 更新人 | ||
├─ id | number | 非必须 | |||
├─ username | string | 非必须 | |||
string | 非必须 | ||||
├─ resetPasswordToken | string | 非必须 | |||
├─ blocked | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ block | null | 非必须 | |||
├─ is_admin | boolean | 非必须 | |||
├─ is_public | null | 非必须 | |||
├─ created_at | string | 非必须 | 创建时间 | ||
├─ updated_at | string | 非必须 | 更新时间 | ||
├─ category_id | string | 非必须 | 分组key | ||
├─ blocks | object [] | 非必须 | 关联区块 | item 类型: object | |
├─ id | number | 必须 | |||
├─ label | string | 必须 | 区块编码 | ||
├─ framework | string | 必须 | 技术栈 | ||
├─ content | object | 必须 | 区块内容 | ||
├─ componentName | string | 非必须 | 组件名 | ||
├─ fileName | string | 非必须 | 文件名 | ||
├─ css | string | 非必须 | 页面全局 css 样式 | ||
├─ schema | object | 非必须 | 数据组织方式 | ||
├─ events | object | 非必须 | 事件 | ||
├─ 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 | 非必须 | |||
├─ 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 | 非必须 | |||
├─ cols | number | 必须 | 列 | ||
├─ rules | string [] | 必须 | 规则 | item 类型: string | |
├─ | 非必须 | ||||
├─ handle | object | 必须 | 处理 | ||
├─ getter | string | 非必须 | |||
├─ setter | string | 非必须 | |||
├─ hidden | boolean | 必须 | 隐藏 | ||
├─ required | boolean | 必须 | |||
├─ readOnly | boolean | 必须 | 只读 | ||
├─ disabled | boolean | 必须 | 禁用 | ||
├─ widget | object | 必须 | UI 控件 | ||
├─ component | string | 非必须 | 组件 | ||
├─ props | object | 非必须 | 页面或者区块绑定的属性 | ||
├─ modelValue | array,boolean | 非必须 | |||
├─ description | object | 必须 | |||
├─ zh_CN | string | 非必须 | |||
├─ linked | object | 必须 | 链接 | ||
├─ id | string | 非必须 | |||
├─ componentName | string | 非必须 | 组件名 | ||
├─ property | string | 非必须 | 属性 | ||
├─ methods | object | 非必须 | 页面声明的方�� | ||
├─ 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 | 非必须 | |||
├─ 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 | 必须 | |||
├─ loop | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ loopArgs | string [] | 非必须 | item 类型: string | ||
├─ | 非必须 | ||||
├─ props | object | 必须 | |||
├─ key | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ label | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ className | string | 非必须 | |||
├─ children | object [] | 必须 | item 类型: object | ||
├─ componentName | string | 必须 | |||
├─ condition | object | 必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ props | object | 必须 | |||
├─ className | object,string | 非必须 | |||
├─ src | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ onClick | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ id | string | 必须 | |||
├─ children | object [] | 必须 | item 类型: object | ||
├─ componentName | string | 必须 | |||
├─ condition | object | 必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ props | object | 必须 | |||
├─ className | string | 非必须 | |||
├─ onClick | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ name | string | 非必须 | |||
├─ onLayout | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ text | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ type | string | 非必须 | |||
├─ children | object | 必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ key | string | 非必须 | |||
├─ id | string | 必须 | |||
├─ fileName | string | 非必须 | |||
├─ id | string | 必须 | |||
├─ condition | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ id | string | 必须 | |||
├─ state | object | 非必须 | 页面的 state | ||
├─ formData | string [] | 非必须 | item 类型: string | ||
├─ | 非必须 | ||||
├─ type | string | 非必须 | 类型 | ||
├─ component | string | 非必须 | 组件 | ||
├─ label | string | 非必须 | |||
├─ lifeCycles | object | 非必须 | 生命周期 | ||
├─ onMounted | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | 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 | null,number | 必须 | 当前锁定人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: /material-center/api/block-categories/:id
Method: DELETE
接口描述:
只有未关联任何区块时,才能删除成功
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
路径参数
参数名称 | 示例 | 备注 |
---|---|---|
id | 14 | 区块分组id |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | 区块分组详情 | ||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ app | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ app_website | null | 非必须 | |||
├─ platform | number | 非必须 | |||
├─ obs_url | null | 非必须 | |||
├─ created_by | null | 非必须 | |||
├─ updated_by | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ state | null | 非必须 | |||
├─ published | boolean | 非必须 | |||
├─ createdBy | number | 非必须 | |||
├─ updatedBy | number | 非必须 | |||
├─ tenant | null | 非必须 | |||
├─ home_page | null | 非必须 | |||
├─ css | null | 非必须 | |||
├─ config | null | 非必须 | |||
├─ git_group | null | 非必须 | |||
├─ project_name | null | 非必须 | |||
├─ constants | null | 非必须 | |||
├─ data_handler | null | 非必须 | |||
├─ description | string | 非必须 | |||
├─ latest | null | 非必须 | |||
├─ platform_history | null | 非必须 | |||
├─ editor_url | null | 非必须 | |||
├─ branch | null | 非必须 | |||
├─ visit_url | null | 非必须 | |||
├─ is_demo | null | 非必须 | |||
├─ image_url | null | 非必须 | |||
├─ is_default | null | 非必须 | |||
├─ template_type | null | 非必须 | |||
├─ set_template_time | null | 非必须 | |||
├─ set_template_by | null | 非必须 | |||
├─ set_default_by | null | 非必须 | |||
├─ framework | string | 非必须 | |||
├─ global_state | null | 非必须 | |||
├─ default_lang | null | 非必须 | |||
├─ extend_config | null | 非必须 | |||
├─ assets_url | null | 非必须 | |||
├─ data_hash | null | 非必须 | |||
├─ desc | string | 非必须 | |||
├─ createdBy | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ username | string | 非必须 | 用户名 | ||
string | 非必须 | 邮箱 | |||
├─ provider | null | 非必须 | |||
├─ password | null | 非必须 | |||
├─ resetPasswordToken | string | 非必须 | w3用户名 | ||
├─ confirmationToken | string | 非必须 | w3账户uuid | ||
├─ confirmed | boolean | 非必须 | 是否认证 | ||
├─ blocked | null | 非必须 | 账号是否被拉黑 | ||
├─ role | null | 非必须 | |||
├─ created_by | null | 非必须 | |||
├─ updated_by | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ block | null | 非必须 | |||
├─ is_admin | boolean | 非必须 | 是否是超级管理员 | ||
├─ is_public | null | 非必须 | 是否为公共账号 | ||
├─ updatedBy | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ username | string | 非必须 | |||
string | 非必须 | ||||
├─ provider | null | 非必须 | |||
├─ password | null | 非必须 | |||
├─ resetPasswordToken | string | 非必须 | |||
├─ confirmationToken | string | 非必须 | |||
├─ confirmed | boolean | 非必须 | |||
├─ blocked | null | 非必须 | |||
├─ role | null | 非必须 | |||
├─ created_by | null | 非必须 | |||
├─ updated_by | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ block | null | 非必须 | |||
├─ is_admin | boolean | 非必须 | |||
├─ is_public | null | 非必须 | |||
├─ created_by | null | 非必须 | |||
├─ updated_by | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ category_id | string | 非必须 | |||
├─ blocks | string [] | 非必须 | item 类型: string | ||
├─ | 非必须 | ||||
locale | string | 非必须 |
Path: /material-center/api/block-categories
Method: GET
接口描述:
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
appId | 是 | 12 | 应用id |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | 区块分类名称 | ||
├─ app | object | 非必须 | 从属应用详情 | ||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | |||
├─ app_website | null | 非必须 | |||
├─ platform | number | 非必须 | |||
├─ obs_url | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ state | null | 非必须 | |||
├─ published | boolean | 非必须 | |||
├─ createdBy | number | 非必须 | |||
├─ tenant | number | 非必须 | |||
├─ home_page | string | 非必须 | |||
├─ css | null | 非必须 | |||
├─ config | null | 非必须 | |||
├─ git_group | null | 非必须 | |||
├─ project_name | null | 非必须 | |||
├─ constants | null | 非必须 | |||
├─ data_handler | object | 非必须 | |||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ description | null | 非必须 | |||
├─ latest | number | 非必须 | |||
├─ platform_history | null | 非必须 | |||
├─ editor_url | null | 非必须 | |||
├─ branch | null | 非必须 | |||
├─ visit_url | null | 非必须 | |||
├─ is_demo | null | 非必须 | |||
├─ image_url | null | 非必须 | |||
├─ is_default | null | 非必须 | |||
├─ template_type | null | 非必须 | |||
├─ set_template_time | null | 非必须 | |||
├─ set_template_by | null | 非必须 | |||
├─ framework | string | 非必须 | |||
├─ global_state | object [] | 非必须 | item 类型: object | ||
├─ hjkhjk | object | 非必须 | |||
├─ id | string | 非必须 | |||
├─ storeState | object | 非必须 | |||
├─ hj | number | 非必须 | |||
├─ getters | object | 非必须 | |||
├─ hand | object | 非必须 | |||
├─ tpye | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ actions | object | 非必须 | |||
├─ default_lang | null | 非必须 | |||
├─ extend_config | null | 非必须 | |||
├─ assets_url | string | 非必须 | |||
├─ data_hash | string | 非必须 | |||
├─ desc | null | 非必须 | 描述 | ||
├─ createdBy | object | 非必须 | 创建区块分类的用户 | ||
├─ id | number | 非必须 | |||
├─ username | string | 非必须 | 用户名 | ||
string | 非必须 | 邮箱 | |||
├─ resetPasswordToken | string | 非必须 | w3用户名 | ||
├─ blocked | null | 非必须 | 账号是否被拉黑 | ||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ block | null | 非必须 | |||
├─ is_admin | boolean | 非必须 | 是否是超级管理员 | ||
├─ is_public | null | 非必须 | 是否为公共账号 | ||
├─ updatedBy | object | 非必须 | 修改区块分类的用户信息 | ||
├─ id | number | 非必须 | |||
├─ username | string | 非必须 | |||
string | 非必须 | ||||
├─ resetPasswordToken | string | 非必须 | |||
├─ blocked | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ block | null | 非必须 | |||
├─ is_admin | boolean | 非必须 | |||
├─ is_public | null | 非必须 | |||
├─ created_at | string | 非必须 | |||
├─ updated_at | string | 非必须 | |||
├─ category_id | string | 非必须 | 区块分组key | ||
├─ blocks | string [] | 非必须 | 关联区块数据 | item 类型: string | |
├─ | 非必须 | ||||
locale | string | 非必须 |