UserService

interface UserService

用户服务

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

Author

lishangbu

Since

2025/8/30

Inheritors

Functions

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

按 ID 查询用户

Link copied to clipboard
abstract fun getPageByCondition(user: User, pageable: Pageable): Page<User>

按条件分页查询用户

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

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

Link copied to clipboard
abstract fun listByCondition(user: User): List<User>

根据条件查询用户列表

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

按 ID 删除用户

Link copied to clipboard
abstract fun save(user: User): User

保存用户

Link copied to clipboard
abstract fun update(user: User): User

更新用户