import type { Type } from "protobufjs"; import type { HttpMethod } from "../transport/HttpManager"; export type CodecKind = "json" | "proto"; export interface Endpoint { path: string; method: HttpMethod; codec: CodecKind; reqType?: Type; // codec=proto 时必填 resType?: Type; // codec=proto 时必填 needsAuth?: boolean; lock?: boolean; }