forked from dyf/fys-Multi-tenant
设备分享2
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user