UsersService

class UsersService(db: DatabaseMysql)

Constructors

Link copied to clipboard
fun UsersService(db: DatabaseMysql)

Functions

Link copied to clipboard
suspend fun findUserByAuth(email: String?, password: String?): User?

Get user with check password for auth

Link copied to clipboard
suspend fun getAll(): List<Project>

Get all models

Link copied to clipboard
suspend fun getById(id: Int): Project?

Get model by id

Link copied to clipboard
suspend fun getByIdTokens(id: Int): User?

Get user by id with load tokens