企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 示例 接口名称:更新广告 接口地址:域名/index.php?m=api&c=advertisement&a=getAdvertisementList 请求方式:GET 数据类型:JSON 响应类型:JSON 请求参数: | 参数名称 | 是否必须 | 类型 | 默认值 | 描述 | | --- | --- | --- | --- | --- | | cid | 否 | int | | 绑定分类id | | page_size | 是 | int | | 每页数量 | | current_page | 是 | int | | 当前页码 | 响应数据: | 参数名称 | 是否必须 | 类型 | 默认值 | 描述 | | --- | --- | --- | --- | --- | | message | 是 | string | | 返回信息 | | code | 是 | int | | 状态码 | | data | 是 | array | | 返回插入成功的id或false | | --pagination | 是 | array | | 分页数据 | | ---- total | 是 | int | | 总数量 | | ---- page_count | 是 | int | | 分页数量 | | ---- page_size | 是 | int | | 每页数量 | | ---- current_page | 是 | int | | 当前页码 | | --list | 是 | array | | 查询数据列表 | | -----id | 是 | int | | 广告自增id | | -----name | 是 | string | | 广告名称 | | -----cid | 是 | int | | 广告位置id 首页广告 2分类页广告 3帖子详情页广告 4友情链接 | | -----image | 是 | string | | 广告图片地址 | | -----type | 是 | int | | 广告类别 1文字 2图片 | | -----url_path | 是 | string | | 广告跳转地址 | | -----sort | 是 | int | | 广告排序 | 成功响应示列: ~~~ { "code": 1001, "message": "响应成功", "data": { "pagination": { "total": 2, "page_count": 1, "current_page": 1, "page_size": 10 }, "list": [ { "id": "3", "name": "qiniu", "cid": "0", "image": "123", "type": "2", "url_path": "https://test.jkb.com/calfbbs/index.php?m=api&c=Advertisement&a=addAdvertisement&name=qiniu&type=1&image=123&url_path=121", "sort": null }, { "id": "4", "name": "qiniu", "cid": "0", "image": "123", "type": "2", "url_path": "https://test.jkb.com/calfbbs/index.php?m=api&c=Advertisement&a=delAdvertisement&name=qiniu&type=1&image=123&url_path=121", "sort": null } ] } } ~~~ 失败响应示列: ~~~ { "code": 2001, "message": "响应错误", "data": { "pagination": { "total": 0, "page_count": 0, "current_page": 1, "page_size": 10 }, "list": [] } } ~~~