Skip to content

如何把返回结果的默认结构去掉 #40

Closed
@tzxylao

Description

@tzxylao

image

Activity

tzxylao

tzxylao commented on May 11, 2020

@tzxylao
Author
    apiBinder.bindSpiListener(ResultProcessChainSpi.class, new ResultProcessChainSpi() {
        @Override
        public Object callAfter(boolean formPre, ApiInfo apiInfo, Object result) {
            Map<String, Object> optionMap = apiInfo.getOptionMap();
            optionMap.put("resultStructure", false);
            apiInfo.setOptionMap(optionMap);
            return Result.ok(result);
        }
    });

这个这样可以解决

zycgit

zycgit commented on May 11, 2020

@zycgit
Collaborator

界面配置。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zycgit@tzxylao

        Issue actions

          如何把返回结果的默认结构去掉 · Issue #40 · ClouGence/hasor