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

io.github.yedaxia.apidocs.IResponseWrapper Maven / Gradle / Ivy

There is a newer version: 1.4.4
Show newest version
package io.github.yedaxia.apidocs;

import io.github.yedaxia.apidocs.parser.ResponseNode;

import java.util.Map;

/**
 * wrap response into a common structure, you should put the response into a map ,
 *
 * for now this just use for upload apis to rap.
 *
 * default is :{
 *     code : 0,
 *     data: ${response}
 *     msg: 'success'
 * }
 *
 * @author yeguozhong yedaxia.github.com
 */
public interface IResponseWrapper {

    /**
     * to wrap response , don't forget to put responseNode into map.
     *
     * @param responseNode
     */
    Map wrapResponse(ResponseNode responseNode);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy