UserService

interface UserService

用户服务

提供用户相关的查询与管理操作

Author

lishangbu

Since

2025/8/30

Inheritors

Functions

Link copied to clipboard
abstract fun getById(id: Long): UserView?

按 ID 查询用户

Link copied to clipboard
abstract fun getCurrentPermissionCodes(username: String): List<String>

获取当前用户可用的权限编码列表

Link copied to clipboard
abstract fun getPageByCondition(specification: UserSpecification, pageable: Pageable): Page<UserView>

按条件分页查询用户

Link copied to clipboard
abstract fun getUserByUsername(username: String): CurrentUserView?

根据用户名/手机号/邮箱查询用户详情,包含基本信息、角色信息及个人资料

Link copied to clipboard
abstract fun listByCondition(specification: UserSpecification): List<UserView>

根据条件查询用户列表

Link copied to clipboard
abstract fun removeById(id: Long)

按 ID 删除用户

Link copied to clipboard
abstract fun save(command: SaveUserInput): UserView

保存用户

Link copied to clipboard
abstract fun update(command: UpdateUserInput): UserView

更新用户