密钥管理接口
This commit is contained in:
@@ -42,9 +42,9 @@ public class DeviceController {
|
||||
* @return 分页列表
|
||||
*/
|
||||
@GetMapping("/pageList")
|
||||
public R<Page<DeviceDTO.View>> servicePageList(DeviceDTO.Query query) {
|
||||
public R<Page<DeviceDTO.DeviceView>> servicePageList(DeviceDTO.Query query) {
|
||||
|
||||
Page<DeviceDTO.View> page = deviceService.selectPageList(query);
|
||||
Page<DeviceDTO.DeviceView> page = deviceService.selectPageList(query);
|
||||
|
||||
return R.data(page);
|
||||
}
|
||||
@@ -55,9 +55,9 @@ public class DeviceController {
|
||||
* @return 列表
|
||||
*/
|
||||
@GetMapping("/ungrouped/list")
|
||||
public R<List<DeviceDTO.View>> getUngroupedList() {
|
||||
public R<List<DeviceDTO.DeviceView>> getUngroupedList() {
|
||||
|
||||
List<DeviceDTO.View> res = deviceService.getUngroupedList();
|
||||
List<DeviceDTO.DeviceView> res = deviceService.getUngroupedList();
|
||||
return R.data(res);
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ public class DeviceController {
|
||||
* @return id
|
||||
*/
|
||||
@PostMapping
|
||||
public R<String> save(@Valid @RequestBody DeviceDTO.Save save) {
|
||||
public R<String> save(@Valid @RequestBody DeviceDTO.DeviceSave save) {
|
||||
Long id = deviceService.save(save);
|
||||
return R.data(String.valueOf(id));
|
||||
}
|
||||
@@ -123,7 +123,7 @@ public class DeviceController {
|
||||
* @return void
|
||||
*/
|
||||
@PutMapping
|
||||
public R<Void> update(@Valid @RequestBody DeviceDTO.Save update) {
|
||||
public R<Void> update(@Valid @RequestBody DeviceDTO.DeviceSave update) {
|
||||
deviceService.update(update);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user