cn.vertxup.erp.api.EmployeeActor Maven / Gradle / Ivy
package cn.vertxup.erp.api;
import cn.vertxup.erp.service.EmployeeStub;
import io.vertx.core.Future;
import io.vertx.core.json.JsonObject;
import io.vertx.tp.erp.cv.Addr;
import io.vertx.up.annotations.Address;
import io.vertx.up.annotations.Queue;
import javax.inject.Inject;
@Queue
public class EmployeeActor {
@Inject
private transient EmployeeStub stub;
@Address(Addr.Employee.ADD)
public Future create(final JsonObject body) {
return this.stub.createAsync(body);
}
@Address(Addr.Employee.EDIT)
public Future update(final String key, final JsonObject params) {
return this.stub.updateAsync(key, params);
}
@Address(Addr.Employee.BY_ID)
public Future fetchById(final String key) {
return this.stub.fetchAsync(key);
}
@Address(Addr.Employee.DELETE)
public Future remove(final String key) {
return this.stub.deleteAsync(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy