hi-grpc-client 1.0.2__py3-none-any.whl → 1.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,24 @@
1
- __all__ = []
1
+ __version__ = "1.0.3"
2
+ __author__ = "hi"
3
+
4
+ # 导出主要模块
5
+ from . import ai
6
+ from . import club
7
+ from . import did
8
+ from . import source
9
+
10
+ # 导出protobuf生成的模块
11
+ from . import hi_pb2
12
+ from . import hi_pb2_grpc
13
+
14
+ # 如果有主要的类或函数,可以在这里导出
15
+ # from .main import SomeClass, some_function
16
+
17
+ __all__ = [
18
+ 'ai',
19
+ 'club',
20
+ 'did',
21
+ 'source',
22
+ 'hi_pb2',
23
+ 'hi_pb2_grpc',
24
+ ]
@@ -1 +0,0 @@
1
- __all__ = []
@@ -1 +0,0 @@
1
- __all__ = []
@@ -1 +0,0 @@
1
- __all__ = []
@@ -1 +0,0 @@
1
- __all__ = []
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,37 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: v1/club/price/price.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'v1/club/price/price.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from hi_grpc_client.did import price_pb2 as v1_dot_did_dot_price__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19v1/club/price/price.proto\x12\rhi.club.price\x1a\x12v1/did/price.proto2>\n\x05Price\x12\x35\n\x08GetPrice\x12\x13.hi.did.GetPriceReq\x1a\x14.hi.did.GetPriceRespb\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'v1.club.price.price_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ DESCRIPTOR._loaded_options = None
35
+ _globals['_PRICE']._serialized_start=64
36
+ _globals['_PRICE']._serialized_end=126
37
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,78 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from hi_grpc_client.did import price_pb2 as v1_dot_did_dot_price__pb2
6
+
7
+
8
+ class PriceStub(object):
9
+ """Missing associated documentation comment in .proto file."""
10
+
11
+ def __init__(self, channel):
12
+ """Constructor.
13
+
14
+ Args:
15
+ channel: A grpc.Channel.
16
+ """
17
+ self.GetPrice = channel.unary_unary(
18
+ '/hi.club.price.Price/GetPrice',
19
+ request_serializer=v1_dot_did_dot_price__pb2.GetPriceReq.SerializeToString,
20
+ response_deserializer=v1_dot_did_dot_price__pb2.GetPriceResp.FromString,
21
+ _registered_method=True)
22
+
23
+
24
+ class PriceServicer(object):
25
+ """Missing associated documentation comment in .proto file."""
26
+
27
+ def GetPrice(self, request, context):
28
+ """不鉴权
29
+ """
30
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
31
+ context.set_details('Method not implemented!')
32
+ raise NotImplementedError('Method not implemented!')
33
+
34
+
35
+ def add_PriceServicer_to_server(servicer, server):
36
+ rpc_method_handlers = {
37
+ 'GetPrice': grpc.unary_unary_rpc_method_handler(
38
+ servicer.GetPrice,
39
+ request_deserializer=v1_dot_did_dot_price__pb2.GetPriceReq.FromString,
40
+ response_serializer=v1_dot_did_dot_price__pb2.GetPriceResp.SerializeToString,
41
+ ),
42
+ }
43
+ generic_handler = grpc.method_handlers_generic_handler(
44
+ 'hi.club.price.Price', rpc_method_handlers)
45
+ server.add_generic_rpc_handlers((generic_handler,))
46
+ server.add_registered_method_handlers('hi.club.price.Price', rpc_method_handlers)
47
+
48
+
49
+ # This class is part of an EXPERIMENTAL API.
50
+ class Price(object):
51
+ """Missing associated documentation comment in .proto file."""
52
+
53
+ @staticmethod
54
+ def GetPrice(request,
55
+ target,
56
+ options=(),
57
+ channel_credentials=None,
58
+ call_credentials=None,
59
+ insecure=False,
60
+ compression=None,
61
+ wait_for_ready=None,
62
+ timeout=None,
63
+ metadata=None):
64
+ return grpc.experimental.unary_unary(
65
+ request,
66
+ target,
67
+ '/hi.club.price.Price/GetPrice',
68
+ v1_dot_did_dot_price__pb2.GetPriceReq.SerializeToString,
69
+ v1_dot_did_dot_price__pb2.GetPriceResp.FromString,
70
+ options,
71
+ channel_credentials,
72
+ insecure,
73
+ call_credentials,
74
+ compression,
75
+ wait_for_ready,
76
+ timeout,
77
+ metadata,
78
+ _registered_method=True)
File without changes
File without changes
@@ -28,7 +28,7 @@ from hi_grpc_client import hi_pb2 as v1_dot_hi__pb2
28
28
  from hi_grpc_client.club.mqtt import mqtt_pb2 as v1_dot_club_dot_mqtt_dot_mqtt__pb2
29
29
 
30
30
 
31
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12v1/club/user.proto\x12\x07hi.club\x1a\x1bgoogle/protobuf/empty.proto\x1a\x19google/protobuf/any.proto\x1a\x0bv1/hi.proto\x1a\x17v1/club/mqtt/mqtt.proto\"J\n\x08UserInfo\x12\x1c\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x08.hi.UnitR\x04\x62\x61se\x12 \n\x0bpermissions\x18\x02 \x03(\tR\x0bpermissions\"^\n\x14ListSystemMessageReq\x12\x16\n\x06status\x18\x01 \x01(\tR\x06status\x12.\n\npagination\x18\x02 \x01(\x0b\x32\x0e.hi.PaginationR\npagination\"i\n\x0eSystemMessages\x12\x17\n\x07has_new\x18\x01 \x01(\x08R\x06hasNew\x12\x14\n\x05total\x18\x02 \x01(\x05R\x05total\x12(\n\x04list\x18\x03 \x03(\x0b\x32\x14.hi.club.mqtt.NoticeR\x04list\",\n\x16\x44\x65leteSystemMessageReq\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\"D\n\x16HandleSystemMessageReq\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\"/\n\x0fListFriendsResp\x12\x1c\n\x04list\x18\x01 \x03(\x0b\x32\x08.hi.UnitR\x04list\"4\n\x0c\x41\x64\x64\x46riendReq\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\"#\n\x0f\x44\x65leteFriendReq\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\"&\n\x10ListGroupReqResp\x12\x12\n\x04list\x18\x01 \x03(\tR\x04list\"\x1e\n\nGetUserReq\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\"2\n\x1aUnprocessedSysMsgCountResp\x12\x14\n\x05\x63ount\x18\x01 \x01(\x05R\x05\x63ount2\xac\x06\n\x04User\x12;\n\x0eGetCurrentUser\x12\x16.google.protobuf.Empty\x1a\x11.hi.club.UserInfo\x12.\n\nUpdateUser\x12\x08.hi.Unit\x1a\x16.google.protobuf.Empty\x12K\n\x11ListSystemMessage\x12\x1d.hi.club.ListSystemMessageReq\x1a\x17.hi.club.SystemMessages\x12N\n\x13\x44\x65leteSystemMessage\x12\x1f.hi.club.DeleteSystemMessageReq\x1a\x16.google.protobuf.Empty\x12H\n\x16\x44\x65leteAllSystemMessage\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12N\n\x13HandleSystemMessage\x12\x1f.hi.club.HandleSystemMessageReq\x1a\x16.google.protobuf.Empty\x12?\n\x0bListFriends\x12\x16.google.protobuf.Empty\x1a\x18.hi.club.ListFriendsResp\x12:\n\tAddFriend\x12\x15.hi.club.AddFriendReq\x1a\x16.google.protobuf.Empty\x12@\n\x0c\x44\x65leteFriend\x12\x18.hi.club.DeleteFriendReq\x1a\x16.google.protobuf.Empty\x12?\n\nListGroups\x12\x16.google.protobuf.Empty\x1a\x19.hi.club.ListGroupReqResp\x12)\n\x08GetOther\x12\x13.hi.club.GetUserReq\x1a\x08.hi.Unit\x12U\n\x16UnprocessedSysMsgCount\x12\x16.google.protobuf.Empty\x1a#.hi.club.UnprocessedSysMsgCountRespb\x06proto3')
31
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12v1/club/user.proto\x12\x07hi.club\x1a\x1bgoogle/protobuf/empty.proto\x1a\x19google/protobuf/any.proto\x1a\x0bv1/hi.proto\x1a\x17v1/club/mqtt/mqtt.proto\"J\n\x08UserInfo\x12\x1c\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\x08.hi.UnitR\x04\x62\x61se\x12 \n\x0bpermissions\x18\x02 \x03(\tR\x0bpermissions\"^\n\x14ListSystemMessageReq\x12\x16\n\x06status\x18\x01 \x01(\tR\x06status\x12.\n\npagination\x18\x02 \x01(\x0b\x32\x0e.hi.PaginationR\npagination\"i\n\x0eSystemMessages\x12\x17\n\x07has_new\x18\x01 \x01(\x08R\x06hasNew\x12\x14\n\x05total\x18\x02 \x01(\x05R\x05total\x12(\n\x04list\x18\x03 \x03(\x0b\x32\x14.hi.club.mqtt.NoticeR\x04list\",\n\x16\x44\x65leteSystemMessageReq\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\"D\n\x16HandleSystemMessageReq\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\"\x84\x01\n\x0fListFriendsResp\x12\x33\n\x04list\x18\x01 \x03(\x0b\x32\x1f.hi.club.ListFriendsResp.FriendR\x04list\x1a<\n\x06\x46riend\x12\x1c\n\x04user\x18\x01 \x01(\x0b\x32\x08.hi.UnitR\x04user\x12\x14\n\x05level\x18\x02 \x01(\x05R\x05level\"4\n\x0c\x41\x64\x64\x46riendReq\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\"#\n\x0f\x44\x65leteFriendReq\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\"&\n\x10ListGroupReqResp\x12\x12\n\x04list\x18\x01 \x03(\tR\x04list\"\x1e\n\nGetUserReq\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\"2\n\x1aUnprocessedSysMsgCountResp\x12\x14\n\x05\x63ount\x18\x01 \x01(\x05R\x05\x63ount2\xac\x06\n\x04User\x12;\n\x0eGetCurrentUser\x12\x16.google.protobuf.Empty\x1a\x11.hi.club.UserInfo\x12.\n\nUpdateUser\x12\x08.hi.Unit\x1a\x16.google.protobuf.Empty\x12K\n\x11ListSystemMessage\x12\x1d.hi.club.ListSystemMessageReq\x1a\x17.hi.club.SystemMessages\x12N\n\x13\x44\x65leteSystemMessage\x12\x1f.hi.club.DeleteSystemMessageReq\x1a\x16.google.protobuf.Empty\x12H\n\x16\x44\x65leteAllSystemMessage\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12N\n\x13HandleSystemMessage\x12\x1f.hi.club.HandleSystemMessageReq\x1a\x16.google.protobuf.Empty\x12?\n\x0bListFriends\x12\x16.google.protobuf.Empty\x1a\x18.hi.club.ListFriendsResp\x12:\n\tAddFriend\x12\x15.hi.club.AddFriendReq\x1a\x16.google.protobuf.Empty\x12@\n\x0c\x44\x65leteFriend\x12\x18.hi.club.DeleteFriendReq\x1a\x16.google.protobuf.Empty\x12?\n\nListGroups\x12\x16.google.protobuf.Empty\x1a\x19.hi.club.ListGroupReqResp\x12)\n\x08GetOther\x12\x13.hi.club.GetUserReq\x1a\x08.hi.Unit\x12U\n\x16UnprocessedSysMsgCount\x12\x16.google.protobuf.Empty\x1a#.hi.club.UnprocessedSysMsgCountRespb\x06proto3')
32
32
 
33
33
  _globals = globals()
34
34
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -45,18 +45,20 @@ if not _descriptor._USE_C_DESCRIPTORS:
45
45
  _globals['_DELETESYSTEMMESSAGEREQ']._serialized_end=448
46
46
  _globals['_HANDLESYSTEMMESSAGEREQ']._serialized_start=450
47
47
  _globals['_HANDLESYSTEMMESSAGEREQ']._serialized_end=518
48
- _globals['_LISTFRIENDSRESP']._serialized_start=520
49
- _globals['_LISTFRIENDSRESP']._serialized_end=567
50
- _globals['_ADDFRIENDREQ']._serialized_start=569
51
- _globals['_ADDFRIENDREQ']._serialized_end=621
52
- _globals['_DELETEFRIENDREQ']._serialized_start=623
53
- _globals['_DELETEFRIENDREQ']._serialized_end=658
54
- _globals['_LISTGROUPREQRESP']._serialized_start=660
55
- _globals['_LISTGROUPREQRESP']._serialized_end=698
56
- _globals['_GETUSERREQ']._serialized_start=700
57
- _globals['_GETUSERREQ']._serialized_end=730
58
- _globals['_UNPROCESSEDSYSMSGCOUNTRESP']._serialized_start=732
59
- _globals['_UNPROCESSEDSYSMSGCOUNTRESP']._serialized_end=782
60
- _globals['_USER']._serialized_start=785
61
- _globals['_USER']._serialized_end=1597
48
+ _globals['_LISTFRIENDSRESP']._serialized_start=521
49
+ _globals['_LISTFRIENDSRESP']._serialized_end=653
50
+ _globals['_LISTFRIENDSRESP_FRIEND']._serialized_start=593
51
+ _globals['_LISTFRIENDSRESP_FRIEND']._serialized_end=653
52
+ _globals['_ADDFRIENDREQ']._serialized_start=655
53
+ _globals['_ADDFRIENDREQ']._serialized_end=707
54
+ _globals['_DELETEFRIENDREQ']._serialized_start=709
55
+ _globals['_DELETEFRIENDREQ']._serialized_end=744
56
+ _globals['_LISTGROUPREQRESP']._serialized_start=746
57
+ _globals['_LISTGROUPREQRESP']._serialized_end=784
58
+ _globals['_GETUSERREQ']._serialized_start=786
59
+ _globals['_GETUSERREQ']._serialized_end=816
60
+ _globals['_UNPROCESSEDSYSMSGCOUNTRESP']._serialized_start=818
61
+ _globals['_UNPROCESSEDSYSMSGCOUNTRESP']._serialized_end=868
62
+ _globals['_USER']._serialized_start=871
63
+ _globals['_USER']._serialized_end=1683
62
64
  # @@protoc_insertion_point(module_scope)
File without changes
@@ -0,0 +1,39 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: v1/club/userextend/user_extend.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'v1/club/userextend/user_extend.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from hi_grpc_client.did import extend_pb2 as v1_dot_did_dot_extend__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$v1/club/userextend/user_extend.proto\x12\x12hi.club.userextend\x1a\x13v1/did/extend.proto\"&\n\x10UserExtendGetReq\x12\x12\n\x04user\x18\x01 \x01(\tR\x04user2T\n\nUserExtend\x12\x46\n\x03Get\x12$.hi.club.userextend.UserExtendGetReq\x1a\x19.hi.did.UserExtendGetRespb\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'v1.club.userextend.user_extend_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ DESCRIPTOR._loaded_options = None
35
+ _globals['_USEREXTENDGETREQ']._serialized_start=81
36
+ _globals['_USEREXTENDGETREQ']._serialized_end=119
37
+ _globals['_USEREXTEND']._serialized_start=121
38
+ _globals['_USEREXTEND']._serialized_end=205
39
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,79 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from hi_grpc_client.club.userextend import user_extend_pb2 as v1_dot_club_dot_userextend_dot_user__extend__pb2
6
+ from hi_grpc_client.did import extend_pb2 as v1_dot_did_dot_extend__pb2
7
+
8
+
9
+ class UserExtendStub(object):
10
+ """Missing associated documentation comment in .proto file."""
11
+
12
+ def __init__(self, channel):
13
+ """Constructor.
14
+
15
+ Args:
16
+ channel: A grpc.Channel.
17
+ """
18
+ self.Get = channel.unary_unary(
19
+ '/hi.club.userextend.UserExtend/Get',
20
+ request_serializer=v1_dot_club_dot_userextend_dot_user__extend__pb2.UserExtendGetReq.SerializeToString,
21
+ response_deserializer=v1_dot_did_dot_extend__pb2.UserExtendGetResp.FromString,
22
+ _registered_method=True)
23
+
24
+
25
+ class UserExtendServicer(object):
26
+ """Missing associated documentation comment in .proto file."""
27
+
28
+ def Get(self, request, context):
29
+ """Token鉴权
30
+ """
31
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
32
+ context.set_details('Method not implemented!')
33
+ raise NotImplementedError('Method not implemented!')
34
+
35
+
36
+ def add_UserExtendServicer_to_server(servicer, server):
37
+ rpc_method_handlers = {
38
+ 'Get': grpc.unary_unary_rpc_method_handler(
39
+ servicer.Get,
40
+ request_deserializer=v1_dot_club_dot_userextend_dot_user__extend__pb2.UserExtendGetReq.FromString,
41
+ response_serializer=v1_dot_did_dot_extend__pb2.UserExtendGetResp.SerializeToString,
42
+ ),
43
+ }
44
+ generic_handler = grpc.method_handlers_generic_handler(
45
+ 'hi.club.userextend.UserExtend', rpc_method_handlers)
46
+ server.add_generic_rpc_handlers((generic_handler,))
47
+ server.add_registered_method_handlers('hi.club.userextend.UserExtend', rpc_method_handlers)
48
+
49
+
50
+ # This class is part of an EXPERIMENTAL API.
51
+ class UserExtend(object):
52
+ """Missing associated documentation comment in .proto file."""
53
+
54
+ @staticmethod
55
+ def Get(request,
56
+ target,
57
+ options=(),
58
+ channel_credentials=None,
59
+ call_credentials=None,
60
+ insecure=False,
61
+ compression=None,
62
+ wait_for_ready=None,
63
+ timeout=None,
64
+ metadata=None):
65
+ return grpc.experimental.unary_unary(
66
+ request,
67
+ target,
68
+ '/hi.club.userextend.UserExtend/Get',
69
+ v1_dot_club_dot_userextend_dot_user__extend__pb2.UserExtendGetReq.SerializeToString,
70
+ v1_dot_did_dot_extend__pb2.UserExtendGetResp.FromString,
71
+ options,
72
+ channel_credentials,
73
+ insecure,
74
+ call_credentials,
75
+ compression,
76
+ wait_for_ready,
77
+ timeout,
78
+ metadata,
79
+ _registered_method=True)
File without changes
@@ -1 +0,0 @@
1
- __all__ = []
@@ -23,33 +23,44 @@ _sym_db = _symbol_database.Default()
23
23
 
24
24
 
25
25
  from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
26
+ from hi_grpc_client import hi_pb2 as v1_dot_hi__pb2
26
27
 
27
28
 
28
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13v1/did/extend.proto\x12\x06hi.did\x1a\x1bgoogle/protobuf/empty.proto\"C\n\x15UserExtendSettingResp\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12\x14\n\x05table\x18\x03 \x01(\tR\x05table\"f\n\x0eUserExtendInfo\x12\x12\n\x04logo\x18\x01 \x01(\tR\x04logo\x12\x14\n\x05level\x18\x02 \x01(\x05R\x05level\x12\x12\n\x04\x63\x61rd\x18\x03 \x01(\tR\x04\x63\x61rd\x12\x16\n\x06\x65xtend\x18\x04 \x01(\tR\x06\x65xtend\"\x91\x01\n\x13UserExtendUpdateReq\x12\x34\n\x04unit\x18\x02 \x03(\x0b\x32 .hi.did.UserExtendUpdateReq.UnitR\x04unit\x1a\x44\n\x04Unit\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\x12*\n\x04info\x18\x02 \x01(\x0b\x32\x16.hi.did.UserExtendInfoR\x04info\"\'\n\x11UserExtendListReq\x12\x12\n\x04list\x18\x01 \x03(\tR\x04list\"\x8f\x01\n\x12UserExtendListResp\x12\x33\n\x04unit\x18\x02 \x03(\x0b\x32\x1f.hi.did.UserExtendListResp.UnitR\x04unit\x1a\x44\n\x04Unit\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\x12*\n\x04info\x18\x02 \x01(\x0b\x32\x16.hi.did.UserExtendInfoR\x04info\")\n\x13UserExtendDeleteReq\x12\x12\n\x04list\x18\x01 \x03(\tR\x04list2\x92\x01\n\x11UserExtendSetting\x12?\n\x06Update\x12\x16.google.protobuf.Empty\x1a\x1d.hi.did.UserExtendSettingResp\x12<\n\x03Get\x12\x16.google.protobuf.Empty\x1a\x1d.hi.did.UserExtendSettingResp2\xc9\x01\n\nUserExtend\x12=\n\x06Update\x12\x1b.hi.did.UserExtendUpdateReq\x1a\x16.google.protobuf.Empty\x12=\n\x04List\x12\x19.hi.did.UserExtendListReq\x1a\x1a.hi.did.UserExtendListResp\x12=\n\x06\x44\x65lete\x12\x1b.hi.did.UserExtendDeleteReq\x1a\x16.google.protobuf.Emptyb\x06proto3')
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13v1/did/extend.proto\x12\x06hi.did\x1a\x1bgoogle/protobuf/empty.proto\x1a\x0bv1/hi.proto\"C\n\x15UserExtendSettingResp\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\x12\x14\n\x05table\x18\x02 \x01(\tR\x05table\"_\n\x06\x42utton\x12\x19\n\x08\x62g_color\x18\x01 \x01(\tR\x07\x62gColor\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12\x12\n\x04type\x18\x03 \x01(\tR\x04type\x12\x10\n\x03url\x18\x04 \x01(\tR\x03url\"\x8e\x01\n\x04\x43\x61rd\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12\x12\n\x04text\x18\x02 \x01(\tR\x04text\x12\x12\n\x04logo\x18\x03 \x01(\tR\x04logo\x12\"\n\x04left\x18\x04 \x01(\x0b\x32\x0e.hi.did.ButtonR\x04left\x12$\n\x05right\x18\x05 \x01(\x0b\x32\x0e.hi.did.ButtonR\x05right\"\x89\x01\n\x0eUserExtendInfo\x12\x12\n\x04logo\x18\x01 \x01(\tR\x04logo\x12\x19\n\x05level\x18\x02 \x01(\x05H\x00R\x05level\x88\x01\x01\x12\x12\n\x04\x63\x61rd\x18\x03 \x01(\tR\x04\x63\x61rd\x12\x16\n\x06\x65xtend\x18\x04 \x01(\tR\x06\x65xtend\x12\x12\n\x04note\x18\x05 \x01(\tR\x04noteB\x08\n\x06_level\"Z\n\x0eUserExtendUnit\x12\x1c\n\x04user\x18\x01 \x01(\x0b\x32\x08.hi.UnitR\x04user\x12*\n\x04info\x18\x02 \x01(\x0b\x32\x16.hi.did.UserExtendInfoR\x04info\"C\n\x13UserExtendUpdateReq\x12,\n\x05units\x18\x01 \x03(\x0b\x32\x16.hi.did.UserExtendUnitR\x05units\"W\n\x11UserExtendListReq\x12\x12\n\x04user\x18\x01 \x01(\tR\x04user\x12.\n\npagination\x18\x02 \x01(\x0b\x32\x0e.hi.PaginationR\npagination\"X\n\x12UserExtendListResp\x12\x14\n\x05total\x18\x01 \x01(\x05R\x05total\x12,\n\x05units\x18\x02 \x03(\x0b\x32\x16.hi.did.UserExtendUnitR\x05units\"+\n\x13UserExtendDeleteReq\x12\x14\n\x05users\x18\x01 \x03(\tR\x05users\"2\n\x14ListByMerchantDidReq\x12\x1a\n\x08merchant\x18\x01 \x01(\tR\x08merchant\"E\n\x15ListByMerchantDidResp\x12,\n\x05units\x18\x01 \x03(\x0b\x32\x16.hi.did.UserExtendUnitR\x05units\"B\n\x10UserExtendGetReq\x12\x1a\n\x08merchant\x18\x01 \x01(\tR\x08merchant\x12\x12\n\x04user\x18\x02 \x01(\tR\x04user\"?\n\x11UserExtendGetResp\x12*\n\x04unit\x18\x01 \x01(\x0b\x32\x16.hi.did.UserExtendUnitR\x04unit2\x92\x01\n\x11UserExtendSetting\x12?\n\x06Update\x12\x16.google.protobuf.Empty\x1a\x1d.hi.did.UserExtendSettingResp\x12<\n\x03Get\x12\x16.google.protobuf.Empty\x1a\x1d.hi.did.UserExtendSettingResp2\xd7\x02\n\nUserExtend\x12=\n\x06Update\x12\x1b.hi.did.UserExtendUpdateReq\x1a\x16.google.protobuf.Empty\x12=\n\x04List\x12\x19.hi.did.UserExtendListReq\x1a\x1a.hi.did.UserExtendListResp\x12=\n\x06\x44\x65lete\x12\x1b.hi.did.UserExtendDeleteReq\x1a\x16.google.protobuf.Empty\x12P\n\x11ListByMerchantDid\x12\x1c.hi.did.ListByMerchantDidReq\x1a\x1d.hi.did.ListByMerchantDidResp\x12:\n\x03Get\x12\x18.hi.did.UserExtendGetReq\x1a\x19.hi.did.UserExtendGetRespb\x06proto3')
29
30
 
30
31
  _globals = globals()
31
32
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
33
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'v1.did.extend_pb2', _globals)
33
34
  if not _descriptor._USE_C_DESCRIPTORS:
34
35
  DESCRIPTOR._loaded_options = None
35
- _globals['_USEREXTENDSETTINGRESP']._serialized_start=60
36
- _globals['_USEREXTENDSETTINGRESP']._serialized_end=127
37
- _globals['_USEREXTENDINFO']._serialized_start=129
38
- _globals['_USEREXTENDINFO']._serialized_end=231
39
- _globals['_USEREXTENDUPDATEREQ']._serialized_start=234
40
- _globals['_USEREXTENDUPDATEREQ']._serialized_end=379
41
- _globals['_USEREXTENDUPDATEREQ_UNIT']._serialized_start=311
42
- _globals['_USEREXTENDUPDATEREQ_UNIT']._serialized_end=379
43
- _globals['_USEREXTENDLISTREQ']._serialized_start=381
44
- _globals['_USEREXTENDLISTREQ']._serialized_end=420
45
- _globals['_USEREXTENDLISTRESP']._serialized_start=423
46
- _globals['_USEREXTENDLISTRESP']._serialized_end=566
47
- _globals['_USEREXTENDLISTRESP_UNIT']._serialized_start=311
48
- _globals['_USEREXTENDLISTRESP_UNIT']._serialized_end=379
49
- _globals['_USEREXTENDDELETEREQ']._serialized_start=568
50
- _globals['_USEREXTENDDELETEREQ']._serialized_end=609
51
- _globals['_USEREXTENDSETTING']._serialized_start=612
52
- _globals['_USEREXTENDSETTING']._serialized_end=758
53
- _globals['_USEREXTEND']._serialized_start=761
54
- _globals['_USEREXTEND']._serialized_end=962
36
+ _globals['_USEREXTENDSETTINGRESP']._serialized_start=73
37
+ _globals['_USEREXTENDSETTINGRESP']._serialized_end=140
38
+ _globals['_BUTTON']._serialized_start=142
39
+ _globals['_BUTTON']._serialized_end=237
40
+ _globals['_CARD']._serialized_start=240
41
+ _globals['_CARD']._serialized_end=382
42
+ _globals['_USEREXTENDINFO']._serialized_start=385
43
+ _globals['_USEREXTENDINFO']._serialized_end=522
44
+ _globals['_USEREXTENDUNIT']._serialized_start=524
45
+ _globals['_USEREXTENDUNIT']._serialized_end=614
46
+ _globals['_USEREXTENDUPDATEREQ']._serialized_start=616
47
+ _globals['_USEREXTENDUPDATEREQ']._serialized_end=683
48
+ _globals['_USEREXTENDLISTREQ']._serialized_start=685
49
+ _globals['_USEREXTENDLISTREQ']._serialized_end=772
50
+ _globals['_USEREXTENDLISTRESP']._serialized_start=774
51
+ _globals['_USEREXTENDLISTRESP']._serialized_end=862
52
+ _globals['_USEREXTENDDELETEREQ']._serialized_start=864
53
+ _globals['_USEREXTENDDELETEREQ']._serialized_end=907
54
+ _globals['_LISTBYMERCHANTDIDREQ']._serialized_start=909
55
+ _globals['_LISTBYMERCHANTDIDREQ']._serialized_end=959
56
+ _globals['_LISTBYMERCHANTDIDRESP']._serialized_start=961
57
+ _globals['_LISTBYMERCHANTDIDRESP']._serialized_end=1030
58
+ _globals['_USEREXTENDGETREQ']._serialized_start=1032
59
+ _globals['_USEREXTENDGETREQ']._serialized_end=1098
60
+ _globals['_USEREXTENDGETRESP']._serialized_start=1100
61
+ _globals['_USEREXTENDGETRESP']._serialized_end=1163
62
+ _globals['_USEREXTENDSETTING']._serialized_start=1166
63
+ _globals['_USEREXTENDSETTING']._serialized_end=1312
64
+ _globals['_USEREXTEND']._serialized_start=1315
65
+ _globals['_USEREXTEND']._serialized_end=1658
55
66
  # @@protoc_insertion_point(module_scope)
@@ -147,6 +147,16 @@ class UserExtendStub(object):
147
147
  request_serializer=v1_dot_did_dot_extend__pb2.UserExtendDeleteReq.SerializeToString,
148
148
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
149
149
  _registered_method=True)
150
+ self.ListByMerchantDid = channel.unary_unary(
151
+ '/hi.did.UserExtend/ListByMerchantDid',
152
+ request_serializer=v1_dot_did_dot_extend__pb2.ListByMerchantDidReq.SerializeToString,
153
+ response_deserializer=v1_dot_did_dot_extend__pb2.ListByMerchantDidResp.FromString,
154
+ _registered_method=True)
155
+ self.Get = channel.unary_unary(
156
+ '/hi.did.UserExtend/Get',
157
+ request_serializer=v1_dot_did_dot_extend__pb2.UserExtendGetReq.SerializeToString,
158
+ response_deserializer=v1_dot_did_dot_extend__pb2.UserExtendGetResp.FromString,
159
+ _registered_method=True)
150
160
 
151
161
 
152
162
  class UserExtendServicer(object):
@@ -173,6 +183,20 @@ class UserExtendServicer(object):
173
183
  context.set_details('Method not implemented!')
174
184
  raise NotImplementedError('Method not implemented!')
175
185
 
186
+ def ListByMerchantDid(self, request, context):
187
+ """Extend-Token鉴权
188
+ """
189
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
190
+ context.set_details('Method not implemented!')
191
+ raise NotImplementedError('Method not implemented!')
192
+
193
+ def Get(self, request, context):
194
+ """Extend-Token鉴权
195
+ """
196
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
197
+ context.set_details('Method not implemented!')
198
+ raise NotImplementedError('Method not implemented!')
199
+
176
200
 
177
201
  def add_UserExtendServicer_to_server(servicer, server):
178
202
  rpc_method_handlers = {
@@ -191,6 +215,16 @@ def add_UserExtendServicer_to_server(servicer, server):
191
215
  request_deserializer=v1_dot_did_dot_extend__pb2.UserExtendDeleteReq.FromString,
192
216
  response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
193
217
  ),
218
+ 'ListByMerchantDid': grpc.unary_unary_rpc_method_handler(
219
+ servicer.ListByMerchantDid,
220
+ request_deserializer=v1_dot_did_dot_extend__pb2.ListByMerchantDidReq.FromString,
221
+ response_serializer=v1_dot_did_dot_extend__pb2.ListByMerchantDidResp.SerializeToString,
222
+ ),
223
+ 'Get': grpc.unary_unary_rpc_method_handler(
224
+ servicer.Get,
225
+ request_deserializer=v1_dot_did_dot_extend__pb2.UserExtendGetReq.FromString,
226
+ response_serializer=v1_dot_did_dot_extend__pb2.UserExtendGetResp.SerializeToString,
227
+ ),
194
228
  }
195
229
  generic_handler = grpc.method_handlers_generic_handler(
196
230
  'hi.did.UserExtend', rpc_method_handlers)
@@ -282,3 +316,57 @@ class UserExtend(object):
282
316
  timeout,
283
317
  metadata,
284
318
  _registered_method=True)
319
+
320
+ @staticmethod
321
+ def ListByMerchantDid(request,
322
+ target,
323
+ options=(),
324
+ channel_credentials=None,
325
+ call_credentials=None,
326
+ insecure=False,
327
+ compression=None,
328
+ wait_for_ready=None,
329
+ timeout=None,
330
+ metadata=None):
331
+ return grpc.experimental.unary_unary(
332
+ request,
333
+ target,
334
+ '/hi.did.UserExtend/ListByMerchantDid',
335
+ v1_dot_did_dot_extend__pb2.ListByMerchantDidReq.SerializeToString,
336
+ v1_dot_did_dot_extend__pb2.ListByMerchantDidResp.FromString,
337
+ options,
338
+ channel_credentials,
339
+ insecure,
340
+ call_credentials,
341
+ compression,
342
+ wait_for_ready,
343
+ timeout,
344
+ metadata,
345
+ _registered_method=True)
346
+
347
+ @staticmethod
348
+ def Get(request,
349
+ target,
350
+ options=(),
351
+ channel_credentials=None,
352
+ call_credentials=None,
353
+ insecure=False,
354
+ compression=None,
355
+ wait_for_ready=None,
356
+ timeout=None,
357
+ metadata=None):
358
+ return grpc.experimental.unary_unary(
359
+ request,
360
+ target,
361
+ '/hi.did.UserExtend/Get',
362
+ v1_dot_did_dot_extend__pb2.UserExtendGetReq.SerializeToString,
363
+ v1_dot_did_dot_extend__pb2.UserExtendGetResp.FromString,
364
+ options,
365
+ channel_credentials,
366
+ insecure,
367
+ call_credentials,
368
+ compression,
369
+ wait_for_ready,
370
+ timeout,
371
+ metadata,
372
+ _registered_method=True)
@@ -27,7 +27,7 @@ from hi_grpc_client import hi_pb2 as v1_dot_hi__pb2
27
27
  from hi_grpc_client.did import base_pb2 as v1_dot_did_dot_base__pb2
28
28
 
29
29
 
30
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15v1/did/merchant.proto\x12\x06hi.did\x1a\x1bgoogle/protobuf/empty.proto\x1a\x0bv1/hi.proto\x1a\x11v1/did/base.proto\"\xd4\x02\n\x0cMerchantInfo\x12 \n\x06master\x18\x01 \x01(\x0b\x32\x08.hi.UnitR\x06master\x12 \n\x06server\x18\x02 \x01(\x0b\x32\x08.hi.UnitR\x06server\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n\x04logo\x18\x04 \x01(\tR\x04logo\x12/\n\x0cpublic_coins\x18\x05 \x03(\x0b\x32\x0c.hi.did.CoinR\x0bpublicCoins\x12\x31\n\rcustom_tokens\x18\x06 \x03(\x0b\x32\x0c.hi.did.CoinR\x0c\x63ustomTokens\x12\x1a\n\x08\x65ndpoint\x18\x07 \x01(\tR\x08\x65ndpoint\x12\x16\n\x06scheme\x18\x08 \x01(\tR\x06scheme\x12!\n\x0c\x65xtend_token\x18\t \x01(\tR\x0b\x65xtendToken\x12\x1d\n\ncreated_at\x18\n \x01(\x03R\tcreatedAt\";\n\x0fMerchantGetResp\x12(\n\x04info\x18\x01 \x01(\x0b\x32\x14.hi.did.MerchantInfoR\x04info\"\xb4\x01\n\x0eMerchantSetReq\x12\x16\n\x06server\x18\x01 \x01(\tR\x06server\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n\x04logo\x18\x03 \x01(\tR\x04logo\x12\x14\n\x05\x63oins\x18\x04 \x03(\tR\x05\x63oins\x12\x1a\n\x08\x65ndpoint\x18\x05 \x01(\tR\x08\x65ndpoint\x12\x16\n\x06scheme\x18\x06 \x01(\tR\x06scheme\x12\x18\n\x07\x63omment\x18\x07 \x01(\tR\x07\x63omment\"R\n\x10MerchantListResp\x12\x14\n\x05total\x18\x01 \x01(\x05R\x05total\x12(\n\x04list\x18\x02 \x03(\x0b\x32\x14.hi.did.MerchantInfoR\x04list\"8\n\x12UserProfileGetResp\x12\"\n\x07profile\x18\x01 \x01(\x0b\x32\x08.hi.UnitR\x07profile\"Q\n\x11UserProfileSetReq\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n\x06\x61vatar\x18\x03 \x01(\tR\x06\x61vatar\"3\n\x14\x42\x61tchSaveMerchantReq\x12\x1b\n\tuser_dids\x18\x01 \x03(\tR\x08userDids\";\n\x11MerchantNotifyReq\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\x12\x14\n\x05nonce\x18\x02 \x01(\tR\x05nonce\"@\n\x0eOrderEventResp\x12\x14\n\x05\x65vent\x18\x01 \x01(\tR\x05\x65vent\x12\x18\n\x07payload\x18\x02 \x01(\tR\x07payload2\x94\x03\n\x08Merchant\x12\x36\n\x03Get\x12\x16.google.protobuf.Empty\x1a\x17.hi.did.MerchantGetResp\x12\x35\n\x03Set\x12\x16.hi.did.MerchantSetReq\x1a\x16.google.protobuf.Empty\x12)\n\x04List\x12\x07.hi.DID\x1a\x18.hi.did.MerchantListResp\x12\x35\n\x0eGetUserProfile\x12\x07.hi.DID\x1a\x1a.hi.did.UserProfileGetResp\x12\x43\n\x0eSetUserProfile\x12\x19.hi.did.UserProfileSetReq\x1a\x16.google.protobuf.Empty\x12/\n\x0bGetMerchant\x12\x07.hi.DID\x1a\x17.hi.did.MerchantGetResp\x12\x41\n\tBatchSave\x12\x1c.hi.did.BatchSaveMerchantReq\x1a\x16.google.protobuf.Empty2t\n\x03SSE\x12\x30\n\x0bOrderEvents\x12\x07.hi.DID\x1a\x16.hi.did.OrderEventResp0\x01\x12;\n\x06Notify\x12\x19.hi.did.MerchantNotifyReq\x1a\x16.google.protobuf.Emptyb\x06proto3')
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15v1/did/merchant.proto\x12\x06hi.did\x1a\x1bgoogle/protobuf/empty.proto\x1a\x0bv1/hi.proto\x1a\x11v1/did/base.proto\"\xd4\x02\n\x0cMerchantInfo\x12 \n\x06master\x18\x01 \x01(\x0b\x32\x08.hi.UnitR\x06master\x12 \n\x06server\x18\x02 \x01(\x0b\x32\x08.hi.UnitR\x06server\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n\x04logo\x18\x04 \x01(\tR\x04logo\x12/\n\x0cpublic_coins\x18\x05 \x03(\x0b\x32\x0c.hi.did.CoinR\x0bpublicCoins\x12\x31\n\rcustom_tokens\x18\x06 \x03(\x0b\x32\x0c.hi.did.CoinR\x0c\x63ustomTokens\x12\x1a\n\x08\x65ndpoint\x18\x07 \x01(\tR\x08\x65ndpoint\x12\x16\n\x06scheme\x18\x08 \x01(\tR\x06scheme\x12!\n\x0c\x65xtend_token\x18\t \x01(\tR\x0b\x65xtendToken\x12\x1d\n\ncreated_at\x18\n \x01(\x03R\tcreatedAt\";\n\x0fMerchantGetResp\x12(\n\x04info\x18\x01 \x01(\x0b\x32\x14.hi.did.MerchantInfoR\x04info\"\xb4\x01\n\x0eMerchantSetReq\x12\x16\n\x06server\x18\x01 \x01(\tR\x06server\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n\x04logo\x18\x03 \x01(\tR\x04logo\x12\x14\n\x05\x63oins\x18\x04 \x03(\tR\x05\x63oins\x12\x1a\n\x08\x65ndpoint\x18\x05 \x01(\tR\x08\x65ndpoint\x12\x16\n\x06scheme\x18\x06 \x01(\tR\x06scheme\x12\x18\n\x07\x63omment\x18\x07 \x01(\tR\x07\x63omment\"R\n\x10MerchantListResp\x12\x14\n\x05total\x18\x01 \x01(\x05R\x05total\x12(\n\x04list\x18\x02 \x03(\x0b\x32\x14.hi.did.MerchantInfoR\x04list\"8\n\x12UserProfileGetResp\x12\"\n\x07profile\x18\x01 \x01(\x0b\x32\x08.hi.UnitR\x07profile\"Q\n\x11UserProfileSetReq\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n\x06\x61vatar\x18\x03 \x01(\tR\x06\x61vatar\"3\n\x14\x42\x61tchSaveMerchantReq\x12\x1b\n\tuser_dids\x18\x01 \x03(\tR\x08userDids\"9\n\x11\x45xtendTokenGetReq\x12\x10\n\x03\x61pp\x18\x01 \x01(\tR\x03\x61pp\x12\x12\n\x04user\x18\x02 \x01(\tR\x04user\"*\n\x12\x45xtendTokenGetResp\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\";\n\x11MerchantNotifyReq\x12\x10\n\x03\x64id\x18\x01 \x01(\tR\x03\x64id\x12\x14\n\x05nonce\x18\x02 \x01(\tR\x05nonce\"@\n\x0eOrderEventResp\x12\x14\n\x05\x65vent\x18\x01 \x01(\tR\x05\x65vent\x12\x18\n\x07payload\x18\x02 \x01(\tR\x07payload2\x94\x03\n\x08Merchant\x12\x36\n\x03Get\x12\x16.google.protobuf.Empty\x1a\x17.hi.did.MerchantGetResp\x12\x35\n\x03Set\x12\x16.hi.did.MerchantSetReq\x1a\x16.google.protobuf.Empty\x12)\n\x04List\x12\x07.hi.DID\x1a\x18.hi.did.MerchantListResp\x12\x35\n\x0eGetUserProfile\x12\x07.hi.DID\x1a\x1a.hi.did.UserProfileGetResp\x12\x43\n\x0eSetUserProfile\x12\x19.hi.did.UserProfileSetReq\x1a\x16.google.protobuf.Empty\x12/\n\x0bGetMerchant\x12\x07.hi.DID\x1a\x17.hi.did.MerchantGetResp\x12\x41\n\tBatchSave\x12\x1c.hi.did.BatchSaveMerchantReq\x1a\x16.google.protobuf.Empty2t\n\x03SSE\x12\x30\n\x0bOrderEvents\x12\x07.hi.DID\x1a\x16.hi.did.OrderEventResp0\x01\x12;\n\x06Notify\x12\x19.hi.did.MerchantNotifyReq\x1a\x16.google.protobuf.Emptyb\x06proto3')
31
31
 
32
32
  _globals = globals()
33
33
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -48,12 +48,16 @@ if not _descriptor._USE_C_DESCRIPTORS:
48
48
  _globals['_USERPROFILESETREQ']._serialized_end=904
49
49
  _globals['_BATCHSAVEMERCHANTREQ']._serialized_start=906
50
50
  _globals['_BATCHSAVEMERCHANTREQ']._serialized_end=957
51
- _globals['_MERCHANTNOTIFYREQ']._serialized_start=959
52
- _globals['_MERCHANTNOTIFYREQ']._serialized_end=1018
53
- _globals['_ORDEREVENTRESP']._serialized_start=1020
54
- _globals['_ORDEREVENTRESP']._serialized_end=1084
55
- _globals['_MERCHANT']._serialized_start=1087
56
- _globals['_MERCHANT']._serialized_end=1491
57
- _globals['_SSE']._serialized_start=1493
58
- _globals['_SSE']._serialized_end=1609
51
+ _globals['_EXTENDTOKENGETREQ']._serialized_start=959
52
+ _globals['_EXTENDTOKENGETREQ']._serialized_end=1016
53
+ _globals['_EXTENDTOKENGETRESP']._serialized_start=1018
54
+ _globals['_EXTENDTOKENGETRESP']._serialized_end=1060
55
+ _globals['_MERCHANTNOTIFYREQ']._serialized_start=1062
56
+ _globals['_MERCHANTNOTIFYREQ']._serialized_end=1121
57
+ _globals['_ORDEREVENTRESP']._serialized_start=1123
58
+ _globals['_ORDEREVENTRESP']._serialized_end=1187
59
+ _globals['_MERCHANT']._serialized_start=1190
60
+ _globals['_MERCHANT']._serialized_end=1594
61
+ _globals['_SSE']._serialized_start=1596
62
+ _globals['_SSE']._serialized_end=1712
59
63
  # @@protoc_insertion_point(module_scope)
File without changes
@@ -1 +0,0 @@
1
- __all__ = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hi-grpc-client
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: hi-proto项目客户端代码(Python版)
5
5
  Author: hi
6
6
  License: MIT
@@ -21,4 +21,28 @@ Provides-Extra: test
21
21
  Requires-Dist: pytest; extra == "test"
22
22
  Requires-Dist: pytest-cov; extra == "test"
23
23
 
24
- hi-grpc-client
24
+ 本项目是hi-proto项目生成的python客户端代码。
25
+
26
+ # 1 使用说明
27
+ 将本项目的代码和hi-proto项目的代码放到同级目录,在hi-proto项目中执行make python生成python代码,再在本项目中执行构建生成python包并上传到PyPI仓库。
28
+
29
+ 用户通过pip安装即可本包,安装命令如下:
30
+ ```shell
31
+ # 版本号根据实际情况设置
32
+ pip install hi-grpc-client==1.0.2
33
+ ```
34
+
35
+ # 2 构建
36
+ ```shell
37
+ # 复制代码
38
+ make copy
39
+
40
+ # 构建wheel包和源码包
41
+ make build
42
+
43
+ # 上传wheel包和源码包到PyPI仓库
44
+ make twine
45
+
46
+ # 清理
47
+ make clean
48
+ ```
@@ -1,8 +1,7 @@
1
- hi_grpc_client/__init__.py,sha256=d4IG0OxUXj2HffepzQcYixHlZeuuuDMAFa09H_6LtmU,12
1
+ hi_grpc_client/__init__.py,sha256=rAGXAo4wPssvuNlDcI8rQrWVWw2gIw0JlUQZopGVU7w,415
2
2
  hi_grpc_client/hi_pb2.py,sha256=6M23WBwpiOBRz3mIcBBzrzfkf6d4EG2j2fGpd95c3n8,3229
3
3
  hi_grpc_client/hi_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
4
- hi_grpc_client/init.py,sha256=kMZRzEOyZZy2ri73iOPBlG7XWcbyiYOpsj78Yl2KWkw,535
5
- hi_grpc_client/ai/__init__.py,sha256=d4IG0OxUXj2HffepzQcYixHlZeuuuDMAFa09H_6LtmU,12
4
+ hi_grpc_client/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
5
  hi_grpc_client/ai/api_key_pb2.py,sha256=xVhUyUDk65zpDnT9vM86m219a3Yzcy9UMCnYOvCuIQs,3558
7
6
  hi_grpc_client/ai/api_key_pb2_grpc.py,sha256=lLUR63LxGhe9z57tMIYLo9raUk-blgFhhnjf42-WhzE,7818
8
7
  hi_grpc_client/ai/base_pb2.py,sha256=Dl4i2qyQSP02E90K7QMjJJXGImPfz5UybpG_Gu7QK7U,1527
@@ -25,13 +24,13 @@ hi_grpc_client/ai/train_pb2.py,sha256=59cIIDHbC68n2B5UUVOTrCOs4uql21VpjYcVz72lOY
25
24
  hi_grpc_client/ai/train_pb2_grpc.py,sha256=OpD0W0gf6peN2l4l6LdQec5nC-7sOASexDM_AMAXs30,25624
26
25
  hi_grpc_client/ai/user_acl_pb2.py,sha256=E4jFw5WFRAP4UbkBapSwrkXQODts8gPe3JNbizDDSCQ,3501
27
26
  hi_grpc_client/ai/user_acl_pb2_grpc.py,sha256=RLBuYAZazOYXSOHn-NQynDhskBxSZeG_TD2XJ4afjYU,9546
28
- hi_grpc_client/ai/endpoint/__init__.py,sha256=d4IG0OxUXj2HffepzQcYixHlZeuuuDMAFa09H_6LtmU,12
27
+ hi_grpc_client/ai/endpoint/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
28
  hi_grpc_client/ai/endpoint/endpoint_pb2.py,sha256=unazE5qtBZsMdm4racH4t5p6CLPp_hfrrtsyZZ41Oew,1965
30
29
  hi_grpc_client/ai/endpoint/endpoint_pb2_grpc.py,sha256=46Do1QVnYgOaEPKHcV8YfJEdCHWktM-unKfKMHJo6Rw,4635
31
- hi_grpc_client/ai/plugin/__init__.py,sha256=d4IG0OxUXj2HffepzQcYixHlZeuuuDMAFa09H_6LtmU,12
30
+ hi_grpc_client/ai/plugin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
31
  hi_grpc_client/ai/plugin/plugin_pb2.py,sha256=t5_VPGmnONUDPFvP3IrMRy0XnQdMKOv1K7nI8hwOvUg,2706
33
32
  hi_grpc_client/ai/plugin/plugin_pb2_grpc.py,sha256=Ia0OcRv4fP0f1DBny2Ny1buaoCM1vt3rUq8mqZjgvZY,4578
34
- hi_grpc_client/club/__init__.py,sha256=d4IG0OxUXj2HffepzQcYixHlZeuuuDMAFa09H_6LtmU,12
33
+ hi_grpc_client/club/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
34
  hi_grpc_client/club/assets_pb2.py,sha256=u5bxzkXghgnZT1Jmtu_FnMmOhkeKFLwge8dg03cnbGU,1545
36
35
  hi_grpc_client/club/assets_pb2_grpc.py,sha256=SC6KzsGk9SSl3SSFvHkunRRdepFyfOdhIRs5NpJ2IN8,2797
37
36
  hi_grpc_client/club/base_pb2.py,sha256=112O0I0dbIyjwhI-JrjtM7iTHJ44efzDiIS7wmzyizs,2116
@@ -48,40 +47,53 @@ hi_grpc_client/club/merchant_pb2.py,sha256=7dmtkaVClzGcP5NXArWtn-7EKv9XcdtKFwyw-
48
47
  hi_grpc_client/club/merchant_pb2_grpc.py,sha256=M4xPFmK0-vK9VcNkPclK6Ry3cRBgj1TvaJ0SAZCuA9g,4564
49
48
  hi_grpc_client/club/user_acl_pb2.py,sha256=nduN_GRcvzRFnxan3YlUk37bQpIIUnYScsXLGOr3uNU,1960
50
49
  hi_grpc_client/club/user_acl_pb2_grpc.py,sha256=UrWh6MIl_Cq_QsmdVpFpqNZlZy0v3-jvJQUUGfqARl0,9690
51
- hi_grpc_client/club/user_pb2.py,sha256=bR6PFHeStZHA6QkPHx88oH8WvSo8x2e0npvCBgsXONY,5047
50
+ hi_grpc_client/club/user_pb2.py,sha256=Ol2llzVsuJF7Jq8j0rMpwptpssjv0VhCqCHnUAzjDTE,5323
52
51
  hi_grpc_client/club/user_pb2_grpc.py,sha256=FDvMh56EuEC2Y7b56aMpnNyRJq7s_FeMZ7z_Re3RiLI,21923
52
+ hi_grpc_client/club/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  hi_grpc_client/club/ai/plugin_pb2.py,sha256=l0v9fjek_uMHfGeO1O6nV0mfwkTT6w4NMHzMLsCrrNA,2361
54
54
  hi_grpc_client/club/ai/plugin_pb2_grpc.py,sha256=VoCW-pJQ58F4HAWUj44ZX1eDm0gU4nDpeAyc-R1GDno,18322
55
55
  hi_grpc_client/club/ai/train_pb2.py,sha256=4GlwptbvK3-k6KTQCdcRBLeMGT476EVy7E2QJWMIveo,2733
56
56
  hi_grpc_client/club/ai/train_pb2_grpc.py,sha256=JTZ7pF8IQMBtSGK8WB-TyhBUeTpAXq4xatd_C0H3e1k,25771
57
+ hi_grpc_client/club/firebase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
58
  hi_grpc_client/club/firebase/firebase_pb2.py,sha256=uCdqwPUWp3A9BtDh31lEow0XKq_uUVq9lpUyrcv1bPU,2091
58
59
  hi_grpc_client/club/firebase/firebase_pb2_grpc.py,sha256=8rSF13NNC9--m7f2-GjfzFkELbKBN70N0fMBcSQCAzw,4678
60
+ hi_grpc_client/club/group/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
61
  hi_grpc_client/club/group/group_pb2.py,sha256=-yP_Ku_0llkgJ4REijUQxC2nRNqKfel-aYlIkVAVGuA,8295
60
62
  hi_grpc_client/club/group/group_pb2_grpc.py,sha256=gqItDAt_UDo7kQbssAEtmJIg1IJ4ZoPNmwWJNKLxZ1Q,30502
63
+ hi_grpc_client/club/mqtt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
64
  hi_grpc_client/club/mqtt/mqtt_pb2.py,sha256=ck4DX6AmSaHuGnzRDQ82sBYHU_k7ilkjqF3844cfu0g,6341
62
65
  hi_grpc_client/club/mqtt/mqtt_pb2_grpc.py,sha256=HgnZS9TPfbF35KMEYnyozrhwLPXvXT3iEf450FmWwgg,2845
66
+ hi_grpc_client/club/price/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
+ hi_grpc_client/club/price/price_pb2.py,sha256=MX87a1zBqnOW95GTVgKVr5fD7zvJmuoMx9RYMEdUL8Y,1436
68
+ hi_grpc_client/club/price/price_pb2_grpc.py,sha256=ynzY5KkiZCuXipToUQdZLo0J0qHrbfJlcDNjtFzE08w,2702
69
+ hi_grpc_client/club/q3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
70
  hi_grpc_client/club/q3/q3_pb2.py,sha256=S7rk5Sj3mZ4Ar_xiXI8nMNdoAFZqiy2Njt_YmEZS5BM,4405
64
71
  hi_grpc_client/club/q3/q3_pb2_grpc.py,sha256=0nPKBDYxNA24tVo6S2lQfYaHPkk_h1sx5USMwhSc81U,9556
72
+ hi_grpc_client/club/tx/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
73
  hi_grpc_client/club/tx/pc_order_pb2.py,sha256=chf_tJEtVFJU5nODyl4IUbxxQmrK6PJ-5LOI4Q7wmAY,3360
66
74
  hi_grpc_client/club/tx/pc_order_pb2_grpc.py,sha256=xDpF0MP02IN6WxBoBKnU9jVmGKrbPY27CI5GbG54H7k,4747
67
75
  hi_grpc_client/club/tx/trade_pb2.py,sha256=v5f-pcD0esBdJbZrXL9fPzupd0OQdtJOPnKGbNcZ88M,6478
68
76
  hi_grpc_client/club/tx/trade_pb2_grpc.py,sha256=PxpU5RrrRbJ6MZq87DJpqT5qP8EOBJ5nN-LwP1M24WE,11810
77
+ hi_grpc_client/club/userextend/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
78
+ hi_grpc_client/club/userextend/user_extend_pb2.py,sha256=ibHlykNp1JaUDvaPFExBNF1u8SShnCgFrBcWbI1oQPg,1688
79
+ hi_grpc_client/club/userextend/user_extend_pb2_grpc.py,sha256=fgoMrvUgenO2JHLw6RWqfHelgL7WiDUM25U565UpcRo,2944
80
+ hi_grpc_client/club/world/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
69
81
  hi_grpc_client/club/world/agent_pb2.py,sha256=DkbCgJZELo-DdRYb4ajPf_0SyoUnvu0QaFqQSNawWYQ,1584
70
82
  hi_grpc_client/club/world/agent_pb2_grpc.py,sha256=HjKhMxFTSeDH18JNTe7ziAncuw_TK9ndvx48pE6hocY,2723
71
- hi_grpc_client/did/__init__.py,sha256=d4IG0OxUXj2HffepzQcYixHlZeuuuDMAFa09H_6LtmU,12
83
+ hi_grpc_client/did/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
84
  hi_grpc_client/did/admin_pb2.py,sha256=Tqmb3fgeFrNGzkRWb3NUZ5neFXhCXXQ__Ux2ilIb_2A,7664
73
85
  hi_grpc_client/did/admin_pb2_grpc.py,sha256=4qiP2r1WmzubZmo1hqDyg15dOkA20d-8Om5ZoFifrZc,29497
74
86
  hi_grpc_client/did/base_pb2.py,sha256=Oym5mFsE-FwzRg522jOS39GVUMVeeqR4-tSWh9o9x08,3168
75
87
  hi_grpc_client/did/base_pb2_grpc.py,sha256=-mnJnrSpLtjdzik63hO4ZzVyjHkLAPNmXoEQrxc684Y,10342
76
88
  hi_grpc_client/did/callback_pb2.py,sha256=q5qMME7R8rDdRCYaYeg_GSvrxFP18TYTg54k58SV0uQ,1691
77
89
  hi_grpc_client/did/callback_pb2_grpc.py,sha256=9EwIvGAEf5Sk0yWrkEw4p7cKS5OP-TpnNYvwMfsDB-4,5030
78
- hi_grpc_client/did/extend_pb2.py,sha256=lAUgvcH-x0HZOTXb59LjPjrDjyz0cOCwdC21P7uhCZc,3815
79
- hi_grpc_client/did/extend_pb2_grpc.py,sha256=fizD_BFrFgvof-rD6nNmNIBLUJY3xinaSK87EVR7QoA,10481
90
+ hi_grpc_client/did/extend_pb2.py,sha256=vQmhWCtCePrjZowp9Zhv5SnV2585PcU_a6sg2APy8D4,5493
91
+ hi_grpc_client/did/extend_pb2_grpc.py,sha256=h9tfVeLNFfJ74d3UyHBwuF9PE0QzhyFOTjxqXRF3yl4,13971
80
92
  hi_grpc_client/did/health_pb2.py,sha256=aeH3RwVnRsYXLXJQETlEtXuMI0pplvonSjMgUXP05UY,1430
81
93
  hi_grpc_client/did/health_pb2_grpc.py,sha256=ZcbrK0MxbsB46Ha-FvjhOI4Vjwshgs4WvcR10uCxlQ4,2682
82
94
  hi_grpc_client/did/login_pb2.py,sha256=tQGJhwuBfwgyA6uLm_421V7S013WLvhW3wHReUTVDms,3326
83
95
  hi_grpc_client/did/login_pb2_grpc.py,sha256=dppvQIusa3F-ftdWL-ylpSCalUXXh8E3PJAd6TNe7zo,10998
84
- hi_grpc_client/did/merchant_pb2.py,sha256=4XoNoA9FAE6o-WRLXfu_ryYwEQGg2sJ5aML3qeKS36Y,5085
96
+ hi_grpc_client/did/merchant_pb2.py,sha256=DinMqV7zNuTPFq2XVms2mUjUNFP4oh3optzVMrxlsns,5501
85
97
  hi_grpc_client/did/merchant_pb2_grpc.py,sha256=-6tRHilTpNSJxLgCdnMfe7YiiMJtKDNPNFCfPFAVIDU,16997
86
98
  hi_grpc_client/did/pay_pb2.py,sha256=6xbI7O8yabo-LnwO2FCFBwbyxf1sXhWrKSaa2WoIfuw,1746
87
99
  hi_grpc_client/did/pay_pb2_grpc.py,sha256=EJsotz67a63Oa5Q3ulQDLJoVvZx8itcY2ekvPs1-xcI,4249
@@ -93,12 +105,13 @@ hi_grpc_client/did/user_pb2.py,sha256=edJr9LcvParWx6Ef2VpxQXpymi0h2lhkRtnRbuoykn
93
105
  hi_grpc_client/did/user_pb2_grpc.py,sha256=2J6Y636gICeqx8rVuKEMv0NlfoNEdGW0eCzdpHlB774,4245
94
106
  hi_grpc_client/did/wallet_pb2.py,sha256=ri5y6-Rb8KhPYTAsEydQJGkqc4htmdSdXvjteDK0VX0,7127
95
107
  hi_grpc_client/did/wallet_pb2_grpc.py,sha256=YDFRkqqv9kq_5t_5f5Q9rc0GUF88IuRkkFwUXZRYZ6s,13208
108
+ hi_grpc_client/did/world/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
96
109
  hi_grpc_client/did/world/agent_pb2.py,sha256=l9rakpfNypR2Aj0u8_Dno4spdihEylF8qzJpnv31rNI,4714
97
110
  hi_grpc_client/did/world/agent_pb2_grpc.py,sha256=mc9RH4U0ayK3Cwci-PG0nwV6AfeYGJlWniCu5Y5w7YA,11485
98
- hi_grpc_client/source/__init__.py,sha256=d4IG0OxUXj2HffepzQcYixHlZeuuuDMAFa09H_6LtmU,12
111
+ hi_grpc_client/source/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
99
112
  hi_grpc_client/source/source_pb2.py,sha256=Y_kMTwjHv98AD--FXNyMehgw0vdDdgutUZWiHvcjoak,2238
100
113
  hi_grpc_client/source/source_pb2_grpc.py,sha256=P0tQSRMpeeLuNy0pcGKBoCfwNMs13mn_Fl-w5kv2aGo,4452
101
- hi_grpc_client-1.0.2.dist-info/METADATA,sha256=S91N63Iu9fJT-TwD6Qx64Q6DFNHRfqJnraEGAZIDICA,743
102
- hi_grpc_client-1.0.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
103
- hi_grpc_client-1.0.2.dist-info/top_level.txt,sha256=p_sNtdq4OSS9dkxSI-xHC_2EaeV449MpG_3ddGLKO5o,15
104
- hi_grpc_client-1.0.2.dist-info/RECORD,,
114
+ hi_grpc_client-1.0.3.dist-info/METADATA,sha256=lGLs5NdldV0sxN3mQvboO2kmQ7FcYZ_0iKtKjviZHb0,1311
115
+ hi_grpc_client-1.0.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
116
+ hi_grpc_client-1.0.3.dist-info/top_level.txt,sha256=p_sNtdq4OSS9dkxSI-xHC_2EaeV449MpG_3ddGLKO5o,15
117
+ hi_grpc_client-1.0.3.dist-info/RECORD,,
hi_grpc_client/init.py DELETED
@@ -1,29 +0,0 @@
1
- """
2
- Hi api grpc client package
3
- A comprehensive service package with AI, Club, DID modules and gRPC support.
4
- """
5
-
6
- __version__ = "1.0.2"
7
- __author__ = "Your Name"
8
-
9
- # 导出主要模块
10
- from . import ai
11
- from . import club
12
- from . import did
13
- from . import source
14
-
15
- # 导出protobuf生成的模块
16
- from . import hi_pb2
17
- from . import hi_pb2_grpc
18
-
19
- # 如果有主要的类或函数,可以在这里导出
20
- # from .main import SomeClass, some_function
21
-
22
- __all__ = [
23
- 'ai',
24
- 'club',
25
- 'did',
26
- 'source',
27
- 'hi_pb2',
28
- 'hi_pb2_grpc',
29
- ]