Compare commits

...

10 Commits

Author SHA1 Message Date
jay b88af215c3 fix 租户id类型 2024-06-25 19:35:53 +08:00
jay 45c4962765 update 设备配置 2024-06-25 19:32:45 +08:00
jay b552b24bfc fix 参数校验-导致接口报错 2024-06-14 21:34:09 +08:00
jay 9b1d0b696a fix 参数校验-依赖导入版本过低 2024-06-14 21:34:07 +08:00
jay dcfadb4b9f fix 添加租户注解 2024-06-14 21:34:03 +08:00
jay b5db785c53 fix 添加租户 2024-06-14 21:34:00 +08:00
jay 2d71b0126b fix 校验参数 2024-06-14 14:29:19 +08:00
jay 4f9a91712d update 为表添加租户标识 2024-06-14 14:29:11 +08:00
花木水之间 ebbcbc14a3
update README.md.
Signed-off-by: 花木水之间 <75509151@qq.com>
2024-06-14 04:09:31 +00:00
jay 3e5564272f update 初始化数据-租户id
fix getTenantId
2024-06-14 10:41:41 +08:00
125 changed files with 927 additions and 389 deletions

View File

@ -155,4 +155,5 @@ https://open-iita.feishu.cn/wiki/Km67wBKNNiFMrMkldCJcxa6vnLe
微信群(添加我微信备注"进群"): 微信群(添加我微信备注"进群"):
![输入图片说明](doc/ma.png) ![输入图片说明](doc/ma.png)
商务联系:
![输入图片说明](doc/image.png)

View File

@ -1,5 +1,6 @@
[ [
{ {
"tenantId" : 0,
"id": "16552595723210menci0001008000012f", "id": "16552595723210menci0001008000012f",
"deviceId": "16552595723210menci0001008000012f", "deviceId": "16552595723210menci0001008000012f",
"productKey": "PN3EDmkBZDD8whDd", "productKey": "PN3EDmkBZDD8whDd",
@ -152,6 +153,7 @@
} }
}, },
{ {
"tenantId" : 0,
"id": "16552594863210linght001005000012c", "id": "16552594863210linght001005000012c",
"deviceId": "16552594863210linght001005000012c", "deviceId": "16552594863210linght001005000012c",
"productKey": "xpsYHExTKPFaQMS7", "productKey": "xpsYHExTKPFaQMS7",
@ -214,6 +216,7 @@
} }
}, },
{ {
"tenantId" : 0,
"id": "16552594646210pulg0a0010160000122", "id": "16552594646210pulg0a0010160000122",
"deviceId": "16552594646210pulg0a0010160000122", "deviceId": "16552594646210pulg0a0010160000122",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -243,6 +246,7 @@
"createAt": 1655259464621 "createAt": 1655259464621
}, },
{ {
"tenantId" : 0,
"id": "16552594604220pulg0a0010150000127", "id": "16552594604220pulg0a0010150000127",
"deviceId": "16552594604220pulg0a0010150000127", "deviceId": "16552594604220pulg0a0010150000127",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -272,6 +276,7 @@
"createAt": 1655259460422 "createAt": 1655259460422
}, },
{ {
"tenantId" : 0,
"id": "16552594572370pulg0a001014000012e", "id": "16552594572370pulg0a001014000012e",
"deviceId": "16552594572370pulg0a001014000012e", "deviceId": "16552594572370pulg0a001014000012e",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -301,6 +306,7 @@
"createAt": 1655259457237 "createAt": 1655259457237
}, },
{ {
"tenantId" : 0,
"id": "16552594542310pulg0a0010130000123", "id": "16552594542310pulg0a0010130000123",
"deviceId": "16552594542310pulg0a0010130000123", "deviceId": "16552594542310pulg0a0010130000123",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -330,6 +336,7 @@
"createAt": 1655259454231 "createAt": 1655259454231
}, },
{ {
"tenantId" : 0,
"id": "16552594511210pulg0a001012000012c", "id": "16552594511210pulg0a001012000012c",
"deviceId": "16552594511210pulg0a001012000012c", "deviceId": "16552594511210pulg0a001012000012c",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -359,6 +366,7 @@
"createAt": 1655259451121 "createAt": 1655259451121
}, },
{ {
"tenantId" : 0,
"id": "16552594475270pulg0a0010110000125", "id": "16552594475270pulg0a0010110000125",
"deviceId": "16552594475270pulg0a0010110000125", "deviceId": "16552594475270pulg0a0010110000125",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -446,6 +454,7 @@
"createAt": 1655259440522 "createAt": 1655259440522
}, },
{ {
"tenantId" : 0,
"id": "16552594368340pulg0a0010080000126", "id": "16552594368340pulg0a0010080000126",
"deviceId": "16552594368340pulg0a0010080000126", "deviceId": "16552594368340pulg0a0010080000126",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -475,6 +484,7 @@
"createAt": 1655259436834 "createAt": 1655259436834
}, },
{ {
"tenantId" : 0,
"id": "16552594320310pulg0a0010070000126", "id": "16552594320310pulg0a0010070000126",
"deviceId": "16552594320310pulg0a0010070000126", "deviceId": "16552594320310pulg0a0010070000126",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -504,6 +514,7 @@
"createAt": 1655259432067 "createAt": 1655259432067
}, },
{ {
"tenantId" : 0,
"id": "16542484163750d60ee9025d8430e327", "id": "16542484163750d60ee9025d8430e327",
"deviceId": "16542484163750d60ee9025d8430e327", "deviceId": "16542484163750d60ee9025d8430e327",
"productKey": "Eit3kmGJtxSHfCKT", "productKey": "Eit3kmGJtxSHfCKT",
@ -526,6 +537,7 @@
"createAt": 1654248416391 "createAt": 1654248416391
}, },
{ {
"tenantId" : 0,
"id": "16538390924670pulg0a001006000012a", "id": "16538390924670pulg0a001006000012a",
"deviceId": "16538390924670pulg0a001006000012a", "deviceId": "16538390924670pulg0a001006000012a",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -568,6 +580,7 @@
"createAt": 1653839092467 "createAt": 1653839092467
}, },
{ {
"tenantId" : 0,
"id": "16538390885690pulg0a0010050000126", "id": "16538390885690pulg0a0010050000126",
"deviceId": "16538390885690pulg0a0010050000126", "deviceId": "16538390885690pulg0a0010050000126",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -620,6 +633,7 @@
} }
}, },
{ {
"tenantId" : 0,
"id": "16538390820760pulg0a0010030000127", "id": "16538390820760pulg0a0010030000127",
"deviceId": "16538390820760pulg0a0010030000127", "deviceId": "16538390820760pulg0a0010030000127",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -643,6 +657,7 @@
"createAt": 1653839082076 "createAt": 1653839082076
}, },
{ {
"tenantId" : 0,
"id": "16538390787670pulg0a0010020000124", "id": "16538390787670pulg0a0010020000124",
"deviceId": "16538390787670pulg0a0010020000124", "deviceId": "16538390787670pulg0a0010020000124",
"productKey": "cGCrkK7Ex4FESAwe", "productKey": "cGCrkK7Ex4FESAwe",
@ -701,6 +716,7 @@
} }
}, },
{ {
"tenantId" : 0,
"id": "16538390097670switch0300100500143", "id": "16538390097670switch0300100500143",
"deviceId": "16538390097670switch0300100500143", "deviceId": "16538390097670switch0300100500143",
"productKey": "eDhXKwEzwFybM5R7", "productKey": "eDhXKwEzwFybM5R7",
@ -732,6 +748,7 @@
} }
}, },
{ {
"tenantId" : 0,
"id": "16538390048670switch0300100400141", "id": "16538390048670switch0300100400141",
"deviceId": "16538390048670switch0300100400141", "deviceId": "16538390048670switch0300100400141",
"productKey": "eDhXKwEzwFybM5R7", "productKey": "eDhXKwEzwFybM5R7",
@ -763,6 +780,7 @@
} }
}, },
{ {
"tenantId" : 0,
"id": "16538390008670switch0300100300145", "id": "16538390008670switch0300100300145",
"deviceId": "16538390008670switch0300100300145", "deviceId": "16538390008670switch0300100300145",
"productKey": "eDhXKwEzwFybM5R7", "productKey": "eDhXKwEzwFybM5R7",
@ -794,6 +812,7 @@
} }
}, },
{ {
"tenantId" : 0,
"id": "16538389971670switch0300100200140", "id": "16538389971670switch0300100200140",
"deviceId": "16538389971670switch0300100200140", "deviceId": "16538389971670switch0300100200140",
"productKey": "eDhXKwEzwFybM5R7", "productKey": "eDhXKwEzwFybM5R7",
@ -825,6 +844,7 @@
} }
}, },
{ {
"tenantId" : 0,
"id": "16538389915670switch030010010014c", "id": "16538389915670switch030010010014c",
"deviceId": "16538389915670switch030010010014c", "deviceId": "16538389915670switch030010010014c",
"productKey": "eDhXKwEzwFybM5R7", "productKey": "eDhXKwEzwFybM5R7",
@ -850,6 +870,7 @@
"createAt": 1653838991567 "createAt": 1653838991567
}, },
{ {
"tenantId" : 0,
"id": "16538383943670wenshidu01008000139", "id": "16538383943670wenshidu01008000139",
"deviceId": "16538383943670wenshidu01008000139", "deviceId": "16538383943670wenshidu01008000139",
"productKey": "6kYp6jszrDns2yh4", "productKey": "6kYp6jszrDns2yh4",
@ -873,6 +894,7 @@
"createAt": 1653838394367 "createAt": 1653838394367
}, },
{ {
"tenantId" : 0,
"id": "16538383910670wenshidu01007000136", "id": "16538383910670wenshidu01007000136",
"deviceId": "16538383910670wenshidu01007000136", "deviceId": "16538383910670wenshidu01007000136",
"productKey": "6kYp6jszrDns2yh4", "productKey": "6kYp6jszrDns2yh4",
@ -896,6 +918,7 @@
"createAt": 1653838391067 "createAt": 1653838391067
}, },
{ {
"tenantId" : 0,
"id": "16538383880670wenshidu0100600013b", "id": "16538383880670wenshidu0100600013b",
"deviceId": "16538383880670wenshidu0100600013b", "deviceId": "16538383880670wenshidu0100600013b",
"productKey": "6kYp6jszrDns2yh4", "productKey": "6kYp6jszrDns2yh4",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254320542, "createTime" : 1708254320542,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320542, "updateTime" : 1708254320542,
"tenantId" : null, "tenantId" : 0,
"id" : 1, "id" : 1,
"name" : "我的家庭", "name" : "我的家庭",
"address" : "", "address" : "",
@ -19,7 +19,7 @@
"createTime" : 1708254320593, "createTime" : 1708254320593,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320593, "updateTime" : 1708254320593,
"tenantId" : null, "tenantId" : 0,
"id" : 2, "id" : 2,
"name" : "我的家", "name" : "我的家",
"address" : null, "address" : null,
@ -34,7 +34,7 @@
"createTime" : 1708254320600, "createTime" : 1708254320600,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320600, "updateTime" : 1708254320600,
"tenantId" : null, "tenantId" : 0,
"id" : 3, "id" : 3,
"name" : "我深圳的家", "name" : "我深圳的家",
"address" : "广东省深圳市南山区西丽镇", "address" : "广东省深圳市南山区西丽镇",
@ -49,7 +49,7 @@
"createTime" : 1708254320605, "createTime" : 1708254320605,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320605, "updateTime" : 1708254320605,
"tenantId" : null, "tenantId" : 0,
"id" : 4, "id" : 4,
"name" : "我深圳的家", "name" : "我深圳的家",
"address" : "广东省深圳市南山区西丽镇", "address" : "广东省深圳市南山区西丽镇",
@ -64,7 +64,7 @@
"createTime" : 1708254320609, "createTime" : 1708254320609,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320609, "updateTime" : 1708254320609,
"tenantId" : null, "tenantId" : 0,
"id" : 5, "id" : 5,
"name" : "我深圳的家", "name" : "我深圳的家",
"address" : "广东省深圳市南山区西丽镇", "address" : "广东省深圳市南山区西丽镇",
@ -79,7 +79,7 @@
"createTime" : 1708254320613, "createTime" : 1708254320613,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320613, "updateTime" : 1708254320613,
"tenantId" : null, "tenantId" : 0,
"id" : 6, "id" : 6,
"name" : "我深圳的家", "name" : "我深圳的家",
"address" : "广东省深圳市南山区西丽镇", "address" : "广东省深圳市南山区西丽镇",
@ -94,7 +94,7 @@
"createTime" : 1708254320618, "createTime" : 1708254320618,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320618, "updateTime" : 1708254320618,
"tenantId" : null, "tenantId" : 0,
"id" : 7, "id" : 7,
"name" : "myhome", "name" : "myhome",
"address" : "shengzhen nanshan", "address" : "shengzhen nanshan",
@ -109,7 +109,7 @@
"createTime" : 1708254320622, "createTime" : 1708254320622,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320622, "updateTime" : 1708254320622,
"tenantId" : null, "tenantId" : 0,
"id" : 8, "id" : 8,
"name" : "myhome", "name" : "myhome",
"address" : "shengzhen nanshan", "address" : "shengzhen nanshan",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "行人道闸", "iconName": "行人道闸",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -18,7 +18,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "信息", "iconName": "信息",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -32,7 +32,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "指纹解锁", "iconName": "指纹解锁",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -46,7 +46,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "出门", "iconName": "出门",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -60,7 +60,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "车牌识别", "iconName": "车牌识别",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -74,7 +74,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "门禁卡", "iconName": "门禁卡",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -88,7 +88,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "电视", "iconName": "电视",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -102,7 +102,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "人脸识别", "iconName": "人脸识别",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -116,7 +116,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "智能灯光", "iconName": "智能灯光",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -130,7 +130,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "数字密码", "iconName": "数字密码",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -144,7 +144,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "语音对讲", "iconName": "语音对讲",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -158,7 +158,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "信息", "iconName": "信息",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -172,7 +172,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "摄像枪", "iconName": "摄像枪",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -186,7 +186,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "可视对讲机", "iconName": "可视对讲机",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -200,7 +200,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "门磁传感器", "iconName": "门磁传感器",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -214,7 +214,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "摄像头", "iconName": "摄像头",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -228,7 +228,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "天气", "iconName": "天气",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -242,7 +242,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "降噪", "iconName": "降噪",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -256,7 +256,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "时钟", "iconName": "时钟",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -270,7 +270,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "手机", "iconName": "手机",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -284,7 +284,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "交换机", "iconName": "交换机",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -298,7 +298,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "视频留言", "iconName": "视频留言",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -312,7 +312,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "燃气报警2", "iconName": "燃气报警2",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -326,7 +326,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "声光报警", "iconName": "声光报警",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -340,7 +340,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "火警", "iconName": "火警",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -354,7 +354,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "燃气报警器", "iconName": "燃气报警器",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -368,7 +368,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "门锁", "iconName": "门锁",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -382,7 +382,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "静音", "iconName": "静音",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -396,7 +396,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "控制中心", "iconName": "控制中心",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -410,7 +410,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "红外传感器", "iconName": "红外传感器",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -424,7 +424,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconName": "开锁", "iconName": "开锁",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
"xmlns": "http://www.w3.org/2000/svg", "xmlns": "http://www.w3.org/2000/svg",
@ -437,7 +437,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconName": "车道闸", "iconName": "车道闸",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
"xmlns": "http://www.w3.org/2000/svg", "xmlns": "http://www.w3.org/2000/svg",
@ -450,11 +450,11 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000","createBy" : null, "tenantId" : 0,"createBy" : null,
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "安防", "iconName": "安防",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -468,7 +468,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "电梯", "iconName": "电梯",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -482,7 +482,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541592097542213, "iconTypeId": 541592097542213,
"iconName": "火灾报警", "iconName": "火灾报警",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -496,7 +496,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "粉尘监测", "iconName": "粉尘监测",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -510,7 +510,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "柴油发电机", "iconName": "柴油发电机",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -524,7 +524,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "报警主机", "iconName": "报警主机",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -538,7 +538,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "智能插座", "iconName": "智能插座",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -552,7 +552,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "物联网网关", "iconName": "物联网网关",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -566,7 +566,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "变压器温度", "iconName": "变压器温度",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -580,7 +580,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "中央空调", "iconName": "中央空调",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -594,7 +594,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "故障", "iconName": "故障",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -608,7 +608,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "红外探测器", "iconName": "红外探测器",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -622,7 +622,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "报警", "iconName": "报警",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -636,7 +636,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "火警", "iconName": "火警",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -650,7 +650,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "液位传感器", "iconName": "液位传感器",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -664,7 +664,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "感温探测器", "iconName": "感温探测器",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -678,7 +678,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "表面温度", "iconName": "表面温度",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -692,7 +692,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "液压传感器", "iconName": "液压传感器",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -706,7 +706,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "消防水泵", "iconName": "消防水泵",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -720,7 +720,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "排风机", "iconName": "排风机",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -734,7 +734,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "温湿度", "iconName": "温湿度",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -748,7 +748,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "视频", "iconName": "视频",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -762,7 +762,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "电器火灾", "iconName": "电器火灾",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -776,7 +776,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "消防用水", "iconName": "消防用水",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -790,7 +790,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "无线火灾报警", "iconName": "无线火灾报警",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",
@ -804,7 +804,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"iconTypeId": 541673667244101, "iconTypeId": 541673667244101,
"iconName": "火灾报警", "iconName": "火灾报警",
"viewBox": "0 0 1024 1024", "viewBox": "0 0 1024 1024",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"typeDescribe" : null, "typeDescribe" : null,
"typeName" : "智能家居" "typeName" : "智能家居"
}, { }, {
@ -13,7 +13,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : "000000", "tenantId" : 0,
"typeDescribe" : null, "typeDescribe" : null,
"typeName" : "工业物联网" "typeName" : "工业物联网"
}] }]

View File

@ -4,7 +4,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 1, "id" : 1,
"productKey" : "openiitagateway01", "productKey" : "openiitagateway01",
"productSecret" : "openiitasecret01", "productSecret" : "openiitasecret01",
@ -24,7 +24,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 2, "id" : 2,
"productKey" : "openiitapump01", "productKey" : "openiitapump01",
"productSecret" : "openiitapump01", "productSecret" : "openiitapump01",
@ -44,7 +44,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 3, "id" : 3,
"productKey" : "openiitanbpump01", "productKey" : "openiitanbpump01",
"productSecret" : "openiitanbpump01", "productSecret" : "openiitanbpump01",
@ -64,7 +64,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994839621, "id" : 516578994839621,
"productKey" : "xpsYHExTKPFaQMS7", "productKey" : "xpsYHExTKPFaQMS7",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -84,7 +84,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994847813, "id" : 516578994847813,
"productKey" : "hdX3PCMcFrCYpesJ", "productKey" : "hdX3PCMcFrCYpesJ",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -104,7 +104,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994860101, "id" : 516578994860101,
"productKey" : "hbtgIA0SuVw9lxjB", "productKey" : "hbtgIA0SuVw9lxjB",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -123,7 +123,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994864197, "id" : 516578994864197,
"productKey" : "eDhXKwEzwFybM5R7", "productKey" : "eDhXKwEzwFybM5R7",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -142,7 +142,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994876485, "id" : 516578994876485,
"productKey" : "cGCrkK7Ex4FESAwe", "productKey" : "cGCrkK7Ex4FESAwe",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -161,7 +161,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994880581, "id" : 516578994880581,
"productKey" : "Rf4QSjbm65X45753", "productKey" : "Rf4QSjbm65X45753",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -180,7 +180,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994884677, "id" : 516578994884677,
"productKey" : "PN3EDmkBZDD8whDd", "productKey" : "PN3EDmkBZDD8whDd",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -199,7 +199,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994896965, "id" : 516578994896965,
"productKey" : "N523nWsCiG3CAn6X", "productKey" : "N523nWsCiG3CAn6X",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -218,7 +218,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994901061, "id" : 516578994901061,
"productKey" : "Eit3kmGJtxSHfCKT", "productKey" : "Eit3kmGJtxSHfCKT",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -238,7 +238,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994905157, "id" : 516578994905157,
"productKey" : "DSGxxKk6E8mmDk6C", "productKey" : "DSGxxKk6E8mmDk6C",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -257,7 +257,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994909253, "id" : 516578994909253,
"productKey" : "D8c5pXFmt2KJDxNm", "productKey" : "D8c5pXFmt2KJDxNm",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -277,7 +277,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994913349, "id" : 516578994913349,
"productKey" : "AWcJnf7ymGSkaz5M", "productKey" : "AWcJnf7ymGSkaz5M",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -296,7 +296,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994925637, "id" : 516578994925637,
"productKey" : "6kYp6jszrDns2yh4", "productKey" : "6kYp6jszrDns2yh4",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -316,7 +316,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994933829, "id" : 516578994933829,
"productKey" : "bGdZt8ffBETtsirm", "productKey" : "bGdZt8ffBETtsirm",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -336,7 +336,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994942021, "id" : 516578994942021,
"productKey" : "BRD3x4fkKxkaxXFt", "productKey" : "BRD3x4fkKxkaxXFt",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",
@ -356,7 +356,7 @@
"createTime" : null, "createTime" : null,
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"tenantId" : null, "tenantId" : 0,
"id" : 516578994958405, "id" : 516578994958405,
"productKey" : "PwMfpXmp4ZWkGahn", "productKey" : "PwMfpXmp4ZWkGahn",
"productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU", "productSecret" : "xdkKUymrEGSCYWswqCvSPyRSFvH5j7CU",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254320774, "createTime" : 1708254320774,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320774, "updateTime" : 1708254320774,
"tenantId" : null, "tenantId" : 0,
"id" : 1, "id" : 1,
"homeId" : 1, "homeId" : 1,
"name" : "123", "name" : "123",
@ -15,7 +15,7 @@
"createTime" : 1708254320794, "createTime" : 1708254320794,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320794, "updateTime" : 1708254320794,
"tenantId" : null, "tenantId" : 0,
"id" : 2, "id" : 2,
"homeId" : 1, "homeId" : 1,
"name" : "123", "name" : "123",
@ -26,7 +26,7 @@
"createTime" : 1708254320798, "createTime" : 1708254320798,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320798, "updateTime" : 1708254320798,
"tenantId" : null, "tenantId" : 0,
"id" : 3, "id" : 3,
"homeId" : 1, "homeId" : 1,
"name" : "客厅", "name" : "客厅",
@ -37,7 +37,7 @@
"createTime" : 1708254320804, "createTime" : 1708254320804,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320804, "updateTime" : 1708254320804,
"tenantId" : null, "tenantId" : 0,
"id" : 4, "id" : 4,
"homeId" : 1, "homeId" : 1,
"name" : "卧室", "name" : "卧室",
@ -48,7 +48,7 @@
"createTime" : 1708254320809, "createTime" : 1708254320809,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320809, "updateTime" : 1708254320809,
"tenantId" : null, "tenantId" : 0,
"id" : 5, "id" : 5,
"homeId" : 1, "homeId" : 1,
"name" : "客厅", "name" : "客厅",
@ -59,7 +59,7 @@
"createTime" : 1708254320813, "createTime" : 1708254320813,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320813, "updateTime" : 1708254320813,
"tenantId" : null, "tenantId" : 0,
"id" : 6, "id" : 6,
"homeId" : 1, "homeId" : 1,
"name" : "阳台", "name" : "阳台",
@ -70,7 +70,7 @@
"createTime" : 1708254320817, "createTime" : 1708254320817,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320817, "updateTime" : 1708254320817,
"tenantId" : null, "tenantId" : 0,
"id" : 7, "id" : 7,
"homeId" : 1, "homeId" : 1,
"name" : "厨房", "name" : "厨房",
@ -81,7 +81,7 @@
"createTime" : 1708254320824, "createTime" : 1708254320824,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320824, "updateTime" : 1708254320824,
"tenantId" : null, "tenantId" : 0,
"id" : 8, "id" : 8,
"homeId" : 1, "homeId" : 1,
"name" : "卧室", "name" : "卧室",
@ -92,7 +92,7 @@
"createTime" : 1708254320852, "createTime" : 1708254320852,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254320852, "updateTime" : 1708254320852,
"tenantId" : null, "tenantId" : 0,
"id" : 9, "id" : 9,
"homeId" : 1, "homeId" : 1,
"name" : "客厅", "name" : "客厅",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254321238, "createTime" : 1708254321238,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321238, "updateTime" : 1708254321238,
"tenantId" : null, "tenantId" : 0,
"id" : 1, "id" : 1,
"deviceId" : "164785263238900cefafcfeeab0000125", "deviceId" : "164785263238900cefafcfeeab0000125",
"name" : "卧室的ZGW01", "name" : "卧室的ZGW01",
@ -17,7 +17,7 @@
"createTime" : 1708254321248, "createTime" : 1708254321248,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321248, "updateTime" : 1708254321248,
"tenantId" : null, "tenantId" : 0,
"id" : 2, "id" : 2,
"deviceId" : "164776322117404acb9f03008d1500168", "deviceId" : "164776322117404acb9f03008d1500168",
"name" : "卧室的插座", "name" : "卧室的插座",
@ -30,7 +30,7 @@
"createTime" : 1708254321252, "createTime" : 1708254321252,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321252, "updateTime" : 1708254321252,
"tenantId" : null, "tenantId" : 0,
"id" : 3, "id" : 3,
"deviceId" : "1647763221972019a89f03008d1500163", "deviceId" : "1647763221972019a89f03008d1500163",
"name" : "卧室的插座", "name" : "卧室的插座",
@ -43,7 +43,7 @@
"createTime" : 1708254321255, "createTime" : 1708254321255,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321255, "updateTime" : 1708254321255,
"tenantId" : null, "tenantId" : 0,
"id" : 4, "id" : 4,
"deviceId" : "164776322227201472a803008d150016e", "deviceId" : "164776322227201472a803008d150016e",
"name" : "卧室的插座", "name" : "卧室的插座",
@ -56,7 +56,7 @@
"createTime" : 1708254321258, "createTime" : 1708254321258,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321258, "updateTime" : 1708254321258,
"tenantId" : null, "tenantId" : 0,
"id" : 5, "id" : 5,
"deviceId" : "16477632226720c2cc9f03008d1500166", "deviceId" : "16477632226720c2cc9f03008d1500166",
"name" : "卧室的插座", "name" : "卧室的插座",
@ -69,7 +69,7 @@
"createTime" : 1708254321261, "createTime" : 1708254321261,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321261, "updateTime" : 1708254321261,
"tenantId" : null, "tenantId" : 0,
"id" : 6, "id" : 6,
"deviceId" : "16477632215720c11b1602008d1500160", "deviceId" : "16477632215720c11b1602008d1500160",
"name" : "卧室的插座", "name" : "卧室的插座",
@ -82,7 +82,7 @@
"createTime" : 1708254321264, "createTime" : 1708254321264,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321264, "updateTime" : 1708254321264,
"tenantId" : null, "tenantId" : 0,
"id" : 7, "id" : 7,
"deviceId" : "1647690908735019dd9f03008d1500163", "deviceId" : "1647690908735019dd9f03008d1500163",
"name" : "卧室的插座", "name" : "卧室的插座",
@ -95,7 +95,7 @@
"createTime" : 1708254321268, "createTime" : 1708254321268,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321268, "updateTime" : 1708254321268,
"tenantId" : null, "tenantId" : 0,
"id" : 8, "id" : 8,
"deviceId" : "16538390924670pulg0a001006000012a", "deviceId" : "16538390924670pulg0a001006000012a",
"name" : "阳台的插座", "name" : "阳台的插座",
@ -108,7 +108,7 @@
"createTime" : 1708254321271, "createTime" : 1708254321271,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321271, "updateTime" : 1708254321271,
"tenantId" : null, "tenantId" : 0,
"id" : 9, "id" : 9,
"deviceId" : "16501806313260000833feffac33bc16c", "deviceId" : "16501806313260000833feffac33bc16c",
"name" : "灯的插座", "name" : "灯的插座",
@ -121,7 +121,7 @@
"createTime" : 1708254321275, "createTime" : 1708254321275,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321275, "updateTime" : 1708254321275,
"tenantId" : null, "tenantId" : 0,
"id" : 10, "id" : 10,
"deviceId" : "165017126122400cefafcfee61000012b", "deviceId" : "165017126122400cefafcfee61000012b",
"name" : "客厅网关", "name" : "客厅网关",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254323547, "createTime" : 1708254323547,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254323547, "updateTime" : 1708254323547,
"tenantId" : "000000", "tenantId" : 0,
"id" : 453554819821637, "id" : 453554819821637,
"appName" : "微信小程序", "appName" : "微信小程序",
"appId" : "xxx", "appId" : "xxx",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254321796, "createTime" : 1708254321796,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321796, "updateTime" : 1708254321796,
"tenantId" : "000000", "tenantId" : 0,
"id" : 1, "id" : 1,
"configName" : "主框架页-默认皮肤样式名称", "configName" : "主框架页-默认皮肤样式名称",
"configKey" : "sys.index.skinName", "configKey" : "sys.index.skinName",
@ -17,7 +17,7 @@
"createTime" : 1708254321808, "createTime" : 1708254321808,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321808, "updateTime" : 1708254321808,
"tenantId" : "000000", "tenantId" : 0,
"id" : 2, "id" : 2,
"configName" : "用户管理-账号初始密码", "configName" : "用户管理-账号初始密码",
"configKey" : "sys.user.initPassword", "configKey" : "sys.user.initPassword",
@ -30,7 +30,7 @@
"createTime" : 1708254321811, "createTime" : 1708254321811,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321811, "updateTime" : 1708254321811,
"tenantId" : "000000", "tenantId" : 0,
"id" : 3, "id" : 3,
"configName" : "主框架页-侧边栏主题", "configName" : "主框架页-侧边栏主题",
"configKey" : "sys.index.sideTheme", "configKey" : "sys.index.sideTheme",
@ -43,7 +43,7 @@
"createTime" : 1708254321814, "createTime" : 1708254321814,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321814, "updateTime" : 1708254321814,
"tenantId" : "000000", "tenantId" : 0,
"id" : 5, "id" : 5,
"configName" : "账号自助-是否开启用户注册功能", "configName" : "账号自助-是否开启用户注册功能",
"configKey" : "sys.account.registerUser", "configKey" : "sys.account.registerUser",
@ -56,7 +56,7 @@
"createTime" : 1708254321818, "createTime" : 1708254321818,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321818, "updateTime" : 1708254321818,
"tenantId" : "000000", "tenantId" : 0,
"id" : 11, "id" : 11,
"configName" : "OSS预览列表资源开关", "configName" : "OSS预览列表资源开关",
"configKey" : "sys.oss.previewListResource", "configKey" : "sys.oss.previewListResource",
@ -69,7 +69,7 @@
"createTime" : 1708254321820, "createTime" : 1708254321820,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321820, "updateTime" : 1708254321820,
"tenantId" : "452748015218757", "tenantId" : 0,
"id" : 452767972696133, "id" : 452767972696133,
"configName" : "主框架页-默认皮肤样式名称", "configName" : "主框架页-默认皮肤样式名称",
"configKey" : "sys.index.skinName", "configKey" : "sys.index.skinName",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254321935, "createTime" : 1708254321935,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321935, "updateTime" : 1708254321935,
"tenantId" : "000000", "tenantId" : 0,
"id" : 1, "id" : 1,
"dictSort" : 1, "dictSort" : 1,
"dictLabel" : "男", "dictLabel" : "男",
@ -21,7 +21,7 @@
"createTime" : 1708254321951, "createTime" : 1708254321951,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321951, "updateTime" : 1708254321951,
"tenantId" : "000000", "tenantId" : 0,
"id" : 2, "id" : 2,
"dictSort" : 2, "dictSort" : 2,
"dictLabel" : "女", "dictLabel" : "女",
@ -38,7 +38,7 @@
"createTime" : 1708254321958, "createTime" : 1708254321958,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321958, "updateTime" : 1708254321958,
"tenantId" : "000000", "tenantId" : 0,
"id" : 3, "id" : 3,
"dictSort" : 3, "dictSort" : 3,
"dictLabel" : "未知", "dictLabel" : "未知",
@ -55,7 +55,7 @@
"createTime" : 1708254321962, "createTime" : 1708254321962,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321962, "updateTime" : 1708254321962,
"tenantId" : "000000", "tenantId" : 0,
"id" : 4, "id" : 4,
"dictSort" : 1, "dictSort" : 1,
"dictLabel" : "显示", "dictLabel" : "显示",
@ -72,7 +72,7 @@
"createTime" : 1708254321968, "createTime" : 1708254321968,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321968, "updateTime" : 1708254321968,
"tenantId" : "000000", "tenantId" : 0,
"id" : 5, "id" : 5,
"dictSort" : 2, "dictSort" : 2,
"dictLabel" : "隐藏", "dictLabel" : "隐藏",
@ -89,7 +89,7 @@
"createTime" : 1708254321971, "createTime" : 1708254321971,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321971, "updateTime" : 1708254321971,
"tenantId" : "000000", "tenantId" : 0,
"id" : 6, "id" : 6,
"dictSort" : 1, "dictSort" : 1,
"dictLabel" : "正常", "dictLabel" : "正常",
@ -106,7 +106,7 @@
"createTime" : 1708254321976, "createTime" : 1708254321976,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321976, "updateTime" : 1708254321976,
"tenantId" : "000000", "tenantId" : 0,
"id" : 7, "id" : 7,
"dictSort" : 2, "dictSort" : 2,
"dictLabel" : "停用", "dictLabel" : "停用",
@ -123,7 +123,7 @@
"createTime" : 1708254321981, "createTime" : 1708254321981,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321981, "updateTime" : 1708254321981,
"tenantId" : "000000", "tenantId" : 0,
"id" : 12, "id" : 12,
"dictSort" : 1, "dictSort" : 1,
"dictLabel" : "是", "dictLabel" : "是",
@ -140,7 +140,7 @@
"createTime" : 1708254321987, "createTime" : 1708254321987,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321987, "updateTime" : 1708254321987,
"tenantId" : "000000", "tenantId" : 0,
"id" : 13, "id" : 13,
"dictSort" : 2, "dictSort" : 2,
"dictLabel" : "否", "dictLabel" : "否",
@ -157,7 +157,7 @@
"createTime" : 1708254321991, "createTime" : 1708254321991,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321991, "updateTime" : 1708254321991,
"tenantId" : "000000", "tenantId" : 0,
"id" : 14, "id" : 14,
"dictSort" : 1, "dictSort" : 1,
"dictLabel" : "通知", "dictLabel" : "通知",
@ -174,7 +174,7 @@
"createTime" : 1708254321994, "createTime" : 1708254321994,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321994, "updateTime" : 1708254321994,
"tenantId" : "000000", "tenantId" : 0,
"id" : 15, "id" : 15,
"dictSort" : 2, "dictSort" : 2,
"dictLabel" : "公告", "dictLabel" : "公告",
@ -191,7 +191,7 @@
"createTime" : 1708254322001, "createTime" : 1708254322001,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322001, "updateTime" : 1708254322001,
"tenantId" : "000000", "tenantId" : 0,
"id" : 16, "id" : 16,
"dictSort" : 1, "dictSort" : 1,
"dictLabel" : "正常", "dictLabel" : "正常",
@ -208,7 +208,7 @@
"createTime" : 1708254322006, "createTime" : 1708254322006,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322006, "updateTime" : 1708254322006,
"tenantId" : "000000", "tenantId" : 0,
"id" : 17, "id" : 17,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "关闭", "dictLabel" : "关闭",
@ -225,7 +225,7 @@
"createTime" : 1708254322012, "createTime" : 1708254322012,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322012, "updateTime" : 1708254322012,
"tenantId" : "000000", "tenantId" : 0,
"id" : 18, "id" : 18,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "新增", "dictLabel" : "新增",
@ -242,7 +242,7 @@
"createTime" : 1708254322018, "createTime" : 1708254322018,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322018, "updateTime" : 1708254322018,
"tenantId" : "000000", "tenantId" : 0,
"id" : 19, "id" : 19,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "修改", "dictLabel" : "修改",
@ -259,7 +259,7 @@
"createTime" : 1708254322022, "createTime" : 1708254322022,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322022, "updateTime" : 1708254322022,
"tenantId" : "000000", "tenantId" : 0,
"id" : 20, "id" : 20,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "删除", "dictLabel" : "删除",
@ -276,7 +276,7 @@
"createTime" : 1708254322025, "createTime" : 1708254322025,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322025, "updateTime" : 1708254322025,
"tenantId" : "000000", "tenantId" : 0,
"id" : 21, "id" : 21,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "授权", "dictLabel" : "授权",
@ -293,7 +293,7 @@
"createTime" : 1708254322027, "createTime" : 1708254322027,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322027, "updateTime" : 1708254322027,
"tenantId" : "000000", "tenantId" : 0,
"id" : 22, "id" : 22,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "导出", "dictLabel" : "导出",
@ -310,7 +310,7 @@
"createTime" : 1708254322030, "createTime" : 1708254322030,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322030, "updateTime" : 1708254322030,
"tenantId" : "000000", "tenantId" : 0,
"id" : 23, "id" : 23,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "导入", "dictLabel" : "导入",
@ -327,7 +327,7 @@
"createTime" : 1708254322035, "createTime" : 1708254322035,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322035, "updateTime" : 1708254322035,
"tenantId" : "000000", "tenantId" : 0,
"id" : 24, "id" : 24,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "强退", "dictLabel" : "强退",
@ -344,7 +344,7 @@
"createTime" : 1708254322038, "createTime" : 1708254322038,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322038, "updateTime" : 1708254322038,
"tenantId" : "000000", "tenantId" : 0,
"id" : 25, "id" : 25,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "生成代码", "dictLabel" : "生成代码",
@ -361,7 +361,7 @@
"createTime" : 1708254322041, "createTime" : 1708254322041,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322041, "updateTime" : 1708254322041,
"tenantId" : "000000", "tenantId" : 0,
"id" : 26, "id" : 26,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "清空数据", "dictLabel" : "清空数据",
@ -378,7 +378,7 @@
"createTime" : 1708254322044, "createTime" : 1708254322044,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322044, "updateTime" : 1708254322044,
"tenantId" : "000000", "tenantId" : 0,
"id" : 27, "id" : 27,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "成功", "dictLabel" : "成功",
@ -395,7 +395,7 @@
"createTime" : 1708254322046, "createTime" : 1708254322046,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322046, "updateTime" : 1708254322046,
"tenantId" : "000000", "tenantId" : 0,
"id" : 28, "id" : 28,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "失败", "dictLabel" : "失败",
@ -412,7 +412,7 @@
"createTime" : 1708254322051, "createTime" : 1708254322051,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322051, "updateTime" : 1708254322051,
"tenantId" : "000000", "tenantId" : 0,
"id" : 29, "id" : 29,
"dictSort" : null, "dictSort" : null,
"dictLabel" : "其他", "dictLabel" : "其他",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254322074, "createTime" : 1708254322074,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322074, "updateTime" : 1708254322074,
"tenantId" : "000000", "tenantId" : 0,
"id" : 1, "id" : 1,
"dictName" : "用户性别", "dictName" : "用户性别",
"dictType" : "sys_user_sex", "dictType" : "sys_user_sex",
@ -16,7 +16,7 @@
"createTime" : 1708254322084, "createTime" : 1708254322084,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322084, "updateTime" : 1708254322084,
"tenantId" : "000000", "tenantId" : 0,
"id" : 2, "id" : 2,
"dictName" : "菜单状态", "dictName" : "菜单状态",
"dictType" : "sys_show_hide", "dictType" : "sys_show_hide",
@ -28,7 +28,7 @@
"createTime" : 1708254322088, "createTime" : 1708254322088,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322088, "updateTime" : 1708254322088,
"tenantId" : "000000", "tenantId" : 0,
"id" : 3, "id" : 3,
"dictName" : "系统开关", "dictName" : "系统开关",
"dictType" : "sys_normal_disable", "dictType" : "sys_normal_disable",
@ -40,7 +40,7 @@
"createTime" : 1708254322091, "createTime" : 1708254322091,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322091, "updateTime" : 1708254322091,
"tenantId" : "000000", "tenantId" : 0,
"id" : 6, "id" : 6,
"dictName" : "系统是否", "dictName" : "系统是否",
"dictType" : "sys_yes_no", "dictType" : "sys_yes_no",
@ -52,7 +52,7 @@
"createTime" : 1708254322093, "createTime" : 1708254322093,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322093, "updateTime" : 1708254322093,
"tenantId" : "000000", "tenantId" : 0,
"id" : 7, "id" : 7,
"dictName" : "通知类型", "dictName" : "通知类型",
"dictType" : "sys_notice_type", "dictType" : "sys_notice_type",
@ -64,7 +64,7 @@
"createTime" : 1708254322097, "createTime" : 1708254322097,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322097, "updateTime" : 1708254322097,
"tenantId" : "000000", "tenantId" : 0,
"id" : 8, "id" : 8,
"dictName" : "通知状态", "dictName" : "通知状态",
"dictType" : "sys_notice_status", "dictType" : "sys_notice_status",
@ -76,7 +76,7 @@
"createTime" : 1708254322100, "createTime" : 1708254322100,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322100, "updateTime" : 1708254322100,
"tenantId" : "000000", "tenantId" : 0,
"id" : 9, "id" : 9,
"dictName" : "操作类型", "dictName" : "操作类型",
"dictType" : "sys_oper_type", "dictType" : "sys_oper_type",
@ -88,7 +88,7 @@
"createTime" : 1708254322103, "createTime" : 1708254322103,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322103, "updateTime" : 1708254322103,
"tenantId" : "000000", "tenantId" : 0,
"id" : 10, "id" : 10,
"dictName" : "系统状态", "dictName" : "系统状态",
"dictType" : "sys_common_status", "dictType" : "sys_common_status",

View File

@ -1,6 +1,6 @@
[ { [ {
"id" : 516579924885573, "id" : 516579924885573,
"tenantId" : "000000", "tenantId" : 0,
"userName" : "admin", "userName" : "admin",
"status" : "0", "status" : "0",
"ipaddr" : "127.0.0.1", "ipaddr" : "127.0.0.1",
@ -11,7 +11,7 @@
"loginTime" : 1708254547722 "loginTime" : 1708254547722
}, { }, {
"id" : 1665628533390614529, "id" : 1665628533390614529,
"tenantId" : "000000", "tenantId" : 0,
"userName" : "admin", "userName" : "admin",
"status" : "0", "status" : "0",
"ipaddr" : "127.0.0.1", "ipaddr" : "127.0.0.1",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254322623, "createTime" : 1708254322623,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322623, "updateTime" : 1708254322623,
"tenantId" : "000000", "tenantId" : 0,
"id" : 1, "id" : 1,
"noticeTitle" : "温馨提醒2018-07-01 新版本发布啦", "noticeTitle" : "温馨提醒2018-07-01 新版本发布啦",
"noticeType" : "2", "noticeType" : "2",
@ -18,7 +18,7 @@
"createTime" : 1708254322639, "createTime" : 1708254322639,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322639, "updateTime" : 1708254322639,
"tenantId" : "000000", "tenantId" : 0,
"id" : 2, "id" : 2,
"noticeTitle" : "维护通知2018-07-01 系统凌晨维护", "noticeTitle" : "维护通知2018-07-01 系统凌晨维护",
"noticeType" : "1", "noticeType" : "1",

View File

@ -5,7 +5,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 516580177526853, "id" : 516580177526853,
"tenantId" : "000000", "tenantId" : 0,
"title" : "菜单管理", "title" : "菜单管理",
"businessType" : 2, "businessType" : 2,
"businessTypes" : null, "businessTypes" : null,
@ -30,7 +30,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 516580271538245, "id" : 516580271538245,
"tenantId" : "000000", "tenantId" : 0,
"title" : "菜单管理", "title" : "菜单管理",
"businessType" : 2, "businessType" : 2,
"businessTypes" : null, "businessTypes" : null,
@ -55,7 +55,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 516580303495237, "id" : 516580303495237,
"tenantId" : "000000", "tenantId" : 0,
"title" : "菜单管理", "title" : "菜单管理",
"businessType" : 2, "businessType" : 2,
"businessTypes" : null, "businessTypes" : null,
@ -80,7 +80,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 516580369678405, "id" : 516580369678405,
"tenantId" : "000000", "tenantId" : 0,
"title" : "菜单管理", "title" : "菜单管理",
"businessType" : 2, "businessType" : 2,
"businessTypes" : null, "businessTypes" : null,
@ -105,7 +105,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 516580424007749, "id" : 516580424007749,
"tenantId" : "000000", "tenantId" : 0,
"title" : "菜单管理", "title" : "菜单管理",
"businessType" : 2, "businessType" : 2,
"businessTypes" : null, "businessTypes" : null,
@ -130,7 +130,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 516580484644933, "id" : 516580484644933,
"tenantId" : "000000", "tenantId" : 0,
"title" : "菜单管理", "title" : "菜单管理",
"businessType" : 2, "businessType" : 2,
"businessTypes" : null, "businessTypes" : null,
@ -155,7 +155,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 516580523356229, "id" : 516580523356229,
"tenantId" : "000000", "tenantId" : 0,
"title" : "菜单管理", "title" : "菜单管理",
"businessType" : 2, "businessType" : 2,
"businessTypes" : null, "businessTypes" : null,
@ -180,7 +180,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 516580549386309, "id" : 516580549386309,
"tenantId" : "000000", "tenantId" : 0,
"title" : "菜单管理", "title" : "菜单管理",
"businessType" : 2, "businessType" : 2,
"businessTypes" : null, "businessTypes" : null,
@ -205,7 +205,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 516580700786757, "id" : 516580700786757,
"tenantId" : "000000", "tenantId" : 0,
"title" : "用户管理", "title" : "用户管理",
"businessType" : 3, "businessType" : 3,
"businessTypes" : null, "businessTypes" : null,
@ -230,7 +230,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 516580742733893, "id" : 516580742733893,
"tenantId" : "000000", "tenantId" : 0,
"title" : "用户管理", "title" : "用户管理",
"businessType" : 3, "businessType" : 3,
"businessTypes" : null, "businessTypes" : null,
@ -255,7 +255,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : null, "updateTime" : null,
"id" : 1665641342438514690, "id" : 1665641342438514690,
"tenantId" : "000000", "tenantId" : 0,
"title" : "代码生成", "title" : "代码生成",
"businessType" : 6, "businessType" : 6,
"businessTypes" : null, "businessTypes" : null,

View File

@ -4,7 +4,7 @@
"createTime" : 1708254322687, "createTime" : 1708254322687,
"updateBy" : 1, "updateBy" : 1,
"updateTime" : 1708254322687, "updateTime" : 1708254322687,
"tenantId" : "000000", "tenantId" : 0,
"id" : 1, "id" : 1,
"configKey" : "oss-embed", "configKey" : "oss-embed",
"accessKey" : "admin", "accessKey" : "admin",
@ -26,7 +26,7 @@
"createTime" : 1708254322701, "createTime" : 1708254322701,
"updateBy" : 1, "updateBy" : 1,
"updateTime" : 1708254322701, "updateTime" : 1708254322701,
"tenantId" : "000000", "tenantId" : 0,
"id" : 2, "id" : 2,
"configKey" : "qiniu", "configKey" : "qiniu",
"accessKey" : "XXXXXXXXXXXXXXX", "accessKey" : "XXXXXXXXXXXXXXX",
@ -48,7 +48,7 @@
"createTime" : 1708254322703, "createTime" : 1708254322703,
"updateBy" : 1, "updateBy" : 1,
"updateTime" : 1708254322703, "updateTime" : 1708254322703,
"tenantId" : "000000", "tenantId" : 0,
"id" : 3, "id" : 3,
"configKey" : "aliyun", "configKey" : "aliyun",
"accessKey" : "XXXXXXXXXXXXXXX", "accessKey" : "XXXXXXXXXXXXXXX",
@ -70,7 +70,7 @@
"createTime" : 1708254322705, "createTime" : 1708254322705,
"updateBy" : 1, "updateBy" : 1,
"updateTime" : 1708254322705, "updateTime" : 1708254322705,
"tenantId" : "000000", "tenantId" : 0,
"id" : 4, "id" : 4,
"configKey" : "qcloud", "configKey" : "qcloud",
"accessKey" : "XXXXXXXXXXXXXXX", "accessKey" : "XXXXXXXXXXXXXXX",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254322729, "createTime" : 1708254322729,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322729, "updateTime" : 1708254322729,
"tenantId" : "000000", "tenantId" : 0,
"id" : 1, "id" : 1,
"postCode" : "ceo", "postCode" : "ceo",
"postName" : "董事长", "postName" : "董事长",
@ -17,7 +17,7 @@
"createTime" : 1708254322742, "createTime" : 1708254322742,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322742, "updateTime" : 1708254322742,
"tenantId" : "000000", "tenantId" : 0,
"id" : 2, "id" : 2,
"postCode" : "se", "postCode" : "se",
"postName" : "项目经理", "postName" : "项目经理",
@ -30,7 +30,7 @@
"createTime" : 1708254322745, "createTime" : 1708254322745,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322745, "updateTime" : 1708254322745,
"tenantId" : "000000", "tenantId" : 0,
"id" : 3, "id" : 3,
"postCode" : "hr", "postCode" : "hr",
"postName" : "人力资源", "postName" : "人力资源",
@ -43,7 +43,7 @@
"createTime" : 1708254322750, "createTime" : 1708254322750,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322750, "updateTime" : 1708254322750,
"tenantId" : "000000", "tenantId" : 0,
"id" : 4, "id" : 4,
"postCode" : "user", "postCode" : "user",
"postName" : "普通员工", "postName" : "普通员工",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254322779, "createTime" : 1708254322779,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322779, "updateTime" : 1708254322779,
"tenantId" : "000000", "tenantId" : 0,
"id" : 1, "id" : 1,
"roleName" : "超级管理员", "roleName" : "超级管理员",
"roleKey" : "superadmin", "roleKey" : "superadmin",
@ -22,7 +22,7 @@
"createTime" : 1708254322799, "createTime" : 1708254322799,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254322799, "updateTime" : 1708254322799,
"tenantId" : "000000", "tenantId" : 0,
"id" : 2, "id" : 2,
"roleName" : "普通角色", "roleName" : "普通角色",
"roleKey" : "common", "roleKey" : "common",

View File

@ -5,7 +5,7 @@
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254323415, "updateTime" : 1708254323415,
"id" : 1, "id" : 1,
"tenantId" : "000000", "tenantId" : 0,
"contactUserName" : "管理组", "contactUserName" : "管理组",
"contactPhone" : "15888888888", "contactPhone" : "15888888888",
"companyName" : "XXX有限公司", "companyName" : "XXX有限公司",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254323474, "createTime" : 1708254323474,
"updateBy" : 1, "updateBy" : 1,
"updateTime" : 1708254547736, "updateTime" : 1708254547736,
"tenantId" : "000000", "tenantId" : 0,
"id" : 1, "id" : 1,
"deptId" : 103, "deptId" : 103,
"userName" : "admin", "userName" : "admin",

View File

@ -4,7 +4,7 @@
"createTime" : 1708254321471, "createTime" : 1708254321471,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321471, "updateTime" : 1708254321471,
"tenantId" : "000000", "tenantId" : 0,
"id" : 432323, "id" : 432323,
"uid" : "18126045687", "uid" : "18126045687",
"secret" : "483752384B473759556E685768796B6F644E48634F76486C51646A41576B545A2B396C34474244414F334F517674507547437A72627A7154302B724441734C5A", "secret" : "483752384B473759556E685768796B6F644E48634F76486C51646A41576B545A2B396C34474244414F334F517674507547437A72627A7154302B724441734C5A",
@ -24,7 +24,7 @@
"createTime" : 1708254321468, "createTime" : 1708254321468,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321468, "updateTime" : 1708254321468,
"tenantId" : "000000", "tenantId" : 0,
"id" : 3454543, "id" : 3454543,
"uid" : "tm1", "uid" : "tm1",
"secret" : null, "secret" : null,
@ -44,7 +44,7 @@
"createTime" : 1708254321451, "createTime" : 1708254321451,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321451, "updateTime" : 1708254321451,
"tenantId" : "000000", "tenantId" : 0,
"id" : 13123123, "id" : 13123123,
"uid" : "iotkit", "uid" : "iotkit",
"secret" : "6E49354D37437030564370666E48486150524B3134743258735059354D75324F6532594478654C47767535614C6C6E767139625170774E576477785A34513369", "secret" : "6E49354D37437030564370666E48486150524B3134743258735059354D75324F6532594478654C47767535614C6C6E767139625170774E576477785A34513369",
@ -64,7 +64,7 @@
"createTime" : 1708254321458, "createTime" : 1708254321458,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321458, "updateTime" : 1708254321458,
"tenantId" : "000000", "tenantId" : 0,
"id" : 23423423, "id" : 23423423,
"uid" : "tm3", "uid" : "tm3",
"secret" : null, "secret" : null,
@ -84,7 +84,7 @@
"createTime" : 1708254321463, "createTime" : 1708254321463,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321463, "updateTime" : 1708254321463,
"tenantId" : "000000", "tenantId" : 0,
"id" : 45234345, "id" : 45234345,
"uid" : "du1", "uid" : "du1",
"secret" : "483752384B473759556E685768796B6F644E48634F76486C51646A41576B545A2B396C34474244414F334F517674507547437A72627A7154302B724441734C5A", "secret" : "483752384B473759556E685768796B6F644E48634F76486C51646A41576B545A2B396C34474244414F334F517674507547437A72627A7154302B724441734C5A",
@ -104,7 +104,7 @@
"createTime" : 1708254321454, "createTime" : 1708254321454,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321454, "updateTime" : 1708254321454,
"tenantId" : "000000", "tenantId" : 0,
"id" : 12312312312, "id" : 12312312312,
"uid" : "du2", "uid" : "du2",
"secret" : null, "secret" : null,
@ -124,7 +124,7 @@
"createTime" : 1708254321446, "createTime" : 1708254321446,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321446, "updateTime" : 1708254321446,
"tenantId" : "000000", "tenantId" : 0,
"id" : 141231312312, "id" : 141231312312,
"uid" : "guest1", "uid" : "guest1",
"secret" : "48774861346645676F51324A4D6E6639306E6474437741634C4333746C4575666C316F76503455542B5836763065315A2F676244695056557356704D49513569", "secret" : "48774861346645676F51324A4D6E6639306E6474437741634C4333746C4575666C316F76503455542B5836763065315A2F676244695056557356704D49513569",
@ -144,7 +144,7 @@
"createTime" : 1708254321434, "createTime" : 1708254321434,
"updateBy" : null, "updateBy" : null,
"updateTime" : 1708254321434, "updateTime" : 1708254321434,
"tenantId" : "000000", "tenantId" : 0,
"id" : 13123123123213, "id" : 13123123123213,
"uid" : "13480802157", "uid" : "13480802157",
"secret" : "483752384B473759556E685768796B6F644E48634F76486C51646A41576B545A2B396C34474244414F334F78574F4778613764564338594E666770595A376177", "secret" : "483752384B473759556E685768796B6F644E48634F76486C51646A41576B545A2B396C34474244414F334F78574F4778613764564338594E666770595A376177",

BIN
doc/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

View File

@ -44,6 +44,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration> <configuration>
<source>${java.version}</source> <source>${java.version}</source>
<target>${java.version}</target> <target>${java.version}</target>

View File

@ -23,6 +23,7 @@
package cc.iotkit.model.alert; package cc.iotkit.model.alert;
import cc.iotkit.model.Owned; import cc.iotkit.model.Owned;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -35,7 +36,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class AlertConfig implements Owned<Long> { public class AlertConfig extends TenantModel implements Owned<Long> {
private Long id; private Long id;

View File

@ -23,6 +23,7 @@
package cc.iotkit.model.alert; package cc.iotkit.model.alert;
import cc.iotkit.model.Owned; import cc.iotkit.model.Owned;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -35,7 +36,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class AlertRecord implements Owned<Long> { public class AlertRecord extends TenantModel implements Owned<Long> {
private Long id; private Long id;

View File

@ -23,6 +23,7 @@
package cc.iotkit.model.device; package cc.iotkit.model.device;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -35,7 +36,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class DeviceConfig implements Id<String> { public class DeviceConfig extends TenantModel implements Id<String> {
private String id; private String id;

View File

@ -23,13 +23,14 @@
package cc.iotkit.model.device; package cc.iotkit.model.device;
import cc.iotkit.model.Owned; import cc.iotkit.model.Owned;
import cc.iotkit.model.TenantModel;
import lombok.Data; import lombok.Data;
/** /**
* *
*/ */
@Data @Data
public class DeviceGroup implements Owned<String> { public class DeviceGroup extends TenantModel implements Owned<String> {
/** /**
* id * id

View File

@ -23,6 +23,7 @@
package cc.iotkit.model.device; package cc.iotkit.model.device;
import cc.iotkit.model.Owned; import cc.iotkit.model.Owned;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -37,7 +38,7 @@ import java.util.Map;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class DeviceInfo implements Owned<String> { public class DeviceInfo extends TenantModel implements Owned<String> {
private String id; private String id;

View File

@ -23,6 +23,7 @@
package cc.iotkit.model.device; package cc.iotkit.model.device;
import cc.iotkit.model.Owned; import cc.iotkit.model.Owned;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -38,7 +39,7 @@ import java.util.List;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class VirtualDevice implements Owned<String> { public class VirtualDevice extends TenantModel implements Owned<String> {
public static final String STATE_STOPPED = "stopped"; public static final String STATE_STOPPED = "stopped";
public static final String STATE_RUNNING = "running"; public static final String STATE_RUNNING = "running";

View File

@ -24,6 +24,7 @@
package cc.iotkit.model.notify; package cc.iotkit.model.notify;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -38,7 +39,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class Channel implements Id<Long> { public class Channel extends TenantModel implements Id<Long> {
private Long id; private Long id;

View File

@ -24,6 +24,7 @@
package cc.iotkit.model.notify; package cc.iotkit.model.notify;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -38,7 +39,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class ChannelConfig implements Id<Long> { public class ChannelConfig extends TenantModel implements Id<Long> {
private Long id; private Long id;

View File

@ -24,6 +24,7 @@
package cc.iotkit.model.notify; package cc.iotkit.model.notify;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -38,7 +39,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class ChannelTemplate implements Id<Long> { public class ChannelTemplate extends TenantModel implements Id<Long> {
private Long id; private Long id;

View File

@ -24,6 +24,7 @@
package cc.iotkit.model.notify; package cc.iotkit.model.notify;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -38,7 +39,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class NotifyMessage implements Id<Long> { public class NotifyMessage extends TenantModel implements Id<Long> {
private Long id; private Long id;

View File

@ -23,6 +23,7 @@
package cc.iotkit.model.ota; package cc.iotkit.model.ota;
import cc.iotkit.model.TenantModel;
import lombok.Data; import lombok.Data;
/** /**
@ -31,7 +32,7 @@ import lombok.Data;
* @Description: * @Description:
*/ */
@Data @Data
public class DeviceOta { public class DeviceOta extends TenantModel {
private String currentVersion; private String currentVersion;
private String deviceId; private String deviceId;
} }

View File

@ -24,6 +24,7 @@
package cc.iotkit.model.ota; package cc.iotkit.model.ota;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -39,7 +40,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class DeviceOtaDetail implements Id<Long> { public class DeviceOtaDetail extends TenantModel implements Id<Long> {
private Long id; private Long id;

View File

@ -24,6 +24,7 @@
package cc.iotkit.model.ota; package cc.iotkit.model.ota;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.*; import lombok.*;
/** /**
@ -36,7 +37,7 @@ import lombok.*;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class DeviceOtaInfo implements Id<Long> { public class DeviceOtaInfo extends TenantModel implements Id<Long> {
private Long id; private Long id;

View File

@ -24,6 +24,7 @@
package cc.iotkit.model.ota; package cc.iotkit.model.ota;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -38,7 +39,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class OtaDevice implements Id<Long> { public class OtaDevice extends TenantModel implements Id<Long> {
private Long id; private Long id;

View File

@ -23,6 +23,7 @@
package cc.iotkit.model.ota; package cc.iotkit.model.ota;
import cc.iotkit.model.TenantModel;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@ -33,6 +34,6 @@ import java.io.Serializable;
* @Description: * @Description:
*/ */
@Data @Data
public class OtaInfo implements Serializable { public class OtaInfo extends TenantModel implements Serializable {
} }

View File

@ -24,6 +24,7 @@
package cc.iotkit.model.ota; package cc.iotkit.model.ota;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -40,7 +41,7 @@ import java.util.Map;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class OtaPackage implements Id<Long> { public class OtaPackage extends TenantModel implements Id<Long> {
private Long id; private Long id;

View File

@ -25,6 +25,7 @@ package cc.iotkit.model.plugin;
import cc.iotkit.model.BaseModel; import cc.iotkit.model.BaseModel;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -37,7 +38,7 @@ import java.io.Serializable;
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
public class PluginInfo extends BaseModel implements Id<Long>, Serializable { public class PluginInfo extends TenantModel implements Id<Long>, Serializable {
/** /**
* - * -

View File

@ -25,6 +25,7 @@ package cc.iotkit.model.plugin;
import cc.iotkit.model.BaseModel; import cc.iotkit.model.BaseModel;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.*; import lombok.*;
import java.io.Serializable; import java.io.Serializable;
@ -39,7 +40,7 @@ import java.io.Serializable;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Builder @Builder
public class PluginInstance extends BaseModel implements Id<Long>, Serializable { public class PluginInstance extends TenantModel implements Id<Long>, Serializable {
private Long id; private Long id;

View File

@ -23,6 +23,7 @@
package cc.iotkit.model.product; package cc.iotkit.model.product;
import cc.iotkit.model.Owned; import cc.iotkit.model.Owned;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -32,7 +33,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class AppDesign implements Owned<String> { public class AppDesign extends TenantModel implements Owned<String> {
private String id; private String id;

View File

@ -23,10 +23,11 @@
package cc.iotkit.model.product; package cc.iotkit.model.product;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.Data; import lombok.Data;
@Data @Data
public class Category implements Id<String> { public class Category extends TenantModel implements Id<String> {
private String id; private String id;

View File

@ -23,6 +23,7 @@
package cc.iotkit.model.product; package cc.iotkit.model.product;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
@ -32,7 +33,7 @@ import lombok.NoArgsConstructor;
@Builder @Builder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class ProductModel implements Id<String> { public class ProductModel extends TenantModel implements Id<String> {
public static final String TYPE_JS = "JavaScript"; public static final String TYPE_JS = "JavaScript";
public static final String TYPE_LUA = "LuaScript"; public static final String TYPE_LUA = "LuaScript";

View File

@ -24,6 +24,7 @@
package cc.iotkit.model.system; package cc.iotkit.model.system;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
@ -36,7 +37,7 @@ import java.util.Date;
* @date 2023-02-07 * @date 2023-02-07
*/ */
@Data @Data
public class SysLoginInfo implements Id<Long>,Serializable { public class SysLoginInfo extends TenantModel implements Id<Long>,Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**

View File

@ -25,6 +25,7 @@ package cc.iotkit.model.system;
import cc.iotkit.model.BaseModel; import cc.iotkit.model.BaseModel;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -37,7 +38,7 @@ import java.io.Serializable;
**/ **/
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
public class SysRoleDept extends BaseModel implements Id<Long>, Serializable { public class SysRoleDept extends TenantModel implements Id<Long>, Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@ -25,6 +25,7 @@ package cc.iotkit.model.system;
import cc.iotkit.model.BaseModel; import cc.iotkit.model.BaseModel;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import cc.iotkit.model.TenantModel;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -38,7 +39,7 @@ import java.io.Serializable;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
public class SysRoleMenu extends BaseModel implements Id<Long>, Serializable { public class SysRoleMenu extends TenantModel implements Id<Long>, Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

View File

@ -26,6 +26,8 @@ package cc.iotkit.model.system;
import cc.iotkit.model.BaseModel; import cc.iotkit.model.BaseModel;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import java.io.Serializable; import java.io.Serializable;
import cc.iotkit.model.TenantModel;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -37,7 +39,7 @@ import lombok.EqualsAndHashCode;
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
public class SysUserPost extends BaseModel implements Id<Long>, Serializable { public class SysUserPost extends TenantModel implements Id<Long>, Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private Long id; private Long id;

View File

@ -26,6 +26,8 @@ package cc.iotkit.model.system;
import cc.iotkit.model.BaseModel; import cc.iotkit.model.BaseModel;
import cc.iotkit.model.Id; import cc.iotkit.model.Id;
import java.io.Serializable; import java.io.Serializable;
import cc.iotkit.model.TenantModel;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -37,7 +39,7 @@ import lombok.EqualsAndHashCode;
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Data @Data
public class SysUserRole extends BaseModel implements Id<Long>, Serializable { public class SysUserRole extends TenantModel implements Id<Long>, Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private Long id; private Long id;

View File

@ -25,6 +25,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration> <configuration>
<source>${java.version}</source> <source>${java.version}</source>
<target>${java.version}</target> <target>${java.version}</target>

View File

@ -67,4 +67,7 @@ public interface ISysMenuData extends ICommonData<SysMenu, Long> {
boolean checkMenuNameUnique(SysMenu menu); boolean checkMenuNameUnique(SysMenu menu);
List<Long> selectParentIdByMenuIds(List<Long> menuIds);
List<Long> findByMenuIdListAndNotParentIdList(List<Long> menuIds, List<Long> parentIds);
} }

View File

@ -52,6 +52,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration> <configuration>
<source>${java.version}</source> <source>${java.version}</source>
<target>${java.version}</target> <target>${java.version}</target>

View File

@ -96,6 +96,10 @@
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>cc.iotkit</groupId>
<artifactId>iot-common-satoken</artifactId>
</dependency>
</dependencies> </dependencies>

View File

@ -22,21 +22,34 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.ParamDef;
import javax.persistence.EntityListeners;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class DeviceIdGroup { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class DeviceIdGroup extends BaseEntity implements TenantAware {
@ApiModelProperty(value = "设备组id") @ApiModelProperty(value = "设备组id")
private String id; private Long id;
@ApiModelProperty(value = "设备id") @ApiModelProperty(value = "设备id")
private String deviceId; private String deviceId;
@ApiModelProperty(value = "组名称") @ApiModelProperty(value = "组名称")
private String name; private String name;
private Long tenantId;
} }

View File

@ -23,22 +23,28 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.alert.AlertConfig; import cc.iotkit.model.alert.AlertConfig;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
@Data @Data
@Entity @Entity
@Table(name = "alert_config") @Table(name = "alert_config")
@AutoMapper(target = AlertConfig.class) @AutoMapper(target = AlertConfig.class)
public class TbAlertConfig { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbAlertConfig extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -94,4 +100,6 @@ public class TbAlertConfig {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -23,22 +23,28 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.alert.AlertRecord; import cc.iotkit.model.alert.AlertRecord;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "alert_record") @Table(name = "alert_record")
@AutoMapper(target = AlertRecord.class) @AutoMapper(target = AlertRecord.class)
public class TbAlertRecord { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbAlertRecord extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -82,4 +88,5 @@ public class TbAlertRecord {
@ApiModelProperty(value = "是否已读") @ApiModelProperty(value = "是否已读")
private Boolean readFlg; private Boolean readFlg;
private Long tenantId;
} }

View File

@ -22,22 +22,28 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.product.Category; import cc.iotkit.model.product.Category;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "category") @Table(name = "category")
@AutoMapper(target = Category.class) @AutoMapper(target = Category.class)
public class TbCategory { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbCategory extends BaseEntity implements TenantAware {
@ApiModelProperty(value = "分类id") @ApiModelProperty(value = "分类id")
@Id @Id
@ -51,5 +57,5 @@ public class TbCategory {
@ApiModelProperty(value = "分类描述") @ApiModelProperty(value = "分类描述")
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -23,16 +23,19 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.notify.Channel; import cc.iotkit.model.notify.Channel;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* author: * author:
@ -43,7 +46,10 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "channel") @Table(name = "channel")
@AutoMapper(target= Channel.class) @AutoMapper(target= Channel.class)
public class TbChannel { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbChannel extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator") @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
@ -61,4 +67,6 @@ public class TbChannel {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -23,12 +23,18 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.notify.ChannelConfig; import cc.iotkit.model.notify.ChannelConfig;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -42,7 +48,10 @@ import javax.persistence.*;
@Table(name = "channel_config") @Table(name = "channel_config")
@ApiModel(value = "通道配置") @ApiModel(value = "通道配置")
@AutoMapper(target = ChannelConfig.class) @AutoMapper(target = ChannelConfig.class)
public class TbChannelConfig { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbChannelConfig extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator") @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
@ -61,4 +70,6 @@ public class TbChannelConfig {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -23,17 +23,20 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.notify.ChannelTemplate; import cc.iotkit.model.notify.ChannelTemplate;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* @Author: * @Author:
@ -45,7 +48,10 @@ import javax.persistence.Table;
@Table(name = "channel_template") @Table(name = "channel_template")
@ApiModel(value = "通道模板") @ApiModel(value = "通道模板")
@AutoMapper(target= ChannelTemplate.class) @AutoMapper(target= ChannelTemplate.class)
public class TbChannelTemplate { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbChannelTemplate extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator") @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
@ -63,4 +69,6 @@ public class TbChannelTemplate {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -23,13 +23,19 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.device.DeviceConfig; import cc.iotkit.model.device.DeviceConfig;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -38,7 +44,10 @@ import javax.persistence.*;
@ApiModel(value = "设备配置") @ApiModel(value = "设备配置")
@Table(name = "device_config") @Table(name = "device_config")
@AutoMapper(target = DeviceConfig.class) @AutoMapper(target = DeviceConfig.class)
public class TbDeviceConfig { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbDeviceConfig extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -68,4 +77,6 @@ public class TbDeviceConfig {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -22,24 +22,30 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.device.DeviceGroup; import cc.iotkit.model.device.DeviceGroup;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "device_group") @Table(name = "device_group")
@ApiModel(value = "设备组") @ApiModel(value = "设备组")
@AutoMapper(target = DeviceGroup.class) @AutoMapper(target = DeviceGroup.class)
public class TbDeviceGroup { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbDeviceGroup extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -74,4 +80,5 @@ public class TbDeviceGroup {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private long createAt; private long createAt;
private Long tenantId;
} }

View File

@ -23,23 +23,29 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Entity @Entity
@Table(name = "device_group_mapping") @Table(name = "device_group_mapping")
public class TbDeviceGroupMapping { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbDeviceGroupMapping extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -53,4 +59,5 @@ public class TbDeviceGroupMapping {
@ApiModelProperty(value = "设备组id") @ApiModelProperty(value = "设备组id")
private String groupId; private String groupId;
private Long tenantId;
} }

View File

@ -23,6 +23,8 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.device.DeviceInfo; import cc.iotkit.model.device.DeviceInfo;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMapping; import io.github.linpeilie.annotations.AutoMapping;
@ -30,19 +32,22 @@ import io.github.linpeilie.annotations.ReverseAutoMapping;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "device_info") @Table(name = "device_info")
@ApiModel(value = "设备信息") @ApiModel(value = "设备信息")
@AutoMapper(target = DeviceInfo.class) @AutoMapper(target = DeviceInfo.class)
public class TbDeviceInfo { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbDeviceInfo extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -90,4 +95,10 @@ public class TbDeviceInfo {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
/**
*
*/
@ApiModelProperty(value = "租户编号")
private Long tenantId;
} }

View File

@ -23,12 +23,18 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.ota.DeviceOtaDetail; import cc.iotkit.model.ota.DeviceOtaDetail;
import cc.iotkit.model.ota.DeviceOtaInfo; import cc.iotkit.model.ota.DeviceOtaInfo;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -42,7 +48,10 @@ import javax.persistence.*;
@Table(name = "device_ota_detail") @Table(name = "device_ota_detail")
@ApiModel(value = "设备升级明细") @ApiModel(value = "设备升级明细")
@AutoMapper(target = DeviceOtaDetail.class) @AutoMapper(target = DeviceOtaDetail.class)
public class TbDeviceOtaDetail { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbDeviceOtaDetail extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator") @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
@ -66,4 +75,6 @@ public class TbDeviceOtaDetail {
private String deviceName; private String deviceName;
private Long otaInfoId; private Long otaInfoId;
private Long tenantId;
} }

View File

@ -23,12 +23,18 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.ota.DeviceOtaInfo; import cc.iotkit.model.ota.DeviceOtaInfo;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -42,7 +48,10 @@ import javax.persistence.*;
@Table(name = "device_ota_info") @Table(name = "device_ota_info")
@ApiModel(value = "设备信息") @ApiModel(value = "设备信息")
@AutoMapper(target = DeviceOtaInfo.class) @AutoMapper(target = DeviceOtaInfo.class)
public class TbDeviceOtaInfo { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbDeviceOtaInfo extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator") @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
@ -66,4 +75,6 @@ public class TbDeviceOtaInfo {
private String productKey; private String productKey;
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -22,22 +22,27 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "device_sub_user") @Table(name = "device_sub_user")
@ApiModel(value = "设备用户映射") @ApiModel(value = "设备用户映射")
@FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
public class TbDeviceSubUser { @Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbDeviceSubUser extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -51,4 +56,6 @@ public class TbDeviceSubUser {
@ApiModelProperty(value = "设备用户id") @ApiModelProperty(value = "设备用户id")
private String uid; private String uid;
private Long tenantId;
} }

View File

@ -22,13 +22,19 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Builder; import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -39,7 +45,10 @@ import javax.persistence.*;
@Entity @Entity
@Table(name = "device_tag") @Table(name = "device_tag")
@ApiModel(value = "设备标签") @ApiModel(value = "设备标签")
public class TbDeviceTag { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbDeviceTag extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -69,4 +78,5 @@ public class TbDeviceTag {
@Column(name = "[value]") @Column(name = "[value]")
private String value; private String value;
private Long tenantId;
} }

View File

@ -23,6 +23,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware; import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener; import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.product.Icon; import cc.iotkit.model.product.Icon;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
@ -42,7 +43,7 @@ import javax.persistence.*;
@ApiModel(value = "图标") @ApiModel(value = "图标")
@Table(name = "icon") @Table(name = "icon")
@AutoMapper(target = Icon.class) @AutoMapper(target = Icon.class)
@FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "string")}) @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId") @Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class) @EntityListeners(TenantListener.class)
public class TbIcon extends BaseEntity implements TenantAware { public class TbIcon extends BaseEntity implements TenantAware {

View File

@ -23,17 +23,20 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.notify.NotifyMessage; import cc.iotkit.model.notify.NotifyMessage;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* @Author: * @Author:
@ -45,7 +48,10 @@ import javax.persistence.Table;
@ApiModel(value = "通知消息") @ApiModel(value = "通知消息")
@Table(name = "notify_message") @Table(name = "notify_message")
@AutoMapper(target= NotifyMessage.class) @AutoMapper(target= NotifyMessage.class)
public class TbNotifyMessage { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbNotifyMessage extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator") @GenericGenerator(name = "SnowflakeIdGenerator", strategy = "cc.iotkit.data.config.id.SnowflakeIdGenerator")
@ -61,4 +67,6 @@ public class TbNotifyMessage {
private Long createAt; private Long createAt;
private Long updateAt; private Long updateAt;
private Long tenantId;
} }

View File

@ -22,21 +22,25 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.OauthClient; import cc.iotkit.model.OauthClient;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "oauth_client") @Table(name = "oauth_client")
@AutoMapper(target = OauthClient.class) @AutoMapper(target = OauthClient.class)
@FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbOauthClient { public class TbOauthClient {
@Id @Id

View File

@ -23,13 +23,16 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* @Author: * @Author:
@ -39,7 +42,10 @@ import javax.persistence.Table;
@Data @Data
@Entity @Entity
@Table(name = "ota_device") @Table(name = "ota_device")
public class TbOtaDevice { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbOtaDevice extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -55,4 +61,6 @@ public class TbOtaDevice {
private Integer status; private Integer status;
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -23,10 +23,16 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.ota.OtaPackage; import cc.iotkit.model.ota.OtaPackage;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -39,7 +45,10 @@ import javax.persistence.*;
@Entity @Entity
@Table(name = "ota_package") @Table(name = "ota_package")
@AutoMapper(target = OtaPackage.class) @AutoMapper(target = OtaPackage.class)
public class TbOtaPackage { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbOtaPackage extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -72,4 +81,6 @@ public class TbOtaPackage {
private String extData; private String extData;
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -23,18 +23,21 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.plugin.PluginInstance; import cc.iotkit.model.plugin.PluginInstance;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@ -42,7 +45,10 @@ import javax.persistence.Table;
@ApiModel(value = "插件实例") @ApiModel(value = "插件实例")
@Table(name = "plugin_instance") @Table(name = "plugin_instance")
@AutoMapper(target = PluginInstance.class) @AutoMapper(target = PluginInstance.class)
public class TbPluginInstance extends BaseEntity { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbPluginInstance extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -81,4 +87,6 @@ public class TbPluginInstance extends BaseEntity {
@ApiModelProperty(value = "心跳时间") @ApiModelProperty(value = "心跳时间")
private Long heartbeatAt; private Long heartbeatAt;
private Long tenantId;
} }

View File

@ -23,6 +23,7 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware; import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener; import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.product.Product; import cc.iotkit.model.product.Product;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
@ -44,7 +45,7 @@ import javax.persistence.*;
@FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "string")}) @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "string")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId") @Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class) @EntityListeners(TenantListener.class)
public class TbProduct implements TenantAware { public class TbProduct extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")

View File

@ -23,12 +23,18 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.product.ProductModel; import cc.iotkit.model.product.ProductModel;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -37,7 +43,10 @@ import javax.persistence.*;
@ApiModel(value = "产品型号") @ApiModel(value = "产品型号")
@Table(name = "product_model") @Table(name = "product_model")
@AutoMapper(target = ProductModel.class) @AutoMapper(target = ProductModel.class)
public class TbProductModel { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbProductModel extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -75,4 +84,6 @@ public class TbProductModel {
private String state; private String state;
@ApiModelProperty(value = "修改时间") @ApiModelProperty(value = "修改时间")
private Long modifyAt; private Long modifyAt;
private Long tenantId;
} }

View File

@ -22,6 +22,9 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.rule.RuleInfo; import cc.iotkit.model.rule.RuleInfo;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMapping; import io.github.linpeilie.annotations.AutoMapping;
@ -29,7 +32,10 @@ import io.github.linpeilie.annotations.ReverseAutoMapping;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -38,7 +44,10 @@ import javax.persistence.*;
@Table(name = "rule_info") @Table(name = "rule_info")
@ApiModel(value = "规则") @ApiModel(value = "规则")
@AutoMapper(target = RuleInfo.class) @AutoMapper(target = RuleInfo.class)
public class TbRuleInfo { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbRuleInfo extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -83,4 +92,5 @@ public class TbRuleInfo {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -23,15 +23,16 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.screen.Screen; import cc.iotkit.model.screen.Screen;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* @Authortfd * @Authortfd
@ -41,6 +42,9 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "screen") @Table(name = "screen")
@AutoMapper(target = Screen.class) @AutoMapper(target = Screen.class)
@FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbScreen { public class TbScreen {
@Id @Id

View File

@ -23,10 +23,14 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.screen.ScreenApi; import cc.iotkit.model.screen.ScreenApi;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -38,6 +42,9 @@ import javax.persistence.*;
@Entity @Entity
@Table(name = "screen_api") @Table(name = "screen_api")
@AutoMapper(target = ScreenApi.class) @AutoMapper(target = ScreenApi.class)
@FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbScreenApi { public class TbScreenApi {
@Id @Id

View File

@ -23,18 +23,21 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.system.SysOss; import cc.iotkit.model.system.SysOss;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* OSS * OSS
@ -47,7 +50,10 @@ import javax.persistence.Table;
@Table(name = "sys_oss") @Table(name = "sys_oss")
@ApiModel(value = "OSS对象存储对象") @ApiModel(value = "OSS对象存储对象")
@AutoMapper(target = SysOss.class) @AutoMapper(target = SysOss.class)
public class TbSysOss extends BaseEntity { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbSysOss extends BaseEntity implements TenantAware {
/** /**
* *

View File

@ -23,16 +23,19 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.system.SysRoleDept; import cc.iotkit.model.system.SysRoleDept;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* sys_role_dept * sys_role_dept
@ -44,7 +47,10 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "sys_role_dept") @Table(name = "sys_role_dept")
@AutoMapper(target = SysRoleDept.class) @AutoMapper(target = SysRoleDept.class)
public class TbSysRoleDept { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbSysRoleDept extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -64,4 +70,6 @@ public class TbSysRoleDept {
@ApiModelProperty(value = "部门ID") @ApiModelProperty(value = "部门ID")
private Long deptId; private Long deptId;
private Long tenantId;
} }

View File

@ -23,16 +23,19 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.system.SysRoleMenu; import cc.iotkit.model.system.SysRoleMenu;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* sys_role_menu * sys_role_menu
@ -44,7 +47,10 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "sys_role_menu") @Table(name = "sys_role_menu")
@AutoMapper(target = SysRoleMenu.class) @AutoMapper(target = SysRoleMenu.class)
public class TbSysRoleMenu { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbSysRoleMenu extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -64,4 +70,6 @@ public class TbSysRoleMenu {
@ApiModelProperty(value = "菜单ID") @ApiModelProperty(value = "菜单ID")
private Long menuId; private Long menuId;
private Long tenantId;
} }

View File

@ -44,7 +44,6 @@ import java.util.Date;
* @author Michelle.Chung * @author Michelle.Chung
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true)
@Entity @Entity
@Table(name = "sys_tenant") @Table(name = "sys_tenant")
@AutoMapper(target = SysTenant.class) @AutoMapper(target = SysTenant.class)

View File

@ -23,15 +23,18 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* sys_user_post * sys_user_post
@ -43,7 +46,10 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "sys_user_post") @Table(name = "sys_user_post")
@AutoMapper(target = cc.iotkit.model.system.SysUserPost.class) @AutoMapper(target = cc.iotkit.model.system.SysUserPost.class)
public class TbSysUserPost extends BaseEntity { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbSysUserPost extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -62,4 +68,6 @@ public class TbSysUserPost extends BaseEntity {
@ApiModelProperty(value = "岗位ID") @ApiModelProperty(value = "岗位ID")
private Long postId; private Long postId;
private Long tenantId;
} }

View File

@ -23,15 +23,18 @@
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* sys_user_role * sys_user_role
@ -43,7 +46,10 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "sys_user_role") @Table(name = "sys_user_role")
@AutoMapper(target = cc.iotkit.model.system.SysUserRole.class) @AutoMapper(target = cc.iotkit.model.system.SysUserRole.class)
public class TbSysUserRole extends BaseEntity { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbSysUserRole extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -62,4 +68,5 @@ public class TbSysUserRole extends BaseEntity {
@ApiModelProperty(value = "角色ID") @ApiModelProperty(value = "角色ID")
private Long roleId; private Long roleId;
private Long tenantId;
} }

View File

@ -22,13 +22,19 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.rule.TaskInfo; import cc.iotkit.model.rule.TaskInfo;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMapping; import io.github.linpeilie.annotations.AutoMapping;
import io.github.linpeilie.annotations.ReverseAutoMapping; import io.github.linpeilie.annotations.ReverseAutoMapping;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -36,7 +42,10 @@ import javax.persistence.*;
@Entity @Entity
@Table(name = "task_info") @Table(name = "task_info")
@AutoMapper(target = TaskInfo.class) @AutoMapper(target = TaskInfo.class)
public class TbTaskInfo { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbTaskInfo extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -98,4 +107,6 @@ public class TbTaskInfo {
@ApiModelProperty(value = "操作备注") @ApiModelProperty(value = "操作备注")
private String reason; private String reason;
private Long tenantId;
} }

View File

@ -22,13 +22,19 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.product.ThingModel; import cc.iotkit.model.product.ThingModel;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMapping; import io.github.linpeilie.annotations.AutoMapping;
import io.github.linpeilie.annotations.ReverseAutoMapping; import io.github.linpeilie.annotations.ReverseAutoMapping;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -36,7 +42,10 @@ import javax.persistence.*;
@Entity @Entity
@Table(name = "thing_model") @Table(name = "thing_model")
@AutoMapper(target = ThingModel.class) @AutoMapper(target = ThingModel.class)
public class TbThingModel { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbThingModel extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -53,4 +62,5 @@ public class TbThingModel {
@ReverseAutoMapping(ignore = true) @ReverseAutoMapping(ignore = true)
private String model; private String model;
private Long tenantId;
} }

View File

@ -22,11 +22,17 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import cc.iotkit.model.device.VirtualDevice; import cc.iotkit.model.device.VirtualDevice;
import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.*; import javax.persistence.*;
@ -34,7 +40,10 @@ import javax.persistence.*;
@Entity @Entity
@Table(name = "virtual_device") @Table(name = "virtual_device")
@AutoMapper(target = VirtualDevice.class) @AutoMapper(target = VirtualDevice.class)
public class TbVirtualDevice { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbVirtualDevice extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -97,4 +106,6 @@ public class TbVirtualDevice {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Long createAt; private Long createAt;
private Long tenantId;
} }

View File

@ -22,23 +22,29 @@
*/ */
package cc.iotkit.data.model; package cc.iotkit.data.model;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.entiry.BaseTenantEntity;
import cc.iotkit.common.tenant.listener.TenantListener;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.Filter;
import org.hibernate.annotations.FilterDef;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.ParamDef;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@Entity @Entity
@Table(name = "virtual_device_mapping") @Table(name = "virtual_device_mapping")
public class TbVirtualDeviceMapping { @FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "long")})
@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
@EntityListeners(TenantListener.class)
public class TbVirtualDeviceMapping extends BaseEntity implements TenantAware {
@Id @Id
@GeneratedValue(generator = "SnowflakeIdGenerator") @GeneratedValue(generator = "SnowflakeIdGenerator")
@ -51,4 +57,5 @@ public class TbVirtualDeviceMapping {
@ApiModelProperty(value = "设备ID") @ApiModelProperty(value = "设备ID")
private String deviceId; private String deviceId;
private Long tenantId;
} }

View File

@ -25,6 +25,7 @@ package cc.iotkit.data.service;
import cc.iotkit.common.api.PageRequest; import cc.iotkit.common.api.PageRequest;
import cc.iotkit.common.api.Paging; import cc.iotkit.common.api.Paging;
import cc.iotkit.common.satoken.utils.LoginHelper;
import cc.iotkit.common.utils.MapstructUtils; import cc.iotkit.common.utils.MapstructUtils;
import cc.iotkit.common.utils.ReflectUtil; import cc.iotkit.common.utils.ReflectUtil;
import cc.iotkit.data.dao.*; import cc.iotkit.data.dao.*;
@ -368,7 +369,7 @@ public class DeviceInfoDataImpl implements IDeviceInfoData, IJPACommData<DeviceI
@Transactional @Transactional
public void addToGroup(String deviceId, DeviceInfo.Group group) { public void addToGroup(String deviceId, DeviceInfo.Group group) {
String groupId = UUID.randomUUID().toString(); String groupId = UUID.randomUUID().toString();
deviceGroupMappingRepository.save(new TbDeviceGroupMapping(groupId, deviceId, group.getId())); deviceGroupMappingRepository.save(new TbDeviceGroupMapping(groupId, deviceId, group.getId(), LoginHelper.getTenantId()));
//更新设备数量 //更新设备数量
updateGroupDeviceCount(groupId); updateGroupDeviceCount(groupId);
@ -462,7 +463,8 @@ public class DeviceInfoDataImpl implements IDeviceInfoData, IJPACommData<DeviceI
deviceGroupMappingRepository.save(new TbDeviceGroupMapping( deviceGroupMappingRepository.save(new TbDeviceGroupMapping(
UUID.randomUUID().toString(), UUID.randomUUID().toString(),
data.getDeviceId(), data.getDeviceId(),
id id,
LoginHelper.getTenantId()
)); ));
} }
}); });

View File

@ -35,8 +35,11 @@ import cc.iotkit.data.model.TbSysMenu;
import cc.iotkit.data.system.ISysMenuData; import cc.iotkit.data.system.ISysMenuData;
import cc.iotkit.data.util.PredicateBuilder; import cc.iotkit.data.util.PredicateBuilder;
import cc.iotkit.model.system.SysMenu; import cc.iotkit.model.system.SysMenu;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.querydsl.core.types.Predicate;
import com.querydsl.core.types.Projections; import com.querydsl.core.types.Projections;
import com.querydsl.jpa.impl.JPAQuery;
import com.querydsl.jpa.impl.JPAQueryFactory; import com.querydsl.jpa.impl.JPAQueryFactory;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Primary; import org.springframework.context.annotation.Primary;
@ -229,4 +232,18 @@ public class SysMenuDataImpl implements ISysMenuData, IJPACommData<SysMenu, Long
.build()).fetchOne(); .build()).fetchOne();
return Objects.isNull(tbSysMenu); return Objects.isNull(tbSysMenu);
} }
@Override
public List<Long> selectParentIdByMenuIds(List<Long> menuIds) {
return jpaQueryFactory.select(tbSysMenu.parentId).from(tbSysMenu).where(tbSysMenu.id.in(menuIds)).fetch();
}
@Override
public List<Long> findByMenuIdListAndNotParentIdList(List<Long> menuIds, List<Long> parentIds) {
Predicate build = PredicateBuilder.instance()
.and(tbSysMenu.id.in(menuIds))
.and(CollectionUtil.isNotEmpty(parentIds), () -> tbSysMenu.id.notIn(parentIds)).build();
return jpaQueryFactory.select(tbSysMenu.id).from(tbSysMenu).where(build).fetch();
}
} }

View File

@ -23,6 +23,8 @@
package cc.iotkit.data.service; package cc.iotkit.data.service;
import cc.iotkit.common.tenant.dao.TenantAware;
import cc.iotkit.common.tenant.helper.TenantHelper;
import cc.iotkit.common.utils.MapstructUtils; import cc.iotkit.common.utils.MapstructUtils;
import cc.iotkit.common.utils.StringUtils; import cc.iotkit.common.utils.StringUtils;
import cc.iotkit.data.dao.IJPACommData; import cc.iotkit.data.dao.IJPACommData;
@ -30,7 +32,10 @@ import cc.iotkit.data.dao.SysTenantRepository;
import cc.iotkit.data.model.TbSysTenant; import cc.iotkit.data.model.TbSysTenant;
import cc.iotkit.data.system.ISysTenantData; import cc.iotkit.data.system.ISysTenantData;
import cc.iotkit.data.util.PredicateBuilder; import cc.iotkit.data.util.PredicateBuilder;
import cc.iotkit.model.TenantModel;
import cc.iotkit.model.system.SysTenant; import cc.iotkit.model.system.SysTenant;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.querydsl.jpa.impl.JPAQueryFactory; import com.querydsl.jpa.impl.JPAQueryFactory;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
@ -40,6 +45,7 @@ import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import java.util.Optional;
import static cc.iotkit.data.model.QTbSysTenant.tbSysTenant; import static cc.iotkit.data.model.QTbSysTenant.tbSysTenant;
@ -75,7 +81,7 @@ public class SysTenantDataImpl implements ISysTenantData, IJPACommData<SysTenant
@Override @Override
public List<SysTenant> findAllByCondition(SysTenant data) { public List<SysTenant> findAllByCondition(SysTenant data) {
List<TbSysTenant> ret=jpaQueryFactory.selectFrom(tbSysTenant).where(PredicateBuilder.instance() List<TbSysTenant> ret=jpaQueryFactory.selectFrom(tbSysTenant).where(PredicateBuilder.instance()
.and(ObjectUtil.isNotNull(data.getTenantId()),()->tbSysTenant.tenantId.eq(data.getTenantId()))
.and(StringUtils.isNotBlank(data.getContactUserName()),()->tbSysTenant.contactUserName.like(data.getContactUserName())) .and(StringUtils.isNotBlank(data.getContactUserName()),()->tbSysTenant.contactUserName.like(data.getContactUserName()))
.and(StringUtils.isNotBlank(data.getContactPhone()),()->tbSysTenant.contactPhone.eq(data.getContactPhone())) .and(StringUtils.isNotBlank(data.getContactPhone()),()->tbSysTenant.contactPhone.eq(data.getContactPhone()))
.and(StringUtils.isNotBlank(data.getCompanyName()),()->tbSysTenant.companyName.like(data.getCompanyName())) .and(StringUtils.isNotBlank(data.getCompanyName()),()->tbSysTenant.companyName.like(data.getCompanyName()))
@ -100,4 +106,20 @@ public class SysTenantDataImpl implements ISysTenantData, IJPACommData<SysTenant
.build()).fetchOne(); .build()).fetchOne();
return Objects.isNull(ret); return Objects.isNull(ret);
} }
@Override
public SysTenant save(SysTenant data) {
Long id = data.getId();
Object tbData = MapstructUtils.convert(data, getJpaRepositoryClass());
Optional byId = id == null ? Optional.empty() : getBaseRepository().findById(id);
if (byId.isPresent()) {
Object dbObj = byId.get();
//只更新不为空的字段
BeanUtil.copyProperties(tbData, dbObj, CopyOptions.create().ignoreNullValue());
tbData = dbObj;
}
Object o = getBaseRepository().save(tbData);
return (SysTenant) MapstructUtils.convert(o, getTClass());
}
} }

View File

@ -22,6 +22,7 @@
*/ */
package cc.iotkit.data.service; package cc.iotkit.data.service;
import cc.iotkit.common.satoken.utils.LoginHelper;
import cc.iotkit.data.dao.IJPACommData; import cc.iotkit.data.dao.IJPACommData;
import cc.iotkit.data.manager.IVirtualDeviceData; import cc.iotkit.data.manager.IVirtualDeviceData;
import cc.iotkit.data.dao.VirtualDeviceMappingRepository; import cc.iotkit.data.dao.VirtualDeviceMappingRepository;
@ -130,7 +131,7 @@ public class VirtualDeviceDataImpl implements IVirtualDeviceData, IJPACommData<V
data.getDevices().stream().map(d -> new TbVirtualDeviceMapping( data.getDevices().stream().map(d -> new TbVirtualDeviceMapping(
IdUtil.simpleUUID(), IdUtil.simpleUUID(),
data.getId(), data.getId(),
d d, LoginHelper.getTenantId()
)).collect(Collectors.toList()) )).collect(Collectors.toList())
); );
return data; return data;

View File

@ -30,6 +30,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration> <configuration>
<source>${java.version}</source> <source>${java.version}</source>
<target>${java.version}</target> <target>${java.version}</target>

View File

@ -74,6 +74,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration> <configuration>
<source>${java.version}</source> <source>${java.version}</source>
<target>${java.version}</target> <target>${java.version}</target>

View File

@ -99,6 +99,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration> <configuration>
<source>${java.version}</source> <source>${java.version}</source>
<target>${java.version}</target> <target>${java.version}</target>

View File

@ -28,6 +28,7 @@ import cc.iotkit.common.api.Request;
import cc.iotkit.common.api.Response; import cc.iotkit.common.api.Response;
import cc.iotkit.common.excel.utils.ExcelUtil; import cc.iotkit.common.excel.utils.ExcelUtil;
import cc.iotkit.common.thing.ThingModelMessage; import cc.iotkit.common.thing.ThingModelMessage;
import cc.iotkit.common.validate.QueryGroup;
import cc.iotkit.manager.dto.bo.device.*; import cc.iotkit.manager.dto.bo.device.*;
import cc.iotkit.manager.dto.bo.deviceconfig.DeviceConfigAddBo; import cc.iotkit.manager.dto.bo.deviceconfig.DeviceConfigAddBo;
import cc.iotkit.manager.dto.bo.devicegroup.DeviceAddGroupBo; import cc.iotkit.manager.dto.bo.devicegroup.DeviceAddGroupBo;
@ -187,7 +188,7 @@ public class DeviceController {
@ApiOperation("设备物模型日志") @ApiOperation("设备物模型日志")
@SaCheckPermission("iot:deviceLog:query") @SaCheckPermission("iot:deviceLog:query")
@PostMapping("/deviceLogs/list") @PostMapping("/deviceLogs/list")
public Paging<ThingModelMessage> logs(@Validated @RequestBody PageRequest<DeviceLogQueryBo> request) { public Paging<ThingModelMessage> logs(@Validated(QueryGroup.class) @RequestBody PageRequest<DeviceLogQueryBo> request) {
return deviceServiceImpl.logs(request); return deviceServiceImpl.logs(request);
} }

View File

@ -29,6 +29,7 @@ import cc.iotkit.common.log.annotation.Log;
import cc.iotkit.common.log.enums.BusinessType; import cc.iotkit.common.log.enums.BusinessType;
import cc.iotkit.common.validate.AddGroup; import cc.iotkit.common.validate.AddGroup;
import cc.iotkit.common.validate.EditGroup; import cc.iotkit.common.validate.EditGroup;
import cc.iotkit.common.validate.QueryGroup;
import cc.iotkit.manager.dto.bo.category.CategoryBo; import cc.iotkit.manager.dto.bo.category.CategoryBo;
import cc.iotkit.manager.dto.bo.product.IconBo; import cc.iotkit.manager.dto.bo.product.IconBo;
import cc.iotkit.manager.dto.bo.product.IconTypeBo; import cc.iotkit.manager.dto.bo.product.IconTypeBo;
@ -67,7 +68,7 @@ public class ProductController {
@ApiOperation("列表") @ApiOperation("列表")
@SaCheckPermission("iot:product:query") @SaCheckPermission("iot:product:query")
@PostMapping("/list") @PostMapping("/list")
public Paging<ProductVo> getProducts(@Validated @RequestBody public Paging<ProductVo> getProducts(@Validated(QueryGroup.class) @RequestBody
PageRequest<ProductBo> request) { PageRequest<ProductBo> request) {
return productService.selectPageList(request); return productService.selectPageList(request);
} }

View File

@ -69,7 +69,6 @@ public class DeviceQueryBo extends BaseDto {
@ApiModelProperty(value="设备状态") @ApiModelProperty(value="设备状态")
@Size(max = 255, message = "设备状态长度不正确")
@AutoMapping(ignore = true) @AutoMapping(ignore = true)
@ReverseAutoMapping(ignore = true) @ReverseAutoMapping(ignore = true)
private Boolean online; private Boolean online;

View File

@ -43,15 +43,12 @@ public class DeviceGroupBo extends BaseDto {
private static final long serialVersionUID = -1L; private static final long serialVersionUID = -1L;
@ApiModelProperty(value = "分组id") @ApiModelProperty(value = "分组id")
@NotNull(message = "分组id不能为空")
private String id; private String id;
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
@NotNull(message = "创建时间不能为空")
private Long createAt; private Long createAt;
@ApiModelProperty(value = "设备数量") @ApiModelProperty(value = "设备数量")
@NotNull(message = "设备数量不能为空")
private Integer deviceQty; private Integer deviceQty;
@ApiModelProperty(value = "设备组名称") @ApiModelProperty(value = "设备组名称")

Some files were not shown because too many files have changed in this diff Show More