Commit 118978e2 authored by 张宇's avatar 张宇

[M]修改配置

parent bfd1b22c
......@@ -4,7 +4,6 @@
<config name="application_name" value="courier"/>
<config name="service_list">
<element value="courier"/>
<element value="message"/>
</config>
<config name="initializer_list">
<element value="courier.management_interface.initialize:initialize"/>
......
......@@ -9,5 +9,4 @@ from rpc_framework.interceptors import SessionUserInterceptor
@rpc_view('courier/test_user')
@interceptor_classes([SessionUserInterceptor])
def test_user(context: RPCViewContext) -> Dict:
print(context.user.id)
return {}
\ No newline at end of file
return {'user_id': context.user.id}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment