style(gradle): 格式化代码
This commit is contained in:
parent
dff4e2d0a5
commit
278c5eb810
@ -6,8 +6,6 @@ import cn.hutool.core.util.IdUtil
|
||||
import com.google.inject.*
|
||||
import com.google.inject.name.Names
|
||||
import io.vertx.core.Vertx
|
||||
import io.vertx.core.http.HttpServer
|
||||
import io.vertx.core.http.HttpServerOptions
|
||||
import io.vertx.ext.auth.jwt.JWTAuth
|
||||
import io.vertx.pgclient.PgBuilder
|
||||
import io.vertx.pgclient.PgConnectOptions
|
||||
|
||||
@ -2,7 +2,6 @@ package app.config
|
||||
|
||||
import org.aikrai.vertx.constant.HttpStatus
|
||||
|
||||
|
||||
data class RespBean(
|
||||
val code: Int,
|
||||
val message: String,
|
||||
@ -40,7 +39,6 @@ data class RespBean(
|
||||
return RespBean(code, message, data)
|
||||
}
|
||||
|
||||
|
||||
// 访问受限,授权过期
|
||||
fun forbidden(message: String?): RespBean {
|
||||
return failure(HttpStatus.FORBIDDEN, message ?: "Restricted access, expired authorizations")
|
||||
|
||||
@ -5,7 +5,6 @@ import app.domain.account.modle.AccountRoleAccessDTO
|
||||
import com.google.inject.Inject
|
||||
import io.vertx.sqlclient.SqlClient
|
||||
import org.aikrai.vertx.db.RepositoryImpl
|
||||
import org.aikrai.vertx.db.tx.withTransaction
|
||||
|
||||
class AccountRepositoryImpl @Inject constructor(
|
||||
sqlClient: SqlClient
|
||||
|
||||
@ -41,7 +41,6 @@ class WebVerticle @Inject constructor(
|
||||
) : CoroutineVerticle() {
|
||||
private val logger = KotlinLogging.logger { }
|
||||
|
||||
|
||||
override suspend fun start() {
|
||||
val rootRouter = Router.router(vertx)
|
||||
val router = Router.router(vertx)
|
||||
|
||||
@ -75,7 +75,9 @@ class AuthControllerTest{
|
||||
basePath = "/$it".replace("//", "/")
|
||||
}
|
||||
vertx.setTimer(5000) { testContext.completeNow() }
|
||||
} else testContext.failNow(ar.cause())
|
||||
} else {
|
||||
testContext.failNow(ar.cause())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user