增加部门信息

This commit is contained in:
2020-06-30 21:53:30 +08:00
parent 329a030dc9
commit 0b75c516c6
8 changed files with 68 additions and 2 deletions

View File

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

View File

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

View File

@@ -8,5 +8,6 @@ class User(override var id: String? = null) : AggregateRoot<String>() {
var realName: String? = null
var phone: String? = null
var role: String = ""
var group: String = ""
var token: String? = null
}

View File

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

View File

@@ -0,0 +1,7 @@
package com.synebula.zeus.domain.service.contr.rbac
import com.synebula.gaea.domain.service.IService
interface IGroupService : IService<String> {
}

View File

@@ -0,0 +1,14 @@
package com.synebula.zeus.domain.service.impl.rbac
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.contr.rbac.IGroupService
import com.synebula.zeus.domain.service.contr.rbac.IRoleService
class GroupService(
repository: IRepository,
converter: IObjectConverter, logger: ILogger
) : Service<Group, String>(Group::class.java, repository, converter, logger), IGroupService