|
@@ -21,7 +21,7 @@ const (
|
|
|
)
|
|
|
|
|
|
//公共返回 status
|
|
|
-type Resp struct {
|
|
|
+type FileResp struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
@@ -31,8 +31,8 @@ type Resp struct {
|
|
|
Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
}
|
|
|
|
|
|
-func (x *Resp) Reset() {
|
|
|
- *x = Resp{}
|
|
|
+func (x *FileResp) Reset() {
|
|
|
+ *x = FileResp{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_fileCenter_proto_msgTypes[0]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -40,13 +40,13 @@ func (x *Resp) Reset() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-func (x *Resp) String() string {
|
|
|
+func (x *FileResp) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
-func (*Resp) ProtoMessage() {}
|
|
|
+func (*FileResp) ProtoMessage() {}
|
|
|
|
|
|
-func (x *Resp) ProtoReflect() protoreflect.Message {
|
|
|
+func (x *FileResp) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_fileCenter_proto_msgTypes[0]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -58,26 +58,26 @@ func (x *Resp) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use Resp.ProtoReflect.Descriptor instead.
|
|
|
-func (*Resp) Descriptor() ([]byte, []int) {
|
|
|
+// Deprecated: Use FileResp.ProtoReflect.Descriptor instead.
|
|
|
+func (*FileResp) Descriptor() ([]byte, []int) {
|
|
|
return file_fileCenter_proto_rawDescGZIP(), []int{0}
|
|
|
}
|
|
|
|
|
|
-func (x *Resp) GetErrorMsg() string {
|
|
|
+func (x *FileResp) GetErrorMsg() string {
|
|
|
if x != nil {
|
|
|
return x.ErrorMsg
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-func (x *Resp) GetErrorCode() int64 {
|
|
|
+func (x *FileResp) GetErrorCode() int64 {
|
|
|
if x != nil {
|
|
|
return x.ErrorCode
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-func (x *Resp) GetStatus() int64 {
|
|
|
+func (x *FileResp) GetStatus() int64 {
|
|
|
if x != nil {
|
|
|
return x.Status
|
|
|
}
|
|
@@ -269,34 +269,34 @@ var File_fileCenter_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_fileCenter_proto_rawDesc = []byte{
|
|
|
0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
- 0x74, 0x6f, 0x22, 0x5a, 0x0a, 0x04, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72,
|
|
|
- 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65,
|
|
|
- 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72,
|
|
|
- 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72,
|
|
|
- 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
|
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x71,
|
|
|
- 0x0a, 0x09, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x66,
|
|
|
- 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12,
|
|
|
- 0x24, 0x0a, 0x0d, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65,
|
|
|
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x63, 0x6b, 0x65,
|
|
|
- 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x18,
|
|
|
- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x73, 0x73, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a,
|
|
|
- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
|
|
|
- 0x65, 0x22, 0x6c, 0x0a, 0x0a, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
|
- 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01,
|
|
|
- 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a,
|
|
|
- 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
|
|
|
- 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75,
|
|
|
- 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x10, 0x0a,
|
|
|
- 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22,
|
|
|
- 0x0f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71,
|
|
|
- 0x32, 0x50, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x21,
|
|
|
- 0x0a, 0x06, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x0a, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61,
|
|
|
- 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0b, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73,
|
|
|
- 0x70, 0x12, 0x1f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x0e, 0x2e, 0x44, 0x65,
|
|
|
- 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65,
|
|
|
- 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
|
- 0x6f, 0x33,
|
|
|
+ 0x74, 0x6f, 0x22, 0x5e, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b,
|
|
|
+ 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
+ 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x65,
|
|
|
+ 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
+ 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74,
|
|
|
+ 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74,
|
|
|
+ 0x75, 0x73, 0x22, 0x71, 0x0a, 0x09, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x12,
|
|
|
+ 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x66,
|
|
|
+ 0x69, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74,
|
|
|
+ 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x73, 0x73, 0x42,
|
|
|
+ 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x73, 0x73,
|
|
|
+ 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x73, 0x73, 0x55, 0x72,
|
|
|
+ 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6c, 0x0a, 0x0a, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52,
|
|
|
+ 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67,
|
|
|
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67,
|
|
|
+ 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
|
|
|
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12,
|
|
|
+ 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,
|
|
|
+ 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
|
|
+ 0x6b, 0x65, 0x79, 0x22, 0x0f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c,
|
|
|
+ 0x65, 0x52, 0x65, 0x71, 0x32, 0x54, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x65, 0x6e, 0x74,
|
|
|
+ 0x65, 0x72, 0x12, 0x21, 0x0a, 0x06, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x0a, 0x2e, 0x55,
|
|
|
+ 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0b, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61,
|
|
|
+ 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12,
|
|
|
+ 0x0e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a,
|
|
|
+ 0x09, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
|
|
|
+ 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -313,7 +313,7 @@ func file_fileCenter_proto_rawDescGZIP() []byte {
|
|
|
|
|
|
var file_fileCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
var file_fileCenter_proto_goTypes = []interface{}{
|
|
|
- (*Resp)(nil), // 0: Resp
|
|
|
+ (*FileResp)(nil), // 0: FileResp
|
|
|
(*UploadReq)(nil), // 1: UploadReq
|
|
|
(*UploadResp)(nil), // 2: UploadResp
|
|
|
(*DeleteFileReq)(nil), // 3: DeleteFileReq
|
|
@@ -322,7 +322,7 @@ var file_fileCenter_proto_depIdxs = []int32{
|
|
|
1, // 0: fileCenter.Upload:input_type -> UploadReq
|
|
|
3, // 1: fileCenter.Delete:input_type -> DeleteFileReq
|
|
|
2, // 2: fileCenter.Upload:output_type -> UploadResp
|
|
|
- 0, // 3: fileCenter.Delete:output_type -> Resp
|
|
|
+ 0, // 3: fileCenter.Delete:output_type -> FileResp
|
|
|
2, // [2:4] is the sub-list for method output_type
|
|
|
0, // [0:2] is the sub-list for method input_type
|
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
@@ -337,7 +337,7 @@ func file_fileCenter_proto_init() {
|
|
|
}
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
file_fileCenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*Resp); i {
|
|
|
+ switch v := v.(*FileResp); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|