跳到主要内容

博物馆

分页获取博物馆信息列表

获取博物馆列表及轮播图。博物馆首页轮播图同样需要调用此接口获取,点击轮播图即打开对应的博物馆详情页面。

  • URL/app-api/museum/article/getMuseumArticlePage
  • MethodPOST
  • 需要鉴权:是

请求参数

参数类型约束说明
titleString-标题,搜索时传值
recommendBannerBoolean-是否轮播图,true 获取轮播,false 获取列表
articleTypeLong必传文章类型,1-博物馆,2-新闻,3-展讯
pageNoLong-页码
pageSizeLong-页大小,默认 10,传 -1 不分页
使用说明
  1. 获取轮播图recommendBanner=true,获取轮播图数据。
  2. 获取博物馆列表:根据 articleType 获取对应类型的列表。

请求示例

{
"articleType": 1,
"recommendBanner": true
}

响应示例

{
"code": 0,
"data": {
"list": [
{
"id": 43,
"articleType": 1,
"title": "博物馆1",
"author": "11",
"picUrl": "https://example.com/image.png",
"introduction": "",
"browseCount": "0",
"sort": 0,
"status": 0,
"recommendHot": false,
"recommendBanner": true,
"content": "<p>博物馆详情内容</p>",
"createTime": 1729956061000,
"museumProductRespVOList": [
{
"id": 43,
"museumId": 43,
"title": "藏品1",
"picUrl": "https://example.com/image.png",
"introduction": "",
"sort": 0,
"status": 0,
"content": "<p>藏品详情</p>",
"createTime": 1729956061000
}
]
}
],
"total": 1
},
"msg": "成功"
}

响应说明

博物馆字段:

参数类型说明
idLong博物馆编号
articleTypeLong文章类型,1-博物馆,2-新闻,3-展讯
titleString标题
authorString作者
picUrlString封面图/轮播图
introductionString简介
sortLong排序
statusLong状态,0-开启,1-关闭
recommendBannerBoolean是否在轮播图展示
contentString博物馆详情
createTimeLong发布时间
browseCountLong浏览次数
shareTimesLong分享次数
commentTimesLong评论次数
collectTimesLong收藏次数
likeTimesLong点赞次数
isCollectBoolean当前用户是否收藏
isLikeBoolean当前用户是否点赞
museumProductRespVOListArray藏品集合(仅博物馆类型返回)

藏品字段(museumProductRespVOList):

参数类型说明
idLong藏品编号
museumIdLong博物馆编号
titleString藏品标题
picUrlString藏品封面图
introductionString藏品简介
sortLong排序
statusLong状态,0-开启,1-关闭
contentString藏品详情
createTimeLong发布时间
browseCountLong浏览次数
shareTimesLong分享次数
commentTimesLong评论次数
collectTimesLong收藏次数
likeTimesLong点赞次数

获取博物馆详情信息

获取博物馆的详情数据,包含藏品列表。

  • URL/app-api/museum/article/getMuseumArticleInfo
  • MethodPOST
  • 需要鉴权:是

请求参数

参数类型约束说明
idLong必传博物馆数据编号

请求示例

{
"id": 40
}

响应示例

{
"code": 0,
"data": {
"id": 43,
"articleType": 1,
"title": "博物馆1",
"author": "11",
"picUrl": "https://example.com/image.png",
"introduction": "",
"browseCount": "0",
"sort": 0,
"status": 0,
"recommendHot": false,
"recommendBanner": true,
"content": "<p>博物馆详情内容</p>",
"shareTimes": null,
"commentTimes": 4,
"collectTimes": 4,
"likeTimes": 103,
"createTime": 1729956061000,
"museumProductRespVOList": [
{
"id": 43,
"museumId": 43,
"title": "藏品1",
"picUrl": "https://example.com/image.png",
"introduction": "",
"sort": 0,
"status": 0,
"content": "<p>藏品详情</p>",
"createTime": 1729956061000
}
]
},
"msg": "成功"
}

响应说明

响应字段同「分页获取博物馆信息列表」中的博物馆字段及藏品字段。


获取博物馆藏品详情

获取单个藏品的详细信息。

  • URL/app-api/museum/article/getMuseumProductInfo
  • MethodPOST
  • 需要鉴权:是

请求参数

参数类型约束说明
idLong必传藏品数据编号

请求示例

{
"id": 40
}

响应示例

{
"code": 0,
"data": {
"id": 40,
"museumId": 43,
"title": "藏品4",
"picUrl": "https://example.com/image.png",
"introduction": "",
"sort": 1,
"status": 0,
"content": "<p>藏品详情内容</p>",
"shareTimes": null,
"commentTimes": null,
"collectTimes": null,
"likeTimes": 3,
"createTime": 1729956061000
},
"msg": "成功"
}

响应说明

参数类型说明
idLong藏品编号
museumIdLong博物馆编号
titleString藏品标题
picUrlString藏品封面图
introductionString藏品简介
sortLong排序
statusLong状态,0-开启,1-关闭
contentString藏品详情
createTimeLong发布时间
browseCountLong浏览次数
shareTimesLong分享次数
commentTimesLong评论次数
collectTimesLong收藏次数
likeTimesLong点赞次数

点赞/收藏

  • URL/app-api/member/action/createLikesAction
  • MethodPOST
  • 需要鉴权:是

请求参数

参数类型约束说明
articleIdLong必传文章/藏品编号
typeLong必传类型,1-资讯,2-博物馆

请求示例

{ "articleId": 100, "type": 2 }

响应示例

{ "code": 0, "data": null, "msg": "成功" }

响应说明

无返回数据,code = 0 即表示操作成功。


取消点赞/收藏

  • URL/app-api/member/action/cancelLikesAction
  • MethodPOST
  • 需要鉴权:是

请求参数

参数类型约束说明
articleIdLong必传文章/藏品编号
typeLong必传类型,1-资讯,2-博物馆

请求示例

{ "articleId": 100, "type": 2 }

响应示例

{ "code": 0, "data": null, "msg": "成功" }

响应说明

无返回数据,code = 0 即表示操作成功。


我的收藏-资讯列表

  • URL/app-api/member/action/likesActionArticlePage
  • MethodPOST
  • 需要鉴权:是

请求参数

参数类型约束说明
pageNoLong可选页码,默认 1
pageSizeLong可选每页条数,默认 10

请求示例

{ "pageNo": 1, "pageSize": 10 }

响应示例

{
"code": 0,
"data": [
{
"id": 100,
"articleType": 1,
"title": "资讯标题",
"author": "作者",
"picUrl": "http://...",
"introduction": "简介",
"browseCount": "128",
"sort": 0,
"status": 0,
"content": "<p>内容</p>",
"shareTimes": 10,
"commentTimes": 5,
"collectTimes": 20,
"likeTimes": 50,
"createTime": 1729956061000
}
],
"msg": "成功"
}

响应说明

响应字段同「获取博物馆资讯列表」中的列表项。


我的收藏-博物馆列表

  • URL/app-api/member/action/likesActionMuseumArticlePage
  • MethodPOST
  • 需要鉴权:是

请求参数

参数类型约束说明
pageNoLong可选页码,默认 1
pageSizeLong可选每页条数,默认 10

请求示例

{ "pageNo": 1, "pageSize": 10 }

响应示例

{
"code": 0,
"data": [
{
"id": 200,
"articleType": 2,
"title": "博物馆标题",
"author": "作者",
"picUrl": "http://...",
"introduction": "简介",
"browseCount": "256",
"sort": 0,
"status": 0,
"content": "<p>内容</p>",
"shareTimes": 8,
"commentTimes": 3,
"collectTimes": 15,
"likeTimes": 30,
"createTime": 1729956061000
}
],
"msg": "成功"
}

响应说明

响应字段同「首页获取博物馆资讯列表」中的列表项。