Skip to content

Commit

Permalink
fix: proto文件更新
Browse files Browse the repository at this point in the history
  • Loading branch information
youngster-yj committed Feb 20, 2024
1 parent 01b084e commit 613c316
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/protos/grpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ service Yak {
// 编码解码
rpc Codec(CodecRequest) returns (CodecResponse);
rpc NewCodec(CodecRequestFlow) returns (CodecResponse);
rpc GetAllCodecMethods(Empty) returns(CodecMethods);
rpc PacketPrettifyHelper(PacketPrettifyHelperRequest) returns (PacketPrettifyHelperResponse);

// Payload 相关接口
Expand Down Expand Up @@ -3690,6 +3691,28 @@ message CodecResponse {
string Result = 1;
}

message CodecMethods {
repeated CodecMethod Methods = 1;
}

message CodecMethod {
string Tag = 1; // Codec 分类
string CodecName = 2; // Codec name
string CodecMethod = 3; // Codec Method
string Desc = 4; // 描述
repeated CodecParam Params = 5; // Codec Param 用于构建样式
}

message CodecParam {
string Name = 1;
string Type = 2; // input | select | checkbox | search | monaco
repeated string Options = 3; // 可选值
bool Required = 4; // 就算是false也需要传
string Desc = 5; // 描述
string Regex = 6; // 正则
string Label = 7; // 参数文本标签
}

// Yak Invoker
message ExecHistoryRequest {
Paging Pagination = 1;
Expand Down

0 comments on commit 613c316

Please sign in to comment.