go-common/app/service/live/userext/api/liverpc/v0/Conf.proto

71 lines
1.6 KiB
Protocol Buffer
Raw Normal View History

2019-04-22 10:49:16 +00:00
syntax = "proto3";
package userext.v0;
option go_package = "v0";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
service Conf {
/**
*
*/
rpc set (ConfSetReq) returns (ConfSetResp);
/**
*
*/
rpc get (ConfGetReq) returns (ConfGetResp);
}
message ConfSetReq {
// 参数结构
repeated Var var_list = 1 [(gogoproto.jsontag) = "var_list"];
message Var {
// 用户id
int64 uid = 1 [(gogoproto.jsontag) = "uid"];
// 目标id,主播uid、房间号etc
int64 target_id = 2 [(gogoproto.jsontag) = "target_id"];
// type请在 “配置仓库标识申请” 中自行分配
int64 type = 3 [(gogoproto.jsontag) = "type"];
// 设置内容
string content = 4 [(gogoproto.jsontag) = "content"];
}
}
message ConfSetResp {
// code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
//
Data data = 3 [(gogoproto.jsontag) = "data"];
message Data {
}
}
message ConfGetReq {
// 用户id
int64 uid = 1 [(gogoproto.jsontag) = "uid"];
// 目标id,主播uid、房间号etc
int64 target_id = 2 [(gogoproto.jsontag) = "target_id"];
// type请在 “配置仓库标识申请” 中自行分配
repeated int64 type = 3 [(gogoproto.jsontag) = "type"];
}
message ConfGetResp {
// code
int64 code = 1 [(gogoproto.jsontag) = "code"];
// msg
string msg = 2 [(gogoproto.jsontag) = "msg"];
// type -> content
map<string, string> data = 3 [(gogoproto.jsontag) = "data"];
}