提交 ba06c55e authored 作者: 林业通's avatar 林业通

用户设备数

上级 bda575ff
...@@ -74,6 +74,15 @@ public class ShDeviceController { ...@@ -74,6 +74,15 @@ public class ShDeviceController {
return otherShDeviceService.save(params, user); return otherShDeviceService.save(params, user);
} }
@Login
@GetMapping("deviceCount")
@ApiOperation("用户设备数")
@ApiLog("用户设备数")
public R deviceCount(@LoginUser AppUserEntity user) {
int count = otherShDeviceService.count(new QueryWrapper<ShDeviceEntity>().eq("user_id", user.getId()));
return R.ok().put("count", count);
}
@Login @Login
@PostMapping("update") @PostMapping("update")
@ApiOperation("修改") @ApiOperation("修改")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论