Skip to content

咨询一个问题,接口可能返回三种结构数据,怎么统一解析呢? #540

@thbpc

Description

@thbpc

1是接口调用成功,直接返回Data,Data也可能是List
2是接口调用成功,不返回Data
3是接口调用失败,返回code和message这种通用结构

这种情况下,怎么解析并统一处理报错呢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions