Skip to content

Encapsulate API return values into a unified format #1117

@SniperChan

Description

@SniperChan

Can the return values of backend APIs be encapsulated in the same format? For example, like this:
{
code:int,
data:any,
message:string
}.
Encapsulating them in a unified format facilitates the use by front-end frameworks, such as Vue.

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

    Issue actions