From 6fa94325108d0b6a6bcc64288f01f00d2d17ebfe Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 27 Oct 2020 17:01:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgroup=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E7=B3=BB=E7=BB=9F=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/synebula/zeus/domain/model/rbac/Group.kt | 2 +- .../zeus/domain/model/rbac/resource/Page.kt | 15 +++++++++++++++ .../zeus/domain/model/rbac/resource/Resource.kt | 11 +++++++++++ .../zeus/domain/model/rbac/resource/Service.kt | 4 ++++ .../zeus/domain/model/rbac/resource/System.kt | 5 +++++ .../com/synebula/zeus/query/view/GroupView.kt | 4 ++++ 6 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Page.kt create mode 100644 src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Resource.kt create mode 100644 src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Service.kt create mode 100644 src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/System.kt diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/Group.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/Group.kt index 81ef59c..f0476f2 100644 --- a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/Group.kt +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/Group.kt @@ -2,6 +2,6 @@ package com.synebula.zeus.domain.model.rbac import com.synebula.gaea.domain.model.AggregateRoot -class Group(override var id: String?) : AggregateRoot() { +class Group(override var id: String? = null) : AggregateRoot() { var name = "" } \ 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 new file mode 100644 index 0000000..ea60f1d --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Page.kt @@ -0,0 +1,15 @@ +package com.synebula.zeus.domain.model.rbac.resource + +class Page { + // 上级页面 + val supPage = 0 + + // 页面图标 + val icon: String? = null + + // 附加参数 + val params: String? = null + + // 所属系统 + val system = 0 +} \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Resource.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Resource.kt new file mode 100644 index 0000000..e3b1d88 --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Resource.kt @@ -0,0 +1,11 @@ +package com.synebula.zeus.domain.model.rbac.resource + +import com.synebula.gaea.domain.model.Entity + +open class Resource(override var id: String? = null) : Entity() { + var name = "" + var signature = "" + val uri: String? = null + var order = 0 + var desc = "" +} \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Service.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Service.kt new file mode 100644 index 0000000..514ec72 --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Service.kt @@ -0,0 +1,4 @@ +package com.synebula.zeus.domain.model.rbac.resource + +class Service { +} \ 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 new file mode 100644 index 0000000..4d072f3 --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/System.kt @@ -0,0 +1,5 @@ +package com.synebula.zeus.domain.model.rbac.resource + +class System : Resource() { + fun dispose() {} +} \ No newline at end of file diff --git a/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/GroupView.kt b/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/GroupView.kt index 7c02dcf..a8f3e9c 100644 --- a/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/GroupView.kt +++ b/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/GroupView.kt @@ -1,9 +1,13 @@ package com.synebula.zeus.query.view import com.synebula.gaea.query.annotation.Table +import com.synebula.gaea.query.annotation.Where +import com.synebula.gaea.query.type.Operator @Table("group") class GroupView { var id: String? = null + + @Where(Operator.like) var name = "" }