文档

公告服务

更新时间:
一键部署

1.1添加消息

Path路径

/solution/community/notice/add

请求方式

Post

接口版本

1.0.3

参数

类型

必填

描述

title

String

公告标题。最大长度为20。只允许数字、中英文字符。

publications

JSONArray

发布消息中的元素分组列表。每个元素分组最少包含一条文本,可以包含一个图片。最多5组。

text

String

单条公告文本内容。最大长度1000。

uploadId

String

公告图片上传到OSS后的uploadId

type

Integer

通知类型:1社区公告、2账单通知、3缴费结果、4业务受理、5业务办结、6小区通知、7活动推荐、8物业服务、9便民生活

isTop

Integer

是否置顶:1是,0否

communityId

Long

小区ID

publishType

Integer

发送类型,1-支付宝生活号,2-支付宝小程序通知,4-天猫精灵

spaceIds

List<String>

目标空间ID列表

消息ID。数据类型为String。

1.2更新消息

Path路径

/solution/community/notice/update

请求方式

post

接口版本

1.0.0

参数

类型

必填

描述

messageId

Long

消息ID

communityId

Long

小区ID

isTop

Integer

是否置顶:1是,0否

1.3查询消息

消息按照添加时间倒叙排列,isTop设置为1的数据排序优于isTop设置为0的数据

Path路径

/solution/community/notice/query

请求方式

post

接口版本

1.0.9

参数

类型

必填

描述

communityId

Long

小区ID

pageNo

Integer

页码

pageSize

Integer

页面条数

publishType

Integer

按照发送类型查询,0-所有公告消息,1-支付宝生活号,2-支付宝小程序通知,4-天猫精灵

type

Integer

通知类型:1社区公告、2账单通知、3缴费结果、4业务受理、5业务办结、6小区通知、7活动推荐、8物业服务、9便民生活

topFirst

Integer

返回结果是否以发送参数“isTop”排序。1以isTop排序,0不以isTop排序。缺省为1

spaceId

String

空间ID

参数

类型

描述

total

Integer

消息总数

pageNo

Integer

页码

pageSize

Integer

页面条数

data

JSONArray

数据列表

messageId

Long

消息Id

title

String

消息名称

publications

JSONArray

发布的元素分组列表

text

String

消息文本内容

pictureUrl

String

消息图片url

type

Integer

通知类型:1社区公告、2账单通知、3缴费结果、4业务受理、5业务办结、6小区通知、7活动推荐、8物业服务、9便民生活

isTop

Integer

是否置顶:1是,0否

gmtCreate

Long

创建时间

publishType

Integer

发送类型,1-支付宝生活号,2-支付宝小程序通知,4-天猫精灵。支持发送类型的按位或。

publishRange

Integer

发布类型。0-到整个小区;1-到指定的空间

spaceIds

List<String>

发送的目标空间ID列表。publishRange=0时有效

1.4删除消息

Path路径

/solution/community/notice/delete

请求方式

post

接口版本

1.0.0

参数

类型

必填

描述

messageIds

List<Integer>

消息ID列表

communityId

Long

小区ID

1.5获取消息详情

Path路径

/solution/community/notice/get

请求方式

post

接口版本

1.0.6

参数

类型

必填

描述

communityId

Long

小区ID

messageId

Long

小区公告ID

参数

类型

描述

messageId

Long

消息Id

title

String

消息名称

publications

JSONArray

发布的元素分组列表

text

String

消息文本内容

pictureUrl

String

消息图片url

type

Integer

通知类型:1社区公告、2账单通知、3缴费结果、4业务受理、5业务办结、6小区通知、7活动推荐、8物业服务、9便民生活

isTop

Integer

是否置顶:1是,0否

gmtCreate

Long

创建时间

publishRange

Integer

发布类型。0-到整个小区;1-到指定的空间

spaceIds

JSONArray

发送的目标空间ID列表。publishRange=0时有效

  • 本页导读 (0)
文档反馈