重构业务名称
This commit is contained in:
@@ -4,7 +4,7 @@ dependencies {
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
publish(MavenPublication) {
|
||||
group 'com.synebula'
|
||||
artifactId 'zeus.domain'
|
||||
version "$version"
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.synebula.zeus.domain.model.rbac
|
||||
|
||||
import com.synebula.gaea.domain.model.AggregateRoot
|
||||
|
||||
class Account(override var id: String? = null) : AggregateRoot<String>() {
|
||||
class User(override var id: String? = null) : AggregateRoot<String>() {
|
||||
var name: String = ""
|
||||
var password: String = ""
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
package com.synebula.zeus.domain.service.cmd
|
||||
|
||||
import com.synebula.gaea.domain.service.ICommand
|
||||
import com.synebula.gaea.domain.service.Command
|
||||
|
||||
class AccountCmd : ICommand {
|
||||
class UserCmd : Command() {
|
||||
var id: String? = null
|
||||
var name = ""
|
||||
var password = ""
|
||||
override var timestamp = 0L
|
||||
}
|
||||
@@ -2,4 +2,4 @@ package com.synebula.zeus.domain.service.contr.rbac
|
||||
|
||||
import com.synebula.gaea.domain.service.IService
|
||||
|
||||
interface IAccountService : IService<String>
|
||||
interface IUserService : IService<String>
|
||||
@@ -1,13 +0,0 @@
|
||||
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.Account
|
||||
import com.synebula.zeus.domain.service.contr.rbac.IAccountService
|
||||
|
||||
class AccountService(repository: IRepository<Account, String>, converter: IObjectConverter, logger: ILogger) :
|
||||
Service<Account, String>(Account::class.java, repository, converter, logger), IAccountService {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
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.User
|
||||
import com.synebula.zeus.domain.service.contr.rbac.IUserService
|
||||
|
||||
class UserService(repository: IRepository<User, String>, converter: IObjectConverter, logger: ILogger) :
|
||||
Service<User, String>(User::class.java, repository, converter, logger), IUserService {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user