fixed api gateway properties

This commit is contained in:
dartpopikyardo
2016-09-15 20:48:57 +03:00
parent 61a115351e
commit b0bfa7f29f
3 changed files with 5 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ public class Account extends ReflectiveMutableCommandProcessingAggregate<Account
}
public List<Event> process(DeleteAccountCommand cmd) {
return EventUtil.events(new AccountDeletedEvent(new Date()));
return EventUtil.events(new AccountDeletedEvent());
}
public List<Event> process(DebitAccountCommand cmd) {

View File

@@ -22,4 +22,7 @@ api.gateway.endpoints[4].method=POST
api.gateway.endpoints[4].location=http://${customers.commandside.service.host}:8080
api.gateway.endpoints[5].path=[/]*api/transfers.*
api.gateway.endpoints[5].method=POST
api.gateway.endpoints[5].location=http://${transfers.commandside.service.host}:8080
api.gateway.endpoints[5].location=http://${transfers.commandside.service.host}:8080
api.gateway.endpoints[6].path=[/]*api/customers.*
api.gateway.endpoints[6].method=DELETE
api.gateway.endpoints[6].location=http://${customers.commandside.service.host}:8080

View File

@@ -5,21 +5,4 @@ import io.eventuate.Event;
import java.util.Date;
public class AccountDeletedEvent implements Event {
private Date timestamp;
public AccountDeletedEvent() {
}
public AccountDeletedEvent(Date timestamp) {
this.timestamp = timestamp;
}
public Date getTimestamp() {
return timestamp;
}
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
}