UserRepository
用户仓储接口
定义用户数据的查询与持久化操作
Author
lishangbu
Since
2025/08/19
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun insertIfAbsent(entity: User, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): User
open fun insertIfAbsent(input: Input<User>, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): User
Link copied to clipboard
按条件查询用户列表,并抓取角色
Link copied to clipboard
根据账号查找用户及角色列表
Link copied to clipboard
按 ID 查询用户视图
Link copied to clipboard
按条件分页查询用户,并抓取角色
Link copied to clipboard
open fun <V : View<User>> save(entity: User, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): V
open fun <V : View<User>> save(input: Input<User>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): V
open fun save(entity: User, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): User
open fun save(input: Input<User>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): User
open fun <V : View<User>> save(entity: User, mode: SaveMode, associatedMode: AssociatedSaveMode, viewType: KClass<V>, block: KSaveCommandPartialDsl.() -> Unit?): V
open fun save(entity: User, mode: SaveMode, associatedMode: AssociatedSaveMode, fetcher: Fetcher<User>, block: KSaveCommandPartialDsl.() -> Unit?): User
Link copied to clipboard
open fun saveCommand(entity: User, block: KSaveCommandDsl.() -> Unit?): KSimpleEntitySaveCommand<User>
open fun saveCommand(input: Input<User>, block: KSaveCommandDsl.() -> Unit?): KSimpleEntitySaveCommand<User>
open fun saveCommand(entity: User, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KSimpleEntitySaveCommand<User>
open fun saveCommand(input: Input<User>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KSimpleEntitySaveCommand<User>
Link copied to clipboard
open fun <V : View<User>> saveEntities(entities: Iterable<User>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): List<V>
open fun saveEntities(entities: Iterable<User>, fetcher: Fetcher<User>, block: KSaveCommandDsl.() -> Unit?): List<User>
open fun saveEntities(entities: Iterable<User>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): List<User>
Link copied to clipboard
open fun saveEntitiesCommand(entities: Iterable<User>, block: KSaveCommandDsl.() -> Unit?): KBatchEntitySaveCommand<User>
open fun saveEntitiesCommand(entities: Iterable<User>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KBatchEntitySaveCommand<User>
Link copied to clipboard
open fun <V : View<User>> saveInputs(inputs: Iterable<Input<User>>, viewType: KClass<V>, block: KSaveCommandDsl.() -> Unit?): List<V>
open fun saveInputs(inputs: Iterable<Input<User>>, fetcher: Fetcher<User>, block: KSaveCommandDsl.() -> Unit?): List<User>
open fun saveInputs(inputs: Iterable<Input<User>>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): List<User>
Link copied to clipboard
open fun saveInputsCommand(input: Iterable<Input<User>>, block: KSaveCommandDsl.() -> Unit?): KBatchEntitySaveCommand<User>
open fun saveInputsCommand(inputs: Iterable<Input<User>>, mode: SaveMode, associatedMode: AssociatedSaveMode, block: KSaveCommandPartialDsl.() -> Unit?): KBatchEntitySaveCommand<User>