hi-grpc-client 1.0.1__tar.gz → 1.0.3__tar.gz
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.
- {hi_grpc_client-1.0.1/src/hi_grpc_client.egg-info → hi_grpc_client-1.0.3}/PKG-INFO +26 -2
- hi_grpc_client-1.0.3/README.md +25 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/pyproject.toml +1 -1
- hi_grpc_client-1.0.1/src/hi_grpc_client/init.py → hi_grpc_client-1.0.3/src/hi_grpc_client/__init__.py +2 -7
- hi_grpc_client-1.0.3/src/hi_grpc_client/ai/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/ai/endpoint/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/ai/plugin/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/ai/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/firebase/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/group/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/mqtt/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/price/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/price/price_pb2.py +37 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/price/price_pb2_grpc.py +78 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/q3/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/tx/__init__.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/user_pb2.py +17 -15
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/userextend/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/userextend/user_extend_pb2.py +39 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/userextend/user_extend_pb2_grpc.py +79 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/club/world/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/did/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/did/extend_pb2.py +66 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/extend_pb2_grpc.py +88 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/merchant_pb2.py +13 -9
- hi_grpc_client-1.0.3/src/hi_grpc_client/did/world/__init__.py +0 -0
- hi_grpc_client-1.0.3/src/hi_grpc_client/source/__init__.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3/src/hi_grpc_client.egg-info}/PKG-INFO +26 -2
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client.egg-info/SOURCES.txt +14 -1
- hi_grpc_client-1.0.1/README.md +0 -1
- hi_grpc_client-1.0.1/src/hi_grpc_client/__init__.py +0 -1
- hi_grpc_client-1.0.1/src/hi_grpc_client/ai/__init__.py +0 -1
- hi_grpc_client-1.0.1/src/hi_grpc_client/ai/endpoint/__init__.py +0 -1
- hi_grpc_client-1.0.1/src/hi_grpc_client/ai/plugin/__init__.py +0 -1
- hi_grpc_client-1.0.1/src/hi_grpc_client/club/__init__.py +0 -1
- hi_grpc_client-1.0.1/src/hi_grpc_client/did/__init__.py +0 -1
- hi_grpc_client-1.0.1/src/hi_grpc_client/did/extend_pb2.py +0 -55
- hi_grpc_client-1.0.1/src/hi_grpc_client/source/__init__.py +0 -1
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/MANIFEST.in +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/requirements.txt +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/setup.cfg +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/api_key_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/api_key_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/base_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/base_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/bot_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/bot_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/chat_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/chat_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/endpoint/endpoint_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/endpoint/endpoint_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/health_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/health_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/invite_code_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/invite_code_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/login_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/login_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/plugin/plugin_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/plugin/plugin_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/plugin_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/plugin_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/setting_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/setting_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/train_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/train_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/user_acl_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/ai/user_acl_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/ai/plugin_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/ai/plugin_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/ai/train_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/ai/train_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/assets_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/assets_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/base_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/base_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/bot_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/bot_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/chat_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/chat_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/firebase/firebase_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/firebase/firebase_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/group/group_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/group/group_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/health_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/health_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/login_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/login_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/merchant_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/merchant_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/mqtt/mqtt_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/mqtt/mqtt_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/q3/q3_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/q3/q3_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/tx/pc_order_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/tx/pc_order_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/tx/trade_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/tx/trade_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/user_acl_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/user_acl_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/user_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/world/agent_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/club/world/agent_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/admin_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/admin_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/base_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/base_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/callback_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/callback_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/health_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/health_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/login_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/login_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/merchant_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/pay_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/pay_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/price_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/price_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/trans_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/trans_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/user_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/user_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/wallet_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/wallet_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/world/agent_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/did/world/agent_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/hi_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/hi_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/source/source_pb2.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client/source/source_pb2_grpc.py +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client.egg-info/dependency_links.txt +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client.egg-info/requires.txt +0 -0
- {hi_grpc_client-1.0.1 → hi_grpc_client-1.0.3}/src/hi_grpc_client.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hi-grpc-client
|
|
3
|
-
Version: 1.0.
|
|
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-
|
|
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
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
本项目是hi-proto项目生成的python客户端代码。
|
|
2
|
+
|
|
3
|
+
# 1 使用说明
|
|
4
|
+
将本项目的代码和hi-proto项目的代码放到同级目录,在hi-proto项目中执行make python生成python代码,再在本项目中执行构建生成python包并上传到PyPI仓库。
|
|
5
|
+
|
|
6
|
+
用户通过pip安装即可本包,安装命令如下:
|
|
7
|
+
```shell
|
|
8
|
+
# 版本号根据实际情况设置
|
|
9
|
+
pip install hi-grpc-client==1.0.2
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
# 2 构建
|
|
13
|
+
```shell
|
|
14
|
+
# 复制代码
|
|
15
|
+
make copy
|
|
16
|
+
|
|
17
|
+
# 构建wheel包和源码包
|
|
18
|
+
make build
|
|
19
|
+
|
|
20
|
+
# 上传wheel包和源码包到PyPI仓库
|
|
21
|
+
make twine
|
|
22
|
+
|
|
23
|
+
# 清理
|
|
24
|
+
make clean
|
|
25
|
+
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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\"
|
|
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=
|
|
49
|
-
_globals['_LISTFRIENDSRESP']._serialized_end=
|
|
50
|
-
_globals['
|
|
51
|
-
_globals['
|
|
52
|
-
_globals['
|
|
53
|
-
_globals['
|
|
54
|
-
_globals['
|
|
55
|
-
_globals['
|
|
56
|
-
_globals['
|
|
57
|
-
_globals['
|
|
58
|
-
_globals['
|
|
59
|
-
_globals['
|
|
60
|
-
_globals['
|
|
61
|
-
_globals['
|
|
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
|
|
File without changes
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: v1/did/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/did/extend.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
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
|
|
27
|
+
|
|
28
|
+
|
|
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')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'v1.did.extend_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
DESCRIPTOR._loaded_options = None
|
|
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
|
|
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['
|
|
52
|
-
_globals['
|
|
53
|
-
_globals['
|
|
54
|
-
_globals['
|
|
55
|
-
_globals['
|
|
56
|
-
_globals['
|
|
57
|
-
_globals['
|
|
58
|
-
_globals['
|
|
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
|
|
File without changes
|