ThingsKit物联网平台API文档-系统管理(平台通知-通知管理)

我的通知分页

接口地址:/api/yt/notice_user/page{?orderFiled,orderType,page,pageSize,type}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
pagepagequerytruestring
pageSizepageSizequerytruestring
typetype,可用值:MEETING,NOTICE,OTHERqueryfalsestring
orderFiledorderFiledqueryfalsestring
orderTypeorderType,可用值:ASC,DESCqueryfalsestring

响应参数:

参数名称参数说明类型
itemsarray
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name租户名称string
noticeId通知IDstring
readDate阅读时间string(date-time)
readStatus阅读状态 0:未读 1:已读string
receiverId接收者IDstring
receiverName接收者string
roleIds租户角色列表array
senderName发送者string
sysNotice通知管理通知管理
avatar头像string
content内容string
createTime创建时间string
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name租户名称string
pointId根据receiverType不同变化,0:传null,1:组织id,2:部门id,3:用户idstring
receiverType接收者(字典值receiver_type) 0:全部 1:组织 2:部门 3:个人integer
roleIds租户角色列表array
senderDate发送时间string
senderName发送者string
status发送状态(字典值draft_status) 0:草稿 1:已发布integer
tenantExpireTime租户到期时间string
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
title标题string
type通知类型,可用值:MEETING,NOTICE,OTHERstring
updateTime更新时间string
updater更新用户string
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
type通知类型,可用值:MEETING,NOTICE,OTHERstring
updateTime更新时间string(date-time)
updater更新用户string
user用户信息UserDTO
accountExpireTime账号失效时间string
activateToken激活tokenstring
avatar头像string
createTime创建时间string
creator创建用户string
customerId客户IDstring
email邮箱string
enabled账号状态boolean
hasPassword是否已重置密码boolean
idIDstring
level角色级别:0:超级管理员;1:平台管理员 2:租户账号 3:租户下的账号integer
organizationIds所辖组织idsarray
password密码string
phoneNumber电话号码string
realName真实名称string
remark备注string
roleIds角色idsarray
roles角色信息列表array
roleId角色IDstring
roleName角色名称string
tbUserTB的UserIdstring
tenantId租户IDstring
tenantName租户名称string
updateTime更新时间string
updater更新用户string
userStatusEnum用户状态,可用值:DISABLED,EXPIRED,NORMALstring
username用户名string
totalinteger(int32)

响应示例:

{
	"items": [
		{
			"createTime": "",
			"creator": "",
			"defaultConfig": "",
			"description": "",
			"enabled": false,
			"icon": "",
			"id": "",
			"name": "",
			"noticeId": "",
			"readDate": "",
			"readStatus": "",
			"receiverId": "",
			"receiverName": "",
			"roleIds": [],
			"senderName": "",
			"sysNotice": {
				"avatar": "",
				"content": "",
				"createTime": "",
				"creator": "",
				"defaultConfig": "",
				"description": "",
				"enabled": false,
				"icon": "",
				"id": "",
				"name": "",
				"pointId": "",
				"receiverType": 0,
				"roleIds": [],
				"senderDate": "",
				"senderName": "",
				"status": 0,
				"tenantExpireTime": "",
				"tenantId": "",
				"tenantProfileId": "",
				"tenantStatus": "",
				"title": "",
				"type": "",
				"updateTime": "",
				"updater": ""
			},
			"tenantExpireTime": "",
			"tenantId": "",
			"tenantProfileId": "",
			"tenantStatus": "",
			"type": "",
			"updateTime": "",
			"updater": "",
			"user": {
				"accountExpireTime": "",
				"activateToken": "",
				"avatar": "",
				"createTime": "",
				"creator": "",
				"customerId": "",
				"email": "",
				"enabled": false,
				"hasPassword": false,
				"id": "",
				"level": 0,
				"organizationIds": [],
				"password": "",
				"phoneNumber": "",
				"realName": "",
				"remark": "",
				"roleIds": [],
				"roles": [
					{
						"roleId": "",
						"roleName": ""
					}
				],
				"tbUser": "",
				"tenantId": "",
				"tenantName": "",
				"updateTime": "",
				"updater": "",
				"userStatusEnum": "",
				"username": ""
			}
		}
	],
	"total": 0
}

查看人员阅读情况分页

接口地址:/api/yt/notice_user/read{?orderFiled,orderType,page,pageSize}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
pagepagequerytruestring
pageSizepageSizequerytruestring
orderFiledorderFiledqueryfalsestring
orderTypeorderType,可用值:ASC,DESCqueryfalsestring

响应参数:

参数名称参数说明类型
itemsarray
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name租户名称string
noticeId通知IDstring
readDate阅读时间string(date-time)
readStatus阅读状态 0:未读 1:已读string
receiverId接收者IDstring
receiverName接收者string
roleIds租户角色列表array
senderName发送者string
sysNotice通知管理通知管理
avatar头像string
content内容string
createTime创建时间string
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name租户名称string
pointId根据receiverType不同变化,0:传null,1:组织id,2:部门id,3:用户idstring
receiverType接收者(字典值receiver_type) 0:全部 1:组织 2:部门 3:个人integer
roleIds租户角色列表array
senderDate发送时间string
senderName发送者string
status发送状态(字典值draft_status) 0:草稿 1:已发布integer
tenantExpireTime租户到期时间string
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
title标题string
type通知类型,可用值:MEETING,NOTICE,OTHERstring
updateTime更新时间string
updater更新用户string
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
type通知类型,可用值:MEETING,NOTICE,OTHERstring
updateTime更新时间string(date-time)
updater更新用户string
user用户信息UserDTO
accountExpireTime账号失效时间string
activateToken激活tokenstring
avatar头像string
createTime创建时间string
creator创建用户string
customerId客户IDstring
email邮箱string
enabled账号状态boolean
hasPassword是否已重置密码boolean
idIDstring
level角色级别:0:超级管理员;1:平台管理员 2:租户账号 3:租户下的账号integer
organizationIds所辖组织idsarray
password密码string
phoneNumber电话号码string
realName真实名称string
remark备注string
roleIds角色idsarray
roles角色信息列表array
roleId角色IDstring
roleName角色名称string
tbUserTB的UserIdstring
tenantId租户IDstring
tenantName租户名称string
updateTime更新时间string
updater更新用户string
userStatusEnum用户状态,可用值:DISABLED,EXPIRED,NORMALstring
username用户名string
totalinteger(int32)

响应示例:

{
	"items": [
		{
			"createTime": "",
			"creator": "",
			"defaultConfig": "",
			"description": "",
			"enabled": false,
			"icon": "",
			"id": "",
			"name": "",
			"noticeId": "",
			"readDate": "",
			"readStatus": "",
			"receiverId": "",
			"receiverName": "",
			"roleIds": [],
			"senderName": "",
			"sysNotice": {
				"avatar": "",
				"content": "",
				"createTime": "",
				"creator": "",
				"defaultConfig": "",
				"description": "",
				"enabled": false,
				"icon": "",
				"id": "",
				"name": "",
				"pointId": "",
				"receiverType": 0,
				"roleIds": [],
				"senderDate": "",
				"senderName": "",
				"status": 0,
				"tenantExpireTime": "",
				"tenantId": "",
				"tenantProfileId": "",
				"tenantStatus": "",
				"title": "",
				"type": "",
				"updateTime": "",
				"updater": ""
			},
			"tenantExpireTime": "",
			"tenantId": "",
			"tenantProfileId": "",
			"tenantStatus": "",
			"type": "",
			"updateTime": "",
			"updater": "",
			"user": {
				"accountExpireTime": "",
				"activateToken": "",
				"avatar": "",
				"createTime": "",
				"creator": "",
				"customerId": "",
				"email": "",
				"enabled": false,
				"hasPassword": false,
				"id": "",
				"level": 0,
				"organizationIds": [],
				"password": "",
				"phoneNumber": "",
				"realName": "",
				"remark": "",
				"roleIds": [],
				"roles": [
					{
						"roleId": "",
						"roleName": ""
					}
				],
				"tbUser": "",
				"tenantId": "",
				"tenantName": "",
				"updateTime": "",
				"updater": "",
				"userStatusEnum": "",
				"username": ""
			}
		}
	],
	"total": 0
}

我的通知详情

接口地址:/api/yt/notice_user/{id}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
ididpathtruestring

响应参数:

参数名称参数说明类型
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name租户名称string
noticeId通知IDstring
readDate阅读时间string(date-time)
readStatus阅读状态 0:未读 1:已读string
receiverId接收者IDstring
receiverName接收者string
roleIds租户角色列表array
senderName发送者string
sysNotice通知管理通知管理
avatar头像string
content内容string
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name租户名称string
pointId根据receiverType不同变化,0:传null,1:组织id,2:部门id,3:用户idstring
receiverType接收者(字典值receiver_type) 0:全部 1:组织 2:部门 3:个人integer(int32)
roleIds租户角色列表array
senderDate发送时间string(date-time)
senderName发送者string
status发送状态(字典值draft_status) 0:草稿 1:已发布integer(int32)
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
title标题string
type通知类型,可用值:MEETING,NOTICE,OTHERstring
updateTime更新时间string(date-time)
updater更新用户string
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
type通知类型,可用值:MEETING,NOTICE,OTHERstring
updateTime更新时间string(date-time)
updater更新用户string
user用户信息UserDTO
accountExpireTime账号失效时间string(date-time)
activateToken激活tokenstring
avatar头像string
createTime创建时间string(date-time)
creator创建用户string
customerId客户IDstring
email邮箱string
enabled账号状态boolean
hasPassword是否已重置密码boolean
idIDstring
level角色级别:0:超级管理员;1:平台管理员 2:租户账号 3:租户下的账号integer(int32)
organizationIds所辖组织idsarray
password密码string
phoneNumber电话号码string
realName真实名称string
remark备注string
roleIds角色idsarray
roles角色信息列表array
roleId角色IDstring
roleName角色名称string
tbUserTB的UserIdstring
tenantId租户IDstring
tenantName租户名称string
updateTime更新时间string(date-time)
updater更新用户string
userStatusEnum用户状态,可用值:DISABLED,EXPIRED,NORMALstring
username用户名string

响应示例:

{
	"createTime": "",
	"creator": "",
	"defaultConfig": "",
	"description": "",
	"enabled": false,
	"icon": "",
	"id": "",
	"name": "",
	"noticeId": "",
	"readDate": "",
	"readStatus": "",
	"receiverId": "",
	"receiverName": "",
	"roleIds": [],
	"senderName": "",
	"sysNotice": {
		"avatar": "",
		"content": "",
		"createTime": "",
		"creator": "",
		"defaultConfig": "",
		"description": "",
		"enabled": false,
		"icon": "",
		"id": "",
		"name": "",
		"pointId": "",
		"receiverType": 0,
		"roleIds": [],
		"senderDate": "",
		"senderName": "",
		"status": 0,
		"tenantExpireTime": "",
		"tenantId": "",
		"tenantProfileId": "",
		"tenantStatus": "",
		"title": "",
		"type": "",
		"updateTime": "",
		"updater": ""
	},
	"tenantExpireTime": "",
	"tenantId": "",
	"tenantProfileId": "",
	"tenantStatus": "",
	"type": "",
	"updateTime": "",
	"updater": "",
	"user": {
		"accountExpireTime": "",
		"activateToken": "",
		"avatar": "",
		"createTime": "",
		"creator": "",
		"customerId": "",
		"email": "",
		"enabled": false,
		"hasPassword": false,
		"id": "",
		"level": 0,
		"organizationIds": [],
		"password": "",
		"phoneNumber": "",
		"realName": "",
		"remark": "",
		"roleIds": [],
		"roles": [
			{
				"roleId": "",
				"roleName": ""
			}
		],
		"tbUser": "",
		"tenantId": "",
		"tenantName": "",
		"updateTime": "",
		"updater": "",
		"userStatusEnum": "",
		"username": ""
	}
}