...
|
...
|
@@ -35,7 +35,6 @@ public class YtConfigurationNodeController extends BaseController { |
35
|
35
|
|
36
|
36
|
@PostMapping
|
37
|
37
|
@ApiOperation("保存节点数据源并刷新节点的交互和动效信息")
|
38
|
|
- @PreAuthorize("@check.checkPermissions({},{'api:yt:configuration:node:post'})")
|
39
|
38
|
public ResponseEntity<ConfigurationNodeStateDTO> saveNode(
|
40
|
39
|
@Validated({AddGroup.class}) @RequestBody ConfigurationNodeStateDTO nodeDTO)
|
41
|
40
|
throws ThingsboardException {
|
...
|
...
|
@@ -74,7 +73,6 @@ public class YtConfigurationNodeController extends BaseController { |
74
|
73
|
|
75
|
74
|
@PostMapping("datasource")
|
76
|
75
|
@ApiOperation("编辑数据源")
|
77
|
|
- @PreAuthorize("@check.checkPermissions({},{'api:yt:configuration:node:datasource:post'})")
|
78
|
76
|
public ResponseEntity<ConfigurationDatasourceDTO> saveDatasource(
|
79
|
77
|
@Validated({AddGroup.class}) @RequestBody ConfigurationDatasourceDTO datasourceDTO)
|
80
|
78
|
throws ThingsboardException {
|
...
|
...
|
@@ -85,7 +83,6 @@ public class YtConfigurationNodeController extends BaseController { |
85
|
83
|
|
86
|
84
|
@PostMapping("event")
|
87
|
85
|
@ApiOperation("编辑数据交互")
|
88
|
|
- @PreAuthorize("@check.checkPermissions({},{'api:yt:configuration:node:event:post'})")
|
89
|
86
|
public ResponseEntity<ConfigurationEventDTO> saveEvent(
|
90
|
87
|
@Validated({AddGroup.class}) @RequestBody ConfigurationEventDTO eventDTO)
|
91
|
88
|
throws ThingsboardException {
|
...
|
...
|
@@ -96,7 +93,6 @@ public class YtConfigurationNodeController extends BaseController { |
96
|
93
|
|
97
|
94
|
@PostMapping("act")
|
98
|
95
|
@ApiOperation("编辑动画效果")
|
99
|
|
- @PreAuthorize("@check.checkPermissions({},{'api:yt:configuration:node:act:post'})")
|
100
|
96
|
public ResponseEntity<ConfigurationActDTO> saveAct(
|
101
|
97
|
@Validated({AddGroup.class}) @RequestBody ConfigurationActDTO actDTO)
|
102
|
98
|
throws ThingsboardException {
|
...
|
...
|
@@ -108,7 +104,6 @@ public class YtConfigurationNodeController extends BaseController { |
108
|
104
|
|
109
|
105
|
@DeleteMapping("datasource")
|
110
|
106
|
@ApiOperation("删除数据源")
|
111
|
|
- @PreAuthorize("@check.checkPermissions({},{'api:yt:configuration:node:datasource:delete'})")
|
112
|
107
|
public ResponseEntity<Boolean> deleteDatasource(@RequestBody ConfigurationDatasourceDTO deleteDTO)
|
113
|
108
|
throws ThingsboardException {
|
114
|
109
|
deleteDTO.setTenantId(getCurrentUser().getCurrentTenantId());
|
...
|
...
|
@@ -117,7 +112,6 @@ public class YtConfigurationNodeController extends BaseController { |
117
|
112
|
|
118
|
113
|
@DeleteMapping("event")
|
119
|
114
|
@ApiOperation("删除数据交互")
|
120
|
|
- @PreAuthorize("@check.checkPermissions({},{'api:yt:configuration:node:event:delete'})")
|
121
|
115
|
public ResponseEntity<Boolean> deleteEvent( @RequestBody ConfigurationEventDTO deleteDTO)
|
122
|
116
|
throws ThingsboardException {
|
123
|
117
|
deleteDTO.setTenantId(getCurrentUser().getCurrentTenantId());
|
...
|
...
|
@@ -125,7 +119,6 @@ public class YtConfigurationNodeController extends BaseController { |
125
|
119
|
}
|
126
|
120
|
@DeleteMapping("act")
|
127
|
121
|
@ApiOperation("删除动画效果")
|
128
|
|
- @PreAuthorize("@check.checkPermissions({},{'api:yt:configuration:node:act:delete'})")
|
129
|
122
|
public ResponseEntity<Boolean> deleteAct( @RequestBody ConfigurationActDTO deleteDTO)
|
130
|
123
|
throws ThingsboardException {
|
131
|
124
|
deleteDTO.setTenantId(getCurrentUser().getCurrentTenantId());
|
...
|
...
|
|