更新多接口版本
This commit is contained in:
@@ -13,7 +13,7 @@ service FrameService {
|
||||
// 请求
|
||||
message Request {
|
||||
int32 Type = 1;
|
||||
repeated bytes Frames = 2;
|
||||
bytes Frames = 2;
|
||||
}
|
||||
|
||||
// 响应
|
||||
|
||||
@@ -31,8 +31,8 @@ type Request struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Type int32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"`
|
||||
Frames [][]byte `protobuf:"bytes,2,rep,name=Frames,proto3" json:"Frames,omitempty"`
|
||||
Type int32 `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"`
|
||||
Frames []byte `protobuf:"bytes,2,opt,name=Frames,proto3" json:"Frames,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Request) Reset() {
|
||||
@@ -74,7 +74,7 @@ func (x *Request) GetType() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Request) GetFrames() [][]byte {
|
||||
func (x *Request) GetFrames() []byte {
|
||||
if x != nil {
|
||||
return x.Frames
|
||||
}
|
||||
@@ -154,7 +154,7 @@ var file_proto_frame_proto_rawDesc = []byte{
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x35, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x12, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,
|
||||
0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02,
|
||||
0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4c, 0x0a, 0x08,
|
||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4c, 0x0a, 0x08,
|
||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07,
|
||||
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4d,
|
||||
|
||||
Reference in New Issue
Block a user