增加环境配置

This commit is contained in:
chen wei bo
2025-08-15 14:30:09 +08:00
parent f928e7fabe
commit e64327bf09
15 changed files with 269 additions and 16 deletions
@@ -6,9 +6,8 @@ export type CodecKind = "json" | "proto";
export interface Endpoint<Req, Res> {
path: string;
method: HttpMethod;
codec: CodecKind;
reqType?: Type; // codec=proto 时必填
resType?: Type; // codec=proto 时必填
needsAuth?: boolean;
lock?: boolean;
codec: CodecKind; // 编解码类型,"json", "proto"
reqType?: Type; // codec=proto 时必填
resType?: Type; // codec=proto 时必填
needsAuth?: boolean; // 是否需要token
}