Skip to content
后端API

应用工具类管理 ​

修改工具类 ​

基本信息 ​

Path: /app-center/api/apps/extension/update

Method: POST

接口描述:

请求参数 ​

Headers

参数名称参数值是否必须示例备注
Content-Typeapplication/json是

Body

名称类型是否必须默认值备注其他信息
categorystring非必须类型: utils: 工具类 bridge: 桥接源

枚举: utils,bridge

枚举备注: 类型: utils: 工具类 bridge: 桥接源

typestring非必须分类: npm 二方包 function 函数

枚举: npm,function

namestring非必须名称
appstring非必须从属应用id
contentobject非必须工具类内容 对象
├─ typestring非必须
├─ valuestring非必须
idnumber必须

返回数据 ​

名称类型是否必须默认值备注其他信息
dataobject非必须工具类详情信息
├─ idnumber非必须
├─ namestring非必须名称
├─ typestring非必须类型
├─ contentobject非必须内容
├─ typestring非必须
├─ valuestring非必须
├─ appnumber非必须关联appId
├─ categorystring非必须分类
├─ created_atstring非必须创建时间
├─ updated_atstring非必须更新时间
localestring非必须

创建工具类 ​

基本信息 ​

Path: /app-center/api/apps/extension/create

Method: POST

接口描述:

请求参数 ​

Headers

参数名称参数值是否必须示例备注
Content-Typeapplication/json是

Body

名称类型是否必须默认值备注其他信息
categorystring必须utils 工具类 bridge 桥接源

枚举: utils,bridge

枚举备注: utils 工具类 bridge 桥接源

typestring必须npm 二方包 function 函数

枚举: npm,function

namestring必须名称
appnumber必须所属应用id
contentobject必须
├─ typestring必须
├─ valuestring必须

返回数据 ​

名称类型是否必须默认值备注其他信息
dataobject非必须
├─ idnumber非必须
├─ namestring非必须名称
├─ typestring非必须类型
├─ contentobject非必须内容
├─ typestring非必须
├─ valuestring非必须
├─ appnumber非必须关联appId
├─ categorystring非必须分类
├─ created_atstring非必须创建时间
├─ updated_atstring非必须更新时间
localestring非必须

删除工具类 ​

基本信息 ​

Path: /app-center/api/apps/extension/delete

Method: GET

接口描述:

删除时校验此 工具类是否从属于这个应用

请求参数 ​

Query

参数名称是否必须示例备注
id是333工具类id
app是12所属应用id

返回数据 ​

名称类型是否必须默认值备注其他信息
dataobject非必须
├─ idnumber非必须
├─ namestring非必须名称
├─ typestring非必须类型
├─ contentobject非必须内容
├─ typestring非必须
├─ valuestring非必须
├─ appnumber非必须关联appId
├─ categorystring非必须分类
├─ created_atstring非必须创建时间
├─ updated_atstring非必须更新时间
localestring非必须

工具类查询列表 ​

基本信息 ​

Path: /app-center/api/apps/extension/list

Method: GET

接口描述:

请求参数 ​

Query

参数名称是否必须示例备注
app否12应用id
category否utils两种取值:utils 工具类 bridge 桥接源

返回数据 ​

名称类型是否必须默认值备注其他信息
dataobject []非必须

item 类型: object

├─ idnumber非必须
├─ namestring非必须名称
├─ typestring非必须类型

枚举: npm,function

├─ contentobject非必须内容
├─ typestring非必须
├─ valuestring非必须
├─ appnumber非必须关联appId
├─ categorystring非必须分类

枚举: utils,bridge

├─ created_atstring非必须创建时间
├─ updated_atstring非必须更新时间
localestring非必须