Skip to content

功能概述

海中企业家商会微信小程序系统

用户授权等于与否都会有数据反馈,唯一区别是消息提醒模块中未登录用户不会携带个人消息提醒反馈

  • 轮播图
  • 通知公告
  • 活动信息
  • 相册
  • 资讯

接口访问

接口地址

home/data

请求方式 Method

GET

Header - Authorization Type : Bearer Token

属性类型长度必填默认值说明访问版本
tokenstring32true用户身份标识令牌-

返回值

属性类型必填说明注意
carouselDataArraytrue首页轮播图该数组下至少一条数据
noticeDataArrayfalse首页公告可能为空,为空不展示
activityDataArrayfalse首页活动可能为空,为空不展示
albumDataArrayfalse首页相册可能为空,为空不展示
infoDataArrayfalse首页资讯可能为空,为空不展示

carouselData

属性类型必填说明
idintegertrue轮播图ID
titlestringtrue轮播图标题
imageUrlstringtrue轮播图图片地址
jumpMethodintegertrue跳转配置内容
jumpModeintegertrue点击后形式 1.无反应 2.调整小程序指定位置 3.打开H5 4.跳转指定小程序 5.弹窗(文字)6.弹窗(图片)

noticeData

属性类型必填说明
idintegertrue消息通知ID
titlestringtrue消息通知标题
noticeTypeintegertrue通知类型 1. 全局通知 2. 系统消息 3. 用户消息
createTimestringtrue通知时间

activityData

属性类型必填说明
idintegertrue活动ID
titlestringtrue活动标题
imageUrlstringtrue活动图片地址
eventAddressstringtrue活动场所
navigationAddressstringtrue导航地址
longitudestringtrue经度
latitudestringtrue纬度
signUpNumberstringtrue报名人数
contactNumberstringtrue联系电话
activityTimeTypeintegertrue活动时间类型 1.准确时间 2.描述时间
activityTimeDescriptionintegertrue活动时间描述,当activity_time_type = 2时,该字段有效
activityTimeintegertrue活动时间,当activity_time_type = 1时,该字段有效

albumData

属性类型必填说明
idintegertrue相册ID
titlestringtrue相册标题
imageUrlstringtrue相册封面图片地址

infoData

属性类型必填说明
idintegertrue资讯ID
titlestringtrue资讯标题
imageUrlstringtrue资讯图片地址
createTimestringtrue资讯创建时间

返回示例

{
    "response": {
        "carouselData": [
            {
                "id": 2,
                "title": "测试数据2",
                "imageUrl": "",
                "jumpMethod": "",
                "jumpMode": 0
            },
            {
                "id": 1,
                "title": "测试数据1",
                "imageUrl": "",
                "jumpMethod": "",
                "jumpMode": 0
            }
        ],
        "noticeData": [
            {
                "id": 1,
                "title": "基础通知111",
                "noticeType": 1,
                "createTime": "2024-12-14 11:53:50"
            }
        ],
        "activityData": [
            {
                "id": 2,
                "title": "测试活动内容",
                "imageUrl": "",
                "eventAddress": "",
                "navigationAddress": "",
                "longitude": "",
                "latitude": "",
                "signUpNumber": 0,
                "contactNumber": "",
                "activityTimeType": 2,
                "activityTimeDescription": "三天连夜服务",
                "activityTime": null
            },
            {
                "id": 1,
                "title": "测试活动1张三",
                "imageUrl": "",
                "eventAddress": "",
                "navigationAddress": "",
                "longitude": "",
                "latitude": "",
                "signUpNumber": 0,
                "contactNumber": "",
                "activityTimeType": 1,
                "activityTimeDescription": "",
                "activityTime": "2025-01-01 09:24:12"
            }
        ],
        "albumData": [
            {
                "id": 1,
                "title": "相册111111",
                "imageUrl": ""
            }
        ],
        "infoData": [
            {
                "id": 1,
                "title": "资讯1111",
                "imageUrl": "",
                "createTime": "2024-12-14 11:53:09"
            }
        ]
    },
    "requestId": "eb869f20-0d55-474c-b38b-2cb01afcaeb9"
}