增加业务服务部分
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package com.synebula.zeus.domain.model.rbac.resource
|
||||
|
||||
import com.synebula.gaea.domain.model.IAggregateRoot
|
||||
|
||||
class Interface : Resource(), IAggregateRoot<String> {
|
||||
override var alive = true
|
||||
}
|
||||
@@ -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<String> {
|
||||
|
||||
// 上级页面
|
||||
val supPage = 0
|
||||
|
||||
@@ -12,4 +15,7 @@ class Page {
|
||||
|
||||
// 所属系统
|
||||
val system = 0
|
||||
|
||||
override var alive = true
|
||||
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package com.synebula.zeus.domain.model.rbac.resource
|
||||
|
||||
class Service {
|
||||
}
|
||||
@@ -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<String> {
|
||||
override var alive = true
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.synebula.zeus.domain.service.cmd.rbac.resource
|
||||
|
||||
class InterfaceCmd : ResourceCmd() {
|
||||
var alive = true
|
||||
}
|
||||
@@ -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
|
||||
|
||||
}
|
||||
@@ -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 = ""
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.synebula.zeus.domain.service.cmd.rbac.resource
|
||||
|
||||
|
||||
class SystemCmd : ResourceCmd() {
|
||||
var alive = true
|
||||
}
|
||||
@@ -2,6 +2,6 @@ package com.synebula.zeus.domain.service.ctr.rbac.resource
|
||||
|
||||
import com.synebula.gaea.domain.service.IService
|
||||
|
||||
interface IServiceService : IService<String> {
|
||||
interface IInterfaceService : IService<String> {
|
||||
|
||||
}
|
||||
@@ -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, String>(Interface::class.java, repository, converter, logger), IInterfaceService
|
||||
@@ -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, String>(Page::class.java, repository, converter, logger), IPageService
|
||||
@@ -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, String>(Group::class.java, repository, converter, logger), IGroupService
|
||||
) : Service<System, String>(System::class.java, repository, converter, logger), ISystemService
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.synebula.zeus.query.view.resource
|
||||
|
||||
class InterfaceView : ResourceView() {
|
||||
var alive = true
|
||||
}
|
||||
@@ -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
|
||||
|
||||
}
|
||||
@@ -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 = ""
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.synebula.zeus.query.view.resource
|
||||
|
||||
|
||||
class SystemView : ResourceView() {
|
||||
var alive = true
|
||||
}
|
||||
Reference in New Issue
Block a user