Skip to content

check the pb protocol #1

Description

@happened

enum DataType {
TEXT=0;
IMAGE=1;
AUDIO=2;
VIDEO=3;
}
#具体响应数据
message InteractData{
bytes data=1; # 数据
int64 length=2; # 数据长度
DataType type=3; #数据类型
map<string,string> desc=4; #数据相关属性
}
#请求数据
message InteractReq{
string sid=1; #链路追踪数据
map<string,string> header=2; # header信息 例如appid,等
map<string,string> param=3; # 功能参数
map<string,InteractData> payload=4; # 载荷
}
#响应数据
message InteractResp{
int64 code=1; #状态码
string message=2; # 错误信息
string sid=3; # 链路追踪数据
map<string,InteractData> result=4; #响应体
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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