简要描述:

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2026-05-09

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明

请求参数:

参数名 是否必须 类型 说明
type string 类型: index=获取首页素材 registration=获取报名的素材

返回示例:

正确时返回:

index=registration
{
    "status": 200,
    "msg": "成功",
    "data": {
        "top": {
            "type": 1,
            "name": "5号乐馆 · 艺术空间",
            "tags": [
                "小班教学",
                "专业师资",
                "支持试听"
            ],
            "description": "",
            "text_content": "专注钢琴、吉他、古筝、舞蹈、声乐、编曲等艺术课程,让 兴趣被看见,让热爱慢慢发光。",
            "image_path": "",
            "video_path": "",
            "subtitle": "ART SPACE",
            "title": "艺术成长馆"
        },
        "banner": [
            {
                "type": 2,
                "name": "古筝雅集体验课",
                "tags": [
                    "国风推荐"
                ],
                "description": "弦音入画,感受传统乐器的东方韵味。",
                "text_content": "",
                "image_path": "http://cms5v.com/uploads/material/image/2026/07/03/6a47649f62d02.png",
                "video_path": "",
                "subtitle": "",
                "title": "首页Banner"
            }
        ],
        "notice": [
            {
                "notice_id": 2,
                "title": "test111",
                "content": "<p>test111</p>",
                "created_at": "2026-07-07 17:26:38"
            },
            {
                "notice_id": 1,
                "title": "test111",
                "content": "<p>test111</p>",
                "created_at": "2026-07-07 17:26:29"
            }
        ]
    },
    "other": []
}


type=registration
{
    "status": 200,
    "msg": "成功",
    "data": {
        "promotional_video": [
            {
                "show_type": 6,
                "type": 3,
                "name": "宣传视频",
                "tags": [],
                "description": "",
                "text_content": "",
                "image_path": "",
                "video_path": "http://cms5v.com/uploads/material/video/2026/07/03/6a4762ff3ce7d.mp4",
                "subtitle": "了解更多",
                "title": "宣传视频"
            }
        ],
        "student_works": [
            {
                "show_type": 5,
                "type": 2,
                "name": "学员作品",
                "tags": [],
                "description": "",
                "text_content": "",
                "image_path": "http://cms5v.com/uploads/material/image/2026/07/03/6a4762afeb3c5.jpg",
                "video_path": "",
                "subtitle": "成果展示",
                "title": "学员作品"
            }
        ],
        "site_environment": [
            {
                "show_type": 4,
                "type": 2,
                "name": "场地环境",
                "tags": [],
                "description": "",
                "text_content": "",
                "image_path": "http://cms5v.com/uploads/material/image/2026/07/03/6a47628e7d0ca.jpg",
                "video_path": "",
                "subtitle": "教学环境",
                "title": "场地环境"
            }
        ],
        "institutional_introduction": [
            {
                "show_type": 3,
                "type": 1,
                "name": "机构介绍",
                "tags": [],
                "description": "",
                "text_content": "我们专注于青少儿艺术素养培养,提供器乐、舞蹈、声 乐、美术等多方向课程,注重兴趣激发、专业训练与成果 展示并重。",
                "image_path": "",
                "video_path": "",
                "subtitle": "品牌展示",
                "title": "机构介绍"
            }
        ]
    },
    "other": []
}

错误时返回:

{
    "status": 0,
    "msg": "提交失败"
}

type=index返回参数说明:

参数名 类型 说明
top array 单数组,首页平台介绍
banner array 多数组,首页轮播图
参数名 类型 说明
top.type int 类型 1文字 2图片 3视频
top.name string 名称
top.tags array 标签数组
top.description string 简介
top.text_content string 文字内容
top.image_path string 图片路径
top.video_path string 商品路径
top.cate_title string 分类标题
top.cate_subtitle string 分类子标题
banner.type int 类型 1文字 2图片 3视频
banner.name string 名称
banner.tags array 标签数组
banner.description string 简介
banner.text_content string 文字内容
banner.image_path string 图片路径
banner.video_path string 商品路径
banner.cate_title string 分类标题
banner.cate_subtitle string 分类子标题
notice.notice_id string 公告id
notice.title string 公告标题
notice.content string 公告内容【含html】
notice.created_at string 创建时间

type=registration返回参数说明:

参数名 类型 说明
institutional_introduction array 单数组,课程报名页-机构介绍
site_environment array 多数组,课程报名页-场地环境
student_works array 多数组,课程报名页-学员作品
promotional_video array 多数组,课程报名页-宣传视频
参数名 类型 说明
institutional_introduction.type int 类型 1文字 2图片 3视频
institutional_introduction.name string 名称
institutional_introduction.tags array 标签数组
institutional_introduction.description string 简介
institutional_introduction.text_content string 文字内容
institutional_introduction.image_path string 图片路径
institutional_introduction.video_path string 商品路径
tinstitutional_introductionop.cate_title string 分类标题
institutional_introduction.cate_subtitle string 分类子标题
site_environment.type int 类型 1文字 2图片 3视频
site_environment.name string 名称
site_environment.tags array 标签数组
site_environment.description string 简介
site_environment.text_content string 文字内容
site_environment.image_path string 图片路径
site_environment.video_path string 商品路径
site_environment.cate_title string 分类标题
site_environment.cate_subtitle string 分类子标题
student_works.type int 类型 1文字 2图片 3视频
student_works.name string 名称
student_works.tags array 标签数组
student_works.description string 简介
student_works.text_content string 文字内容
student_works.image_path string 图片路径
student_works.video_path string 商品路径
student_worksstudent_works.cate_title string 分类标题
student_works.cate_subtitle string 分类子标题
promotional_videopromotional_video.type int 类型 1文字 2图片 3视频
promotional_video.name string 名称
promotional_video.tags array 标签数组
promotional_video.description string 简介
promotional_video.text_content string 文字内容
promotional_video.image_path string 图片路径
promotional_video.video_path string 商品路径
promotional_video.cate_title string 分类标题
promotional_video.cate_subtitle string 分类子标题

备注:

作者:admin  创建时间:2026-07-03 17:01
最后编辑:admin  更新时间:2026-07-17 19:24
上一篇:
下一篇: