设备分享2

This commit is contained in:
2025-09-09 10:29:51 +08:00
parent 040e44984e
commit 5e3307d2b0
7 changed files with 418 additions and 15 deletions

View File

@ -40,7 +40,7 @@ import static com.fuyuanshen.common.core.constant.GlobalConstants.DEVICE_SHARE_C
@RequestMapping("api/equipment/share")
public class DeviceShareController extends BaseController {
private final DeviceShareService appDeviceShareService;
private final DeviceShareService deviceShareService;
/**
@ -48,7 +48,7 @@ public class DeviceShareController extends BaseController {
*/
@GetMapping("/deviceShareList")
public TableDataInfo<AppDeviceShareVo> list(AppDeviceShareBo bo, PageQuery pageQuery) {
return appDeviceShareService.queryWebPageList(bo, pageQuery);
return deviceShareService.queryWebPageList(bo, pageQuery);
}
@ -58,7 +58,16 @@ public class DeviceShareController extends BaseController {
@RepeatSubmit()
@PostMapping("/deviceShare")
public R<Void> deviceShare(@Validated(AddGroup.class) @RequestBody AppDeviceShareBo bo) {
return toAjax(appDeviceShareService.deviceShare(bo));
return toAjax(deviceShareService.deviceShare(bo));
}
/**
* 权限管理
*/
@RepeatSubmit()
@PostMapping("/permission")
public R<Void> permission(@Validated(AddGroup.class) @RequestBody AppDeviceShareBo bo) {
return toAjax(deviceShareService.deviceShare(bo));
}
/**
@ -69,7 +78,7 @@ public class DeviceShareController extends BaseController {
@DeleteMapping("/{ids}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ids) {
return toAjax(appDeviceShareService.remove(ids));
return toAjax(deviceShareService.remove(ids));
}
/**