初始化项目
This commit is contained in:
15
src/zeus.domain/build.gradle
Normal file
15
src/zeus.domain/build.gradle
Normal file
@@ -0,0 +1,15 @@
|
||||
dependencies {
|
||||
compile "com.synebula:gaea:$gaea_version"
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
group 'com.synebula'
|
||||
artifactId 'zeus.domain'
|
||||
version "$version"
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.synebula.zeus.domain.model.rbac
|
||||
|
||||
import com.synebula.gaea.domain.model.AggregateRoot
|
||||
|
||||
class Account(override var id: String? = null) : AggregateRoot<String>() {
|
||||
var name: String = ""
|
||||
var password: String = ""
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.synebula.zeus.domain.service.cmd
|
||||
|
||||
import com.synebula.gaea.domain.service.ICommand
|
||||
|
||||
class AccountCmd : ICommand {
|
||||
var id: String? = null
|
||||
var name = ""
|
||||
var password = ""
|
||||
override var timestamp = 0L
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.synebula.zeus.domain.service.contr.rbac
|
||||
|
||||
import com.synebula.gaea.domain.service.IService
|
||||
|
||||
interface IAccountService : IService<String>
|
||||
@@ -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.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 {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user