mirror of
https://github.com/CUBETIQ/hexagonal-architect-spring-boot
synced 2024-05-20 10:21:36 +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)"
|
||
|
}
|
||
|
}
|