From d67cf1060021eabe98323ceab5cf24fc4195a245 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 2 Mar 2025 22:12:47 +0800 Subject: [PATCH] feat: 1.1.1 fix typo --- build.gradle | 4 ++-- .../synebula/zeus/domain/model/rbac/resource/Interface.kt | 2 +- .../com/synebula/zeus/domain/model/rbac/resource/Page.kt | 2 +- .../synebula/zeus/domain/model/rbac/resource/System.kt | 2 +- .../synebula/zeus/domain/service/impl/rbac/UserService.kt | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 63f7c4f..5c7b72d 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ buildscript { ext { jvm_version = '21' kotlin_version = '2.0.0' - gaea_version = '1.7.1' + gaea_version = '1.7.2' spring_version = "3.3.0" } @@ -26,7 +26,7 @@ subprojects { version version ext { - version '1.1.0' + version '1.1.1' } buildscript { diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Interface.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Interface.kt index 731083f..cdd3fa7 100644 --- a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Interface.kt +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Interface.kt @@ -4,5 +4,5 @@ import com.synebula.gaea.domain.model.IAggregateRoot class Interface : Resource(), IAggregateRoot { var system = "" - override var avalible = true + override var available = true } \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Page.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Page.kt index 51ecaa5..c8d6e27 100644 --- a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Page.kt +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Page.kt @@ -16,6 +16,6 @@ class Page : Resource(), IAggregateRoot { // 所属系统 var system = "" - override var avalible = true + override var available = true } \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/System.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/System.kt index 1ccae98..eb8d93c 100644 --- a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/System.kt +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/System.kt @@ -3,5 +3,5 @@ package com.synebula.zeus.domain.model.rbac.resource import com.synebula.gaea.domain.model.IAggregateRoot class System : Resource(), IAggregateRoot { - override var avalible = true + override var available = true } \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/UserService.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/UserService.kt index 50bfd3a..98a54d7 100644 --- a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/UserService.kt +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/UserService.kt @@ -41,7 +41,7 @@ class UserService( val user = this.map(command) user.password = user.password.toMd5() user.token = UUID.randomUUID().toString() - user.avalible = false + user.available = false this.repository.add(user) userNotifier?.added(user.id!!, user.name, user.token!!) return DataMessage(user.id!!) @@ -54,11 +54,11 @@ class UserService( */ override fun active(key: String, token: String): DataMessage { val user = this.repository.get(key)!! - return if (user.avalible) { + return if (user.available) { DataMessage("用户${user.name}无需重复激活") } else { if (token == user.token) { - user.avalible = true + user.available = true user.token = null this.repository.update(user) DataMessage(Status.SUCCESS, "用户${user.name}激活成功") @@ -101,7 +101,7 @@ class UserService( override fun forgotPassword(key: String): DataMessage { val user = this.repository.get(key)!! - return if (user.avalible) { + return if (user.available) { user.token = UUID.randomUUID().toString() this.repository.update(user) userNotifier?.forgot(user.id!!, user.name, user.token!!)