style: スタイルを修正

This commit is contained in:
usbharu 2023-05-08 11:48:27 +09:00
parent 5422aeeb60
commit 27ae5f039c
5 changed files with 10 additions and 11 deletions

View File

@ -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)

View File

@ -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
)

View File

@ -1,3 +1,3 @@
package dev.usbharu.hideout.domain.model.hideout.form
data class Post(val text:String)
data class Post(val text: String)

View File

@ -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)

View File

@ -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 {