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

saveSysDict(待翻译)

接口地址:/api/yt/dict

请求方式:POST

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

响应数据类型:*/*

请求示例:

{
  "createTime": "",
  "creator": "",
  "description": "",
  "dictCode": "",
  "dictName": "",
  "id": "",
  "updateTime": "",
  "updater": ""
}

请求参数:

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

响应参数:

参数名称参数说明类型
codeinteger(int32)
dataSysDictDTO
createTime创建时间string(date-time)
creator创建用户string
description字典描述string
dictCode字典编码string
dictName字典名称string
idIDstring
updateTime更新时间string(date-time)
updater更新用户string
messagestring

响应示例:

{
	"code": 0,
	"data": {
		"createTime": "",
		"creator": "",
		"description": "",
		"dictCode": "",
		"dictName": "",
		"id": "",
		"updateTime": "",
		"updater": ""
	},
	"message": ""
}

updateSysDict(待翻译)

接口地址:/api/yt/dict

请求方式:PUT

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

响应数据类型:`/

请求示例:

{
  "createTime": "",
  "creator": "",
  "description": "",
  "dictCode": "",
  "dictName": "",
  "id": "",
  "updateTime": "",
  "updater": ""
}

请求参数:

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

响应参数:

参数名称参数说明类型
codeinteger(int32)
dataSysDictDTO
createTime创建时间string(date-time)
creator创建用户string
description字典描述string
dictCode字典编码string
dictName字典名称string
idIDstring
updateTime更新时间string(date-time)
updater更新用户string
messagestring

响应示例:

{
	"code": 0,
	"data": {
		"createTime": "",
		"creator": "",
		"description": "",
		"dictCode": "",
		"dictName": "",
		"id": "",
		"updateTime": "",
		"updater": ""
	},
	"message": ""
}

deleteSysDict(待翻译)

接口地址:/api/yt/dict

请求方式:DELETE

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

响应数据类型:`/

请求示例:

{
  "ids": [],
  "tenantId": "
}

请求参数:

参数名称参数说明请求类型是否必须数据类型
deleteDTODeleteDTObodytrueDeleteDTO
ids删除ID列表truearray

响应参数:

参数名称参数说明类型
codeinteger(int32)
datastring
messagestring

响应示例:

{
	"code": 0,
	"data": "",
	"message": ""
}

pageSysDict(待翻译)

接口地址:/api/yt/dict{?dictCode,dictName,orderFiled,orderType,page,pageSize}

请求方式:GET

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

响应数据类型:*/*

请求参数:

参数名称参数说明是否必须数据类型
pagepagetrueint
pageSizepageSizetrueint

响应参数:

参数名称参数说明类型
itemsarray
createTime创建时间string(date-time)
creator创建用户string
description字典描述string
dictCode字典编码string
dictName字典名称string
idIDstring
updateTime更新时间string(date-time)
updater更新用户string
totalinteger(int32)

响应示例:

{
	"items": [
		{
			"createTime": "",
			"creator": "",
			"description": "",
			"dictCode": "",
			"dictName": "",
			"id": "",
			"updateTime": "",
			"updater": ""
		}
	],
	"total": 0
}

saveSysDictItem(待翻译)

接口地址:/api/yt/dict_item

请求方式:POST

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

响应数据类型:*/*

接口描述:

请求示例:

{
  "createTime": "",
  "creator": "",
  "description": "",
  "dictId": "",
  "id": "",
  "itemText": "",
  "itemValue": "",
  "sort": 0,
  "status": 0,
  "sysDict": {
    "createTime": "",
    "creator": "",
    "description": "",
    "dictCode": "",
    "dictName": "",
    "id": "",
    "updateTime": "",
    "updater": ""
  },
  "tenantId": "",
  "updateTime": "",
  "updater": ""
}

请求参数:

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

响应参数:

参数名称参数说明类型
codeinteger(int32)
dataSysDictItemDTO
createTime创建时间string(date-time)
creator创建用户string
description子项字典描述string
dictId字典子项IDstring
idIDstring
itemText子项字典文本string
itemValue子项字典值string
sort子项字典排序integer(int32)
status子项字典状态integer(int32)
sysDict字典信息SysDictDTO
createTime创建时间string
creator创建用户string
description字典描述string
dictCode字典编码string
dictName字典名称string
idIDstring
updateTime更新时间string
updater更新用户string
tenantId租户IDstring
updateTime更新时间string(date-time)
updater更新用户string
messagestring

响应示例:

{
	"code": 0,
	"data": {
		"createTime": "",
		"creator": "",
		"description": "",
		"dictId": "",
		"id": "",
		"itemText": "",
		"itemValue": "",
		"sort": 0,
		"status": 0,
		"sysDict": {
			"createTime": "",
			"creator": "",
			"description": "",
			"dictCode": "",
			"dictName": "",
			"id": "",
			"updateTime": "",
			"updater": ""
		},
		"tenantId": "",
		"updateTime": "",
		"updater": ""
	},
	"message": ""
}

updateSysDictItem(待翻译)

接口地址:/api/yt/dict_item

请求方式:PUT

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

响应数据类型:*/*

接口描述:

请求示例:

{
  "createTime": "",
  "creator": "",
  "description": "",
  "dictId": "",
  "id": "",
  "itemText": "",
  "itemValue": "",
  "sort": 0,
  "status": 0,
  "sysDict": {
    "createTime": "",
    "creator": "",
    "description": "",
    "dictCode": "",
    "dictName": "",
    "id": "",
    "updateTime": "",
    "updater": ""
  },
  "tenantId": "",
  "updateTime": "",
  "updater": ""
}

请求参数:

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

响应参数:

参数名称参数说明类型
codeinteger(int32)
dataSysDictItemDTO
createTime创建时间string(date-time)
creator创建用户string
description子项字典描述string
dictId字典子项IDstring
idIDstring
itemText子项字典文本string
itemValue子项字典值string
sort子项字典排序integer(int32)
status子项字典状态integer(int32)
sysDict字典信息SysDictDTO
createTime创建时间string
creator创建用户string
description字典描述string
dictCode字典编码string
dictName字典名称string
idIDstring
updateTime更新时间string
updater更新用户string
tenantId租户IDstring
updateTime更新时间string(date-time)
updater更新用户string
messagestring

响应示例:

{
	"code": 0,
	"data": {
		"createTime": "",
		"creator": "",
		"description": "",
		"dictId": "",
		"id": "",
		"itemText": "",
		"itemValue": "",
		"sort": 0,
		"status": 0,
		"sysDict": {
			"createTime": "",
			"creator": "",
			"description": "",
			"dictCode": "",
			"dictName": "",
			"id": "",
			"updateTime": "",
			"updater": ""
		},
		"tenantId": "",
		"updateTime": "",
		"updater": ""
	},
	"message": ""
}

deleteSysDictItem(待翻译)

接口地址:/api/yt/dict_item

请求方式:DELETE

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

响应数据类型:`/

请求示例:

{
  "ids": [],
  "tenantId": ""
}

请求参数:

参数名称参数说明请求类型是否必须数据类型
deleteDTODeleteDTObodytrueDeleteDTO
ids删除ID列表truearray

响应参数:

参数名称参数说明类型
codeinteger(int32)
datastring
messagestring

响应示例:

{
	"code": 0,
	"data": "",
	"message": ""
}

findDictItemByDictCode(待翻译)

接口地址:/api/yt/dict_item/find

请求方式:POST

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

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应参数:

参数名称参数说明类型
createTime创建时间string(date-time)
creator创建用户string
description子项字典描述string
dictId字典子项IDstring
idIDstring
itemText子项字典文本string
itemValue子项字典值string
sort子项字典排序integer(int32)
status子项字典状态integer(int32)
sysDict字典信息SysDictDTO
createTime创建时间string(date-time)
creator创建用户string
description字典描述string
dictCode字典编码string
dictName字典名称string
idIDstring
updateTime更新时间string(date-time)
updater更新用户string
tenantId租户IDstring
updateTime更新时间string(date-time)
updater更新用户string

响应示例:

[
	{
		"createTime": "",
		"creator": "",
		"description": "",
		"dictId": "",
		"id": "",
		"itemText": "",
		"itemValue": "",
		"sort": 0,
		"status": 0,
		"sysDict": {
			"createTime": "",
			"creator": "",
			"description": "",
			"dictCode": "",
			"dictName": "",
			"id": "",
			"updateTime": "",
			"updater": ""
		},
		"tenantId": "",
		"updateTime": "",
		"updater": ""
	}
]

pageSysDictItem(待翻译)

接口地址:/api/yt/dict_item{?dictId,itemText,orderFiled,orderType,page,pageSize,status}

请求方式:GET

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

响应数据类型:*/*

请求参数:

参数名称参数说明是否必须数据类型
pagepagetrueint
pageSizepageSizetrueint

响应参数:

参数名称参数说明类型
itemsarray
createTime创建时间string(date-time)
creator创建用户string
description子项字典描述string
dictId字典子项IDstring
idIDstring
itemText子项字典文本string
itemValue子项字典值string
sort子项字典排序integer(int32)
status子项字典状态integer(int32)
sysDict字典信息SysDictDTO
createTime创建时间string
creator创建用户string
description字典描述string
dictCode字典编码string
dictName字典名称string
idIDstring
updateTime更新时间string
updater更新用户string
tenantId租户IDstring
updateTime更新时间string(date-time)
updater更新用户string
totalinteger(int32)

响应示例:

{
	"items": [
		{
			"createTime": "",
			"creator": "",
			"description": "",
			"dictId": "",
			"id": "",
			"itemText": "",
			"itemValue": "",
			"sort": 0,
			"status": 0,
			"sysDict": {
				"createTime": "",
				"creator": "",
				"description": "",
				"dictCode": "",
				"dictName": "",
				"id": "",
				"updateTime": "",
				"updater": ""
			},
			"tenantId": "",
			"updateTime": "",
			"updater": ""
		}
	],
	"total": 0
}