mirror of
https://github.com/CUBETIQ/hexagonal-architect-spring-boot
synced 2024-05-09 04:51:38 +07:00
15 lines
316 B
Kotlin
15 lines
316 B
Kotlin
package com.cubetiqs.hexagonal.domain.article.usecase
|
|
|
|
open class ArticleRetrieve(
|
|
var id: Long,
|
|
) {
|
|
companion object {
|
|
fun from(id: Long): ArticleRetrieve {
|
|
return ArticleRetrieve(id)
|
|
}
|
|
}
|
|
|
|
override fun toString(): String {
|
|
return "ArticleRetrieve(id=$id)"
|
|
}
|
|
} |