All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.vertxup.erp.api.EmployeeActor Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
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