修复group问题,增加系统资源

This commit is contained in:
2020-10-27 17:01:21 +08:00
parent 5a9ebccdf9
commit 6fa9432510
6 changed files with 40 additions and 1 deletions

View File

@@ -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<String>() {
class Group(override var id: String? = null) : AggregateRoot<String>() {
var name = ""
}

View File

@@ -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
}

View File

@@ -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<String>() {
var name = ""
var signature = ""
val uri: String? = null
var order = 0
var desc = ""
}

View File

@@ -0,0 +1,4 @@
package com.synebula.zeus.domain.model.rbac.resource
class Service {
}

View File

@@ -0,0 +1,5 @@
package com.synebula.zeus.domain.model.rbac.resource
class System : Resource() {
fun dispose() {}
}

View File

@@ -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 = ""
}