silentbalanceyh/vertx-zero

View on GitHub
vertx-pin/zero-erp/src/main/java/cn/vertxup/erp/service/EmployeeStub.java

Summary

Maintainability
A
0 mins
Test Coverage
package cn.vertxup.erp.service;

import io.vertx.core.Future;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;

import java.util.Set;

/*
 * This api provide service interface to do following things
 * 1) When created employee, the interface should update related user information
 *    call `EcUser` service for updating
 */
public interface EmployeeStub {

    Future<JsonObject> createAsync(JsonObject data);

    Future<JsonObject> updateAsync(String key, JsonObject data);

    Future<Boolean> deleteAsync(String key);

    Future<JsonObject> fetchAsync(String key);

    Future<JsonArray> fetchAsync(Set<String> keys);

    Future<JsonArray> fetchAsync(JsonObject condition);
}