🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 获取栏目值 ### 简要描述 获取栏目值,系统将根据参数计算出对应的栏目值 ### 请求URL /api/v1/stl/channel ### 请求方式 GET ### 请求参数说明 ![](https://box.kancloud.cn/f3707e1aad7bc82b430272c86e308494_305x234.png) /api/v1/stl/channel的其他参数与<stl:channel>标签一致。 ### 请求示例 GET /api/v1/stl/channel?siteId=1 ### 返回示例 { "value": { "id": 1, "channelName": "首页", "siteId": 1, "contentModelPluginId": "", "contentRelatedPluginIds": "", "parentId": 0, "parentsPath": "", "parentsCount": 0, "childrenCount": 66, "isLastNode": false, "indexName": "首页", "groupNameCollection": "", "taxis": 1, "addDate": "2018-02-27 14:48:50", "imageUrl": "", "content": "", "contentNum": 0, "filePath": "", "channelFilePathRule": "", "contentFilePathRule": "", "linkUrl": "", "linkType": "None", "channelTemplateId": 0, "contentTemplateId": 0, "keywords": "", "description": "", "additional": { "isChannelAddable": true, "isContentAddable": true, "isChannelCreatable": true, "isContentCreatable": true, "isCreateChannelIfContentChanged": true, "createChannelIDsIfContentChanged": "", "contentAttributesOfDisplay": "", "transType": 5, "transSiteId": 0, "transChannelIds": "", "transChannelNames": "", "transIsAutomatic": false, "transDoneType": 0, "isPreviewContents": false, "defaultTaxisType": "OrderByTaxisDesc" }, "attributes": { "isChannelAddable": true, "isContentAddable": true, "isChannelCreatable": true, "isContentCreatable": true, "isCreateChannelIfContentChanged": true, "createChannelIDsIfContentChanged": "", "contentAttributesOfDisplay": "", "transType": 5, "transSiteId": 0, "transChannelIds": "", "transChannelNames": "", "transIsAutomatic": false, "transDoneType": 0, "isPreviewContents": false, "defaultTaxisType": "OrderByTaxisDesc" } } } ### 返回参数说明 ![](https://box.kancloud.cn/1deeb6d98b7c78bfce7c12cc6674b8d9_729x73.png) 详细字段请参考[栏目表](https://docs.siteserver.cn/model#/siteserver_Channel) ### 备注 更多返回错误代码请参考错误代码描述