Interface Response

interface Response {
    code: number;
    data: any;
    headers: Record<string, string[]>;
    message: string;
    trailers: Record<string, string[]>;
}

Properties

code: number

状态码

data: any

业务数据

headers: Record<string, string[]>

headers 请求头信息

message: string

错误信息

trailers: Record<string, string[]>

trailers 请求头信息