386 lines
14 KiB
Go
386 lines
14 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.23.0
|
|
// protoc v3.11.4
|
|
// source: mop_purchasing_rights_manager.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
context "context"
|
|
proto "github.com/golang/protobuf/proto"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
// of the legacy proto package is being used.
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
//接口一
|
|
type QueryBusinessStatusReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
BusinessId string `protobuf:"bytes,1,opt,name=businessId,proto3" json:"businessId"`
|
|
}
|
|
|
|
func (x *QueryBusinessStatusReq) Reset() {
|
|
*x = QueryBusinessStatusReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_mop_purchasing_rights_manager_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryBusinessStatusReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryBusinessStatusReq) ProtoMessage() {}
|
|
|
|
func (x *QueryBusinessStatusReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_mop_purchasing_rights_manager_proto_msgTypes[0]
|
|
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 QueryBusinessStatusReq.ProtoReflect.Descriptor instead.
|
|
func (*QueryBusinessStatusReq) Descriptor() ([]byte, []int) {
|
|
return file_mop_purchasing_rights_manager_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *QueryBusinessStatusReq) GetBusinessId() string {
|
|
if x != nil {
|
|
return x.BusinessId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type QueryBusinessStatusRsp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Result *CommonResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result"`
|
|
Data *QueryBusinessStatusRsp_DATA `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
|
|
}
|
|
|
|
func (x *QueryBusinessStatusRsp) Reset() {
|
|
*x = QueryBusinessStatusRsp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_mop_purchasing_rights_manager_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryBusinessStatusRsp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryBusinessStatusRsp) ProtoMessage() {}
|
|
|
|
func (x *QueryBusinessStatusRsp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_mop_purchasing_rights_manager_proto_msgTypes[1]
|
|
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 QueryBusinessStatusRsp.ProtoReflect.Descriptor instead.
|
|
func (*QueryBusinessStatusRsp) Descriptor() ([]byte, []int) {
|
|
return file_mop_purchasing_rights_manager_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *QueryBusinessStatusRsp) GetResult() *CommonResult {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryBusinessStatusRsp) GetData() *QueryBusinessStatusRsp_DATA {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryBusinessStatusRsp_DATA struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
|
|
}
|
|
|
|
func (x *QueryBusinessStatusRsp_DATA) Reset() {
|
|
*x = QueryBusinessStatusRsp_DATA{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_mop_purchasing_rights_manager_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryBusinessStatusRsp_DATA) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryBusinessStatusRsp_DATA) ProtoMessage() {}
|
|
|
|
func (x *QueryBusinessStatusRsp_DATA) ProtoReflect() protoreflect.Message {
|
|
mi := &file_mop_purchasing_rights_manager_proto_msgTypes[2]
|
|
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 QueryBusinessStatusRsp_DATA.ProtoReflect.Descriptor instead.
|
|
func (*QueryBusinessStatusRsp_DATA) Descriptor() ([]byte, []int) {
|
|
return file_mop_purchasing_rights_manager_proto_rawDescGZIP(), []int{1, 0}
|
|
}
|
|
|
|
func (x *QueryBusinessStatusRsp_DATA) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_mop_purchasing_rights_manager_proto protoreflect.FileDescriptor
|
|
|
|
var file_mop_purchasing_rights_manager_proto_rawDesc = []byte{
|
|
0x0a, 0x23, 0x6d, 0x6f, 0x70, 0x5f, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x69, 0x6e, 0x67,
|
|
0x5f, 0x72, 0x69, 0x67, 0x68, 0x74, 0x73, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
|
|
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x38, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79,
|
|
0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
|
|
0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49,
|
|
0x64, 0x22, 0x97, 0x01, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x75, 0x73, 0x69, 0x6e,
|
|
0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x73, 0x70, 0x12, 0x28, 0x0a, 0x06,
|
|
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70,
|
|
0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06,
|
|
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02,
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42,
|
|
0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x73, 0x70,
|
|
0x2e, 0x44, 0x41, 0x54, 0x41, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x1e, 0x0a, 0x04, 0x44,
|
|
0x41, 0x54, 0x41, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x6d, 0x0a, 0x1a, 0x4d,
|
|
0x6f, 0x70, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x69, 0x6e, 0x67, 0x52, 0x69, 0x67, 0x68,
|
|
0x74, 0x73, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x13, 0x51, 0x75, 0x65,
|
|
0x72, 0x79, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x75, 0x73, 0x69, 0x6e,
|
|
0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x70,
|
|
0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x53,
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x73, 0x70, 0x22, 0x00, 0x42, 0x07, 0x5a, 0x05, 0x2e, 0x2f,
|
|
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_mop_purchasing_rights_manager_proto_rawDescOnce sync.Once
|
|
file_mop_purchasing_rights_manager_proto_rawDescData = file_mop_purchasing_rights_manager_proto_rawDesc
|
|
)
|
|
|
|
func file_mop_purchasing_rights_manager_proto_rawDescGZIP() []byte {
|
|
file_mop_purchasing_rights_manager_proto_rawDescOnce.Do(func() {
|
|
file_mop_purchasing_rights_manager_proto_rawDescData = protoimpl.X.CompressGZIP(file_mop_purchasing_rights_manager_proto_rawDescData)
|
|
})
|
|
return file_mop_purchasing_rights_manager_proto_rawDescData
|
|
}
|
|
|
|
var file_mop_purchasing_rights_manager_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_mop_purchasing_rights_manager_proto_goTypes = []interface{}{
|
|
(*QueryBusinessStatusReq)(nil), // 0: pb.QueryBusinessStatusReq
|
|
(*QueryBusinessStatusRsp)(nil), // 1: pb.QueryBusinessStatusRsp
|
|
(*QueryBusinessStatusRsp_DATA)(nil), // 2: pb.QueryBusinessStatusRsp.DATA
|
|
(*CommonResult)(nil), // 3: pb.CommonResult
|
|
}
|
|
var file_mop_purchasing_rights_manager_proto_depIdxs = []int32{
|
|
3, // 0: pb.QueryBusinessStatusRsp.result:type_name -> pb.CommonResult
|
|
2, // 1: pb.QueryBusinessStatusRsp.data:type_name -> pb.QueryBusinessStatusRsp.DATA
|
|
0, // 2: pb.MopPurchasingRightsManager.QueryBusinessStatus:input_type -> pb.QueryBusinessStatusReq
|
|
1, // 3: pb.MopPurchasingRightsManager.QueryBusinessStatus:output_type -> pb.QueryBusinessStatusRsp
|
|
3, // [3:4] is the sub-list for method output_type
|
|
2, // [2:3] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_mop_purchasing_rights_manager_proto_init() }
|
|
func file_mop_purchasing_rights_manager_proto_init() {
|
|
if File_mop_purchasing_rights_manager_proto != nil {
|
|
return
|
|
}
|
|
file_common_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_mop_purchasing_rights_manager_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryBusinessStatusReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_mop_purchasing_rights_manager_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryBusinessStatusRsp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_mop_purchasing_rights_manager_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryBusinessStatusRsp_DATA); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_mop_purchasing_rights_manager_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_mop_purchasing_rights_manager_proto_goTypes,
|
|
DependencyIndexes: file_mop_purchasing_rights_manager_proto_depIdxs,
|
|
MessageInfos: file_mop_purchasing_rights_manager_proto_msgTypes,
|
|
}.Build()
|
|
File_mop_purchasing_rights_manager_proto = out.File
|
|
file_mop_purchasing_rights_manager_proto_rawDesc = nil
|
|
file_mop_purchasing_rights_manager_proto_goTypes = nil
|
|
file_mop_purchasing_rights_manager_proto_depIdxs = nil
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConnInterface
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
// MopPurchasingRightsManagerClient is the client API for MopPurchasingRightsManager service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type MopPurchasingRightsManagerClient interface {
|
|
QueryBusinessStatus(ctx context.Context, in *QueryBusinessStatusReq, opts ...grpc.CallOption) (*QueryBusinessStatusRsp, error)
|
|
}
|
|
|
|
type mopPurchasingRightsManagerClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewMopPurchasingRightsManagerClient(cc grpc.ClientConnInterface) MopPurchasingRightsManagerClient {
|
|
return &mopPurchasingRightsManagerClient{cc}
|
|
}
|
|
|
|
func (c *mopPurchasingRightsManagerClient) QueryBusinessStatus(ctx context.Context, in *QueryBusinessStatusReq, opts ...grpc.CallOption) (*QueryBusinessStatusRsp, error) {
|
|
out := new(QueryBusinessStatusRsp)
|
|
err := c.cc.Invoke(ctx, "/pb.MopPurchasingRightsManager/QueryBusinessStatus", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// MopPurchasingRightsManagerServer is the server API for MopPurchasingRightsManager service.
|
|
type MopPurchasingRightsManagerServer interface {
|
|
QueryBusinessStatus(context.Context, *QueryBusinessStatusReq) (*QueryBusinessStatusRsp, error)
|
|
}
|
|
|
|
// UnimplementedMopPurchasingRightsManagerServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedMopPurchasingRightsManagerServer struct {
|
|
}
|
|
|
|
func (*UnimplementedMopPurchasingRightsManagerServer) QueryBusinessStatus(context.Context, *QueryBusinessStatusReq) (*QueryBusinessStatusRsp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method QueryBusinessStatus not implemented")
|
|
}
|
|
|
|
func RegisterMopPurchasingRightsManagerServer(s *grpc.Server, srv MopPurchasingRightsManagerServer) {
|
|
s.RegisterService(&_MopPurchasingRightsManager_serviceDesc, srv)
|
|
}
|
|
|
|
func _MopPurchasingRightsManager_QueryBusinessStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QueryBusinessStatusReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MopPurchasingRightsManagerServer).QueryBusinessStatus(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pb.MopPurchasingRightsManager/QueryBusinessStatus",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MopPurchasingRightsManagerServer).QueryBusinessStatus(ctx, req.(*QueryBusinessStatusReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _MopPurchasingRightsManager_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "pb.MopPurchasingRightsManager",
|
|
HandlerType: (*MopPurchasingRightsManagerServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "QueryBusinessStatus",
|
|
Handler: _MopPurchasingRightsManager_QueryBusinessStatus_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "mop_purchasing_rights_manager.proto",
|
|
}
|