mirror of https://github.com/usbharu/Hideout.git
style: スタイルを修正
This commit is contained in:
parent
5422aeeb60
commit
27ae5f039c
|
@ -1,3 +1,3 @@
|
|||
package dev.usbharu.hideout.domain.model.hideout.dto
|
||||
|
||||
data class PostCreateDto(val text:String,val username:String)
|
||||
data class PostCreateDto(val text: String, val username: String)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package dev.usbharu.hideout.domain.model.hideout.entity
|
||||
|
||||
data class Post(
|
||||
val id:Long,
|
||||
val id: Long,
|
||||
val userId: Long,
|
||||
val overview:String? = null,
|
||||
val text:String,
|
||||
val createdAt:Long,
|
||||
val overview: String? = null,
|
||||
val text: String,
|
||||
val createdAt: Long,
|
||||
val visibility: Visibility,
|
||||
val url:String,
|
||||
val repostId:Long? = null,
|
||||
val replyId:Long? = null
|
||||
val url: String,
|
||||
val repostId: Long? = null,
|
||||
val replyId: Long? = null
|
||||
)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
package dev.usbharu.hideout.domain.model.hideout.form
|
||||
|
||||
data class Post(val text:String)
|
||||
data class Post(val text: String)
|
||||
|
|
|
@ -39,7 +39,7 @@ fun Application.configureSecurity(
|
|||
if (uid.isMissing) {
|
||||
return@validate null
|
||||
}
|
||||
if (uid.asLong() == null) {
|
||||
if (uid.asLong() == null) {
|
||||
return@validate null
|
||||
}
|
||||
return@validate JWTPrincipal(jwtCredential.payload)
|
||||
|
|
|
@ -25,7 +25,6 @@ class PostRepositoryImpl(database: Database, private val idGenerateService: IdGe
|
|||
suspend fun <T> query(block: suspend () -> T): T =
|
||||
newSuspendedTransaction(Dispatchers.IO) { block() }
|
||||
|
||||
|
||||
override suspend fun save(post: Post): Post {
|
||||
return query {
|
||||
Posts.insert {
|
||||
|
|
Loading…
Reference in New Issue