silentbalanceyh/vertx-zero

View on GitHub
vertx-pin/zero-fm/src/main/java/cn/vertxup/fm/service/BookStub.java

Summary

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

import cn.vertxup.fm.domain.tables.pojos.FBook;
import cn.vertxup.fm.domain.tables.pojos.FPreAuthorize;
import io.vertx.core.Future;
import io.vertx.core.json.JsonObject;
import io.vertx.up.atom.extension.KNaming;

import java.util.List;

/**
 * @author <a href="http://www.origin-x.cn">Lang</a>
 */
public interface BookStub {
    // Fetch Books
    Future<List<FBook>> fetchAsync(JsonObject criteria);

    // Fetch By Order
    Future<List<FBook>> fetchByOrder(String orderId);

    // Fetch Authorize by Books
    Future<List<FPreAuthorize>> fetchAuthorize(List<FBook> books);

    // Create Main
    Future<List<FBook>> createAsync(List<FBook> books, KNaming spec);

    // Fetch Book with bill and items
    Future<JsonObject> fetchByKey(String key);
}