密钥管理接口
This commit is contained in:
+4
-4
@@ -35,9 +35,9 @@ public class DeviceGroupController {
|
||||
* @return 分页列表
|
||||
*/
|
||||
@GetMapping("/pageList")
|
||||
public R<Page<DeviceGroupDTO.View>> servicePageList(DeviceGroupDTO.Query query) {
|
||||
public R<Page<DeviceGroupDTO.DGView>> servicePageList(DeviceGroupDTO.Query query) {
|
||||
|
||||
Page<DeviceGroupDTO.View> page = deviceGroupService.selectPageList(query);
|
||||
Page<DeviceGroupDTO.DGView> page = deviceGroupService.selectPageList(query);
|
||||
|
||||
return R.data(page);
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public class DeviceGroupController {
|
||||
* @return id
|
||||
*/
|
||||
@PostMapping
|
||||
public R<String> save(@Valid @RequestBody DeviceGroupDTO.Save save) {
|
||||
public R<String> save(@Valid @RequestBody DeviceGroupDTO.DGSave save) {
|
||||
Long id = deviceGroupService.save(save);
|
||||
return R.data(String.valueOf(id));
|
||||
}
|
||||
@@ -61,7 +61,7 @@ public class DeviceGroupController {
|
||||
* @return void
|
||||
*/
|
||||
@PutMapping
|
||||
public R<Void> update(@Valid @RequestBody DeviceGroupDTO.Save update) {
|
||||
public R<Void> update(@Valid @RequestBody DeviceGroupDTO.DGSave update) {
|
||||
deviceGroupService.update(update);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user