|
@@ -252,19 +252,19 @@ func (x *UserBuyVipRequest) GetMold() int64 {
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-//公共返回
|
|
|
-type CommonResponse struct {
|
|
|
+// 用户下载
|
|
|
+type UDRes struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
|
|
|
- Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
+ Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
+ Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
|
|
|
+ OssDocId string `protobuf:"bytes,3,opt,name=ossDocId,proto3" json:"ossDocId,omitempty"`
|
|
|
}
|
|
|
|
|
|
-func (x *CommonResponse) Reset() {
|
|
|
- *x = CommonResponse{}
|
|
|
+func (x *UDRes) Reset() {
|
|
|
+ *x = UDRes{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_partnerlib_proto_msgTypes[2]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -272,13 +272,13 @@ func (x *CommonResponse) Reset() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-func (x *CommonResponse) String() string {
|
|
|
+func (x *UDRes) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
-func (*CommonResponse) ProtoMessage() {}
|
|
|
+func (*UDRes) ProtoMessage() {}
|
|
|
|
|
|
-func (x *CommonResponse) ProtoReflect() protoreflect.Message {
|
|
|
+func (x *UDRes) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_partnerlib_proto_msgTypes[2]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -290,28 +290,92 @@ func (x *CommonResponse) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use CommonResponse.ProtoReflect.Descriptor instead.
|
|
|
-func (*CommonResponse) Descriptor() ([]byte, []int) {
|
|
|
+// Deprecated: Use UDRes.ProtoReflect.Descriptor instead.
|
|
|
+func (*UDRes) Descriptor() ([]byte, []int) {
|
|
|
return file_partnerlib_proto_rawDescGZIP(), []int{2}
|
|
|
}
|
|
|
|
|
|
-func (x *CommonResponse) GetCode() int64 {
|
|
|
+func (x *UDRes) GetCode() int64 {
|
|
|
if x != nil {
|
|
|
return x.Code
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-func (x *CommonResponse) GetMsg() string {
|
|
|
+func (x *UDRes) GetMsg() string {
|
|
|
if x != nil {
|
|
|
return x.Msg
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-func (x *CommonResponse) GetData() string {
|
|
|
+func (x *UDRes) GetOssDocId() string {
|
|
|
if x != nil {
|
|
|
- return x.Data
|
|
|
+ return x.OssDocId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+//会员购买返回值
|
|
|
+type UBVRes struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
+ Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
|
|
|
+ OrderNo string `protobuf:"bytes,3,opt,name=orderNo,proto3" json:"orderNo,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UBVRes) Reset() {
|
|
|
+ *x = UBVRes{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_partnerlib_proto_msgTypes[3]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UBVRes) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*UBVRes) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *UBVRes) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_partnerlib_proto_msgTypes[3]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use UBVRes.ProtoReflect.Descriptor instead.
|
|
|
+func (*UBVRes) Descriptor() ([]byte, []int) {
|
|
|
+ return file_partnerlib_proto_rawDescGZIP(), []int{3}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UBVRes) GetCode() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Code
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UBVRes) GetMsg() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Msg
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UBVRes) GetOrderNo() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.OrderNo
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
@@ -353,23 +417,27 @@ var file_partnerlib_proto_rawDesc = []byte{
|
|
|
0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65,
|
|
|
0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x6c, 0x64, 0x18, 0x0c,
|
|
|
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x6d, 0x6f, 0x6c, 0x64, 0x22, 0x4a, 0x0a, 0x0e, 0x43, 0x6f,
|
|
|
- 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
|
|
- 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
|
|
|
- 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d,
|
|
|
- 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
|
|
- 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x9b, 0x01, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e,
|
|
|
- 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x0b, 0x44, 0x6f, 0x63, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61,
|
|
|
- 0x64, 0x12, 0x1f, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55,
|
|
|
- 0x73, 0x65, 0x72, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
- 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e,
|
|
|
- 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44,
|
|
|
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x6d, 0x6f, 0x6c, 0x64, 0x22, 0x49, 0x0a, 0x05, 0x55, 0x44,
|
|
|
+ 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
+ 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02,
|
|
|
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x73, 0x73,
|
|
|
+ 0x44, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x73, 0x73,
|
|
|
+ 0x44, 0x6f, 0x63, 0x49, 0x64, 0x22, 0x48, 0x0a, 0x06, 0x55, 0x42, 0x56, 0x52, 0x65, 0x73, 0x12,
|
|
|
+ 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63,
|
|
|
+ 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
+ 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f,
|
|
|
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x32,
|
|
|
+ 0x8a, 0x01, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x44,
|
|
|
+ 0x6f, 0x63, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1f, 0x2e, 0x70, 0x61, 0x72,
|
|
|
+ 0x74, 0x6e, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x44, 0x6f, 0x77, 0x6e,
|
|
|
+ 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x70, 0x61,
|
|
|
+ 0x72, 0x74, 0x6e, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x44, 0x52, 0x65, 0x73, 0x12, 0x3c,
|
|
|
0x0a, 0x07, 0x55, 0x73, 0x65, 0x72, 0x42, 0x75, 0x79, 0x12, 0x1d, 0x2e, 0x70, 0x61, 0x72, 0x74,
|
|
|
0x6e, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x75, 0x79, 0x56, 0x69,
|
|
|
- 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e,
|
|
|
- 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70,
|
|
|
- 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0e, 0x5a, 0x0c, 0x2e, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65,
|
|
|
- 0x72, 0x6c, 0x69, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e,
|
|
|
+ 0x65, 0x72, 0x6c, 0x69, 0x62, 0x2e, 0x55, 0x42, 0x56, 0x52, 0x65, 0x73, 0x42, 0x0e, 0x5a, 0x0c,
|
|
|
+ 0x2e, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x6c, 0x69, 0x62, 0x62, 0x06, 0x70, 0x72,
|
|
|
+ 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -384,17 +452,18 @@ func file_partnerlib_proto_rawDescGZIP() []byte {
|
|
|
return file_partnerlib_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_partnerlib_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
|
+var file_partnerlib_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
var file_partnerlib_proto_goTypes = []interface{}{
|
|
|
(*UserDownloadRequest)(nil), // 0: partnerlib.UserDownloadRequest
|
|
|
(*UserBuyVipRequest)(nil), // 1: partnerlib.UserBuyVipRequest
|
|
|
- (*CommonResponse)(nil), // 2: partnerlib.CommonResponse
|
|
|
+ (*UDRes)(nil), // 2: partnerlib.UDRes
|
|
|
+ (*UBVRes)(nil), // 3: partnerlib.UBVRes
|
|
|
}
|
|
|
var file_partnerlib_proto_depIdxs = []int32{
|
|
|
0, // 0: partnerlib.Partner.DocDownload:input_type -> partnerlib.UserDownloadRequest
|
|
|
1, // 1: partnerlib.Partner.UserBuy:input_type -> partnerlib.UserBuyVipRequest
|
|
|
- 2, // 2: partnerlib.Partner.DocDownload:output_type -> partnerlib.CommonResponse
|
|
|
- 2, // 3: partnerlib.Partner.UserBuy:output_type -> partnerlib.CommonResponse
|
|
|
+ 2, // 2: partnerlib.Partner.DocDownload:output_type -> partnerlib.UDRes
|
|
|
+ 3, // 3: partnerlib.Partner.UserBuy:output_type -> partnerlib.UBVRes
|
|
|
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
|
|
@@ -433,7 +502,19 @@ func file_partnerlib_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_partnerlib_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*CommonResponse); i {
|
|
|
+ switch v := v.(*UDRes); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_partnerlib_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*UBVRes); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
@@ -451,7 +532,7 @@ func file_partnerlib_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_partnerlib_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 3,
|
|
|
+ NumMessages: 4,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|