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 new file mode 100644 index 0000000..2f4af14 --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Interface.kt @@ -0,0 +1,7 @@ +package com.synebula.zeus.domain.model.rbac.resource + +import com.synebula.gaea.domain.model.IAggregateRoot + +class Interface : Resource(), IAggregateRoot { + override var alive = 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 ea60f1d..002dd4a 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 @@ -1,6 +1,9 @@ package com.synebula.zeus.domain.model.rbac.resource -class Page { +import com.synebula.gaea.domain.model.IAggregateRoot + +class Page : Resource(), IAggregateRoot { + // 上级页面 val supPage = 0 @@ -12,4 +15,7 @@ class Page { // 所属系统 val system = 0 + + override var alive = true + } \ 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 deleted file mode 100644 index 514ec72..0000000 --- a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/model/rbac/resource/Service.kt +++ /dev/null @@ -1,4 +0,0 @@ -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 index 4d072f3..d4e023d 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 @@ -1,5 +1,7 @@ package com.synebula.zeus.domain.model.rbac.resource -class System : Resource() { - fun dispose() {} +import com.synebula.gaea.domain.model.IAggregateRoot + +class System : Resource(), IAggregateRoot { + override var alive = true } \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/InterfaceCmd.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/InterfaceCmd.kt new file mode 100644 index 0000000..feea2db --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/InterfaceCmd.kt @@ -0,0 +1,5 @@ +package com.synebula.zeus.domain.service.cmd.rbac.resource + +class InterfaceCmd : ResourceCmd() { + var alive = true +} \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/PageCmd.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/PageCmd.kt new file mode 100644 index 0000000..ca87f9f --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/PageCmd.kt @@ -0,0 +1,19 @@ +package com.synebula.zeus.domain.service.cmd.rbac.resource + +class PageCmd : ResourceCmd() { + + // 上级页面 + val supPage = 0 + + // 页面图标 + val icon: String? = null + + // 附加参数 + val params: String? = null + + // 所属系统 + val system = 0 + + var alive = true + +} \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/ResourceCmd.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/ResourceCmd.kt new file mode 100644 index 0000000..61e3ae8 --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/ResourceCmd.kt @@ -0,0 +1,10 @@ +package com.synebula.zeus.domain.service.cmd.rbac.resource + + +abstract class ResourceCmd(var id: String? = null) { + 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/service/cmd/rbac/resource/SystemCmd.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/SystemCmd.kt new file mode 100644 index 0000000..6cb909a --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/cmd/rbac/resource/SystemCmd.kt @@ -0,0 +1,6 @@ +package com.synebula.zeus.domain.service.cmd.rbac.resource + + +class SystemCmd : ResourceCmd() { + var alive = true +} \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/ctr/rbac/resource/IServiceService.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/ctr/rbac/resource/IInterfaceService.kt similarity index 69% rename from src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/ctr/rbac/resource/IServiceService.kt rename to src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/ctr/rbac/resource/IInterfaceService.kt index 9679267..ea8562c 100644 --- a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/ctr/rbac/resource/IServiceService.kt +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/ctr/rbac/resource/IInterfaceService.kt @@ -2,6 +2,6 @@ package com.synebula.zeus.domain.service.ctr.rbac.resource import com.synebula.gaea.domain.service.IService -interface IServiceService : IService { +interface IInterfaceService : IService { } \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/resource/InterfaceService.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/resource/InterfaceService.kt new file mode 100644 index 0000000..363c365 --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/resource/InterfaceService.kt @@ -0,0 +1,13 @@ +package com.synebula.zeus.domain.service.impl.rbac.resource + +import com.synebula.gaea.data.IObjectConverter +import com.synebula.gaea.domain.repository.IRepository +import com.synebula.gaea.domain.service.Service +import com.synebula.gaea.log.ILogger +import com.synebula.zeus.domain.model.rbac.resource.Interface +import com.synebula.zeus.domain.service.ctr.rbac.resource.IInterfaceService + +class InterfaceService( + repository: IRepository, + converter: IObjectConverter, logger: ILogger +) : Service(Interface::class.java, repository, converter, logger), IInterfaceService \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/resource/PageService.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/resource/PageService.kt new file mode 100644 index 0000000..714598e --- /dev/null +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/resource/PageService.kt @@ -0,0 +1,13 @@ +package com.synebula.zeus.domain.service.impl.rbac.resource + +import com.synebula.gaea.data.IObjectConverter +import com.synebula.gaea.domain.repository.IRepository +import com.synebula.gaea.domain.service.Service +import com.synebula.gaea.log.ILogger +import com.synebula.zeus.domain.model.rbac.resource.Page +import com.synebula.zeus.domain.service.ctr.rbac.resource.IPageService + +class PageService( + repository: IRepository, + converter: IObjectConverter, logger: ILogger +) : Service(Page::class.java, repository, converter, logger), IPageService \ No newline at end of file diff --git a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/resource/SystemService.kt b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/resource/SystemService.kt index 1be12c7..1b87580 100644 --- a/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/resource/SystemService.kt +++ b/src/zeus.domain/src/main/kotlin/com/synebula/zeus/domain/service/impl/rbac/resource/SystemService.kt @@ -4,10 +4,10 @@ import com.synebula.gaea.data.IObjectConverter import com.synebula.gaea.domain.repository.IRepository import com.synebula.gaea.domain.service.Service import com.synebula.gaea.log.ILogger -import com.synebula.zeus.domain.model.rbac.Group -import com.synebula.zeus.domain.service.ctr.rbac.IGroupService +import com.synebula.zeus.domain.model.rbac.resource.System +import com.synebula.zeus.domain.service.ctr.rbac.resource.ISystemService class SystemService( - repository: IRepository, - converter: IObjectConverter, logger: ILogger -) : Service(Group::class.java, repository, converter, logger), IGroupService \ No newline at end of file + repository: IRepository, + converter: IObjectConverter, logger: ILogger +) : Service(System::class.java, repository, converter, logger), ISystemService \ No newline at end of file diff --git a/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/InterfaceView.kt b/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/InterfaceView.kt new file mode 100644 index 0000000..09ad1ed --- /dev/null +++ b/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/InterfaceView.kt @@ -0,0 +1,5 @@ +package com.synebula.zeus.query.view.resource + +class InterfaceView : ResourceView() { + var alive = true +} \ No newline at end of file diff --git a/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/PageView.kt b/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/PageView.kt new file mode 100644 index 0000000..513a87e --- /dev/null +++ b/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/PageView.kt @@ -0,0 +1,19 @@ +package com.synebula.zeus.query.view.resource + +class PageView : ResourceView() { + + // 上级页面 + val supPage = 0 + + // 页面图标 + val icon: String? = null + + // 附加参数 + val params: String? = null + + // 所属系统 + val system = 0 + + var alive = true + +} \ No newline at end of file diff --git a/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/ResourceView.kt b/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/ResourceView.kt new file mode 100644 index 0000000..57d512d --- /dev/null +++ b/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/ResourceView.kt @@ -0,0 +1,10 @@ +package com.synebula.zeus.query.view.resource + + +abstract class ResourceView(var id: String? = null) { + var name = "" + var signature = "" + val uri: String? = null + var order = 0 + var desc = "" +} \ No newline at end of file diff --git a/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/SystemView.kt b/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/SystemView.kt new file mode 100644 index 0000000..e3f7dbc --- /dev/null +++ b/src/zeus.query/src/main/kotlin/com/synebula/zeus/query/view/resource/SystemView.kt @@ -0,0 +1,6 @@ +package com.synebula.zeus.query.view.resource + + +class SystemView : ResourceView() { + var alive = true +} \ No newline at end of file