增加角色信息

This commit is contained in:
2020-05-21 13:41:17 +08:00
parent 1f900c7bd7
commit 26f3e72f7c
5 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package com.synebula.zeus.domain.model.rbac
import com.synebula.gaea.domain.model.AggregateRoot
class Role : AggregateRoot<String>() {
override var id: String? = null
var name = ""
}

View File

@@ -7,4 +7,5 @@ class User(override var id: String? = null) : AggregateRoot<String>() {
var password: String = ""
var realName: String? = null
var phone: String? = null
var roleId: String = ""
}

View File

@@ -0,0 +1,8 @@
package com.synebula.zeus.domain.service.cmd
import com.synebula.gaea.domain.service.Command
class RoleCmd : Command() {
var id: String? = null
var name = ""
}