Add TypeService
This commit is contained in:
14
src/main/kotlin/ltd/hlaeja/service/TypeService.kt
Normal file
14
src/main/kotlin/ltd/hlaeja/service/TypeService.kt
Normal file
@@ -0,0 +1,14 @@
|
||||
package ltd.hlaeja.service
|
||||
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import ltd.hlaeja.entity.TypeEntity
|
||||
import ltd.hlaeja.repository.TypeRepository
|
||||
import org.springframework.stereotype.Service
|
||||
|
||||
@Service
|
||||
class TypeService(
|
||||
private val typeRepository: TypeRepository,
|
||||
) {
|
||||
|
||||
fun getTypes(): Flow<TypeEntity> = typeRepository.findAll()
|
||||
}
|
||||
Reference in New Issue
Block a user