10 lines
297 B
Kotlin
10 lines
297 B
Kotlin
package dev.inmo.postssystem.core
|
|
|
|
import com.benasher44.uuid.uuid4
|
|
import dev.inmo.postssystem.core.content.ContentId
|
|
import dev.inmo.postssystem.core.post.PostId
|
|
|
|
fun generateId() = uuid4().toString()
|
|
fun generatePostId(): PostId = generateId()
|
|
fun generateContentId(): ContentId = generateId()
|