Mobile/src/main/data/UserRepository.kt
2025-01-27 14:40:37 +03:00

12 lines
406 B
Kotlin

package org.example.data
import org.example.data.model.UserDTO
import org.example.domain.request.RegistrationRequest
interface UserRepository {
fun addUser(registrationRequest: RegistrationRequest): UserDTO
fun removeUserById(userId: Int): Boolean
fun updateUserById(userId: Int, updatedUser: UserDTO): UserDTO
fun getAllUsers(): List<UserDTO>
fun findUserById(userId: Int): UserDTO
}