- 接口文档
- 前台
- 推荐
- 首页
- 登录/关注
- 悬浮窗
- 自定义弹窗
- SEO
- 广告
- 原生登录接口
获取社区模版关系表中控制的模版
开发中
GET
https://openatom.atomgit.com/api/template/queryTemplateByCommunityId
请求参数
Header 参数
X-ATOMGIT-POP-COMMUNITY
string
社区CODE
默认值:
openatom
Body 参数application/json
object {0}
示例
{}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://openatom.atomgit.com/api/template/queryTemplateByCommunityId' \
--header 'X-ATOMGIT-POP-COMMUNITY: openatom' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
templateId
integer
模板ID
templateName
null
模板名称
templateType
null
模板类型
tempControl
string
模板具体控制
templateUse
null
必需
示例
{
"code": 200,
"msg": "成功",
"data": {
"templateId": 1,
"communityId": 1,
"templateName": null,
"templateType": null,
"tempControl": "{\"type\":\"1\",\"options\":{\"Carousel\":\"1\",\"CommunityCard\":\"1\",\"CommunityData\":\"1\",\"Developer\":\"1\",\"OperationCard\":\"1\",\"Organization\":\"1\",\"Recommend\":\"1\",\"Repository\":\"1\",\"Selected\":\"1\"}}",
"templateUse": null
}
}
修改于 2024-10-22 10:51:15