支持第三方调用
支持沙箱环境调用
公共请求参数
名称 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| app_id | string | 是 | 小程序appid |
| access_token | string | 是 | 小程序调用凭证 |
业务请求参数
名称 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| page_no | int32 | 是 | 页码 |
| page_size | int32 | 是 | 每页条数 |
| component_id_list | list_string | 否 | 组件id |
| component_name | string | 否 | 组件名称 |
请求示例
{
"page_no":1,
"page_size":20,
"component_id_list":[
"string"
],
"component_name":"string"
}
名称 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
data | struct | 否 | |
component_list | list_struct | 否 | 组件列表 |
component_id | string | 否 | 组件id |
solution_code | string | 否 | 组件类型 |
version | int32 | 否 | 组件版本 |
service_name | string | 否 | 服务名称 |
service_img | string | 否 | 服务图片 |
category_id | string | 否 | 类目id |
service_link | string | 否 | 服务链接 |
out_component_id | string | 否 | 调用方组件id |
status | string | 否 | 状态 |
total | int64 | 否 | 总数 |
| success | bool | 否 | 是否成功 |
| msg | string | 否 | 说明,正确响应时为 success,错误响应时为错误描述 |
| code | int32 | 否 | 错误码,正确响应时为 0,错误响应时非0 |
{
"data":{
"component_list":[
{
"component_id":"678601cc32194e00016ff72b",
"solution_code":"FREE_RESERVATION",
"version":1,
"service_name":"预约",
"service_img":"http://qimg.xiaohongshu.com/arkcamp/1040g0qo317aegd8in6005pm80sqgldo4cp6ukfgd",
"category_id":"642ac5e696c43100015e1e00",
"service_link":"xhsdiscover://miniapp/6628ae01e9a3a900014d425f",
"out_component_id":"6256438774ad1c0001d49b5f",
"status":"WAIT_AUDIT"
}
],
"total":1
},
"success":true,
"msg":"",
"code":0
}
参见错误码