added: 首页主面板api

This commit is contained in:
none
2023-03-22 15:55:44 +08:00
parent d621cc5937
commit c1b3029f4b
15 changed files with 146 additions and 3 deletions

View File

@@ -223,6 +223,11 @@ public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Departm
public Map<Integer, String> id2name() {
return all().stream().collect(Collectors.toMap(Department::getId, Department::getName));
}
@Override
public Long total() {
return count();
}
}