From b4aff74b597ad5604694903cd6b36f355bdfd2a2 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 27 十一月 2023 14:35:11 +0800 Subject: [PATCH] srm同步用户改成同步本公司全部用户 --- proto/user.proto | 36 +++++++++++++++++++++++++++++++++--- 1 files changed, 33 insertions(+), 3 deletions(-) diff --git a/proto/user.proto b/proto/user.proto index 42d1243..5c1ea1b 100644 --- a/proto/user.proto +++ b/proto/user.proto @@ -6,6 +6,8 @@ service UserService { rpc SyncUser(UserRequest) returns (UserResponse); + rpc UserMenuCheck(CheckRequest) returns (CheckResponse); + rpc SyncAllUser(AllUserRequest) returns (AllUserResponse); } message User { @@ -13,8 +15,8 @@ string username = 2; int32 usertype = 3; string nickname = 4; - - // ... other fields + repeated string sub_user_ids = 5; + bool sub_user_queried = 6; } message UserRequest { @@ -26,5 +28,33 @@ string message = 2; repeated User List = 3; int64 total = 4; - } + +message CheckRequest { + string apiPath = 1; //鎺ュ彛璺緞 + int32 SystemType = 2; //绯荤粺鍚嶇О +} + +message CheckResponse { + int32 code = 1; + string message = 2; + bool result = 3; +} + +message AllUserRequest { + int32 SystemType = 1; //绯荤粺鍚嶇О +} + +message UserSimple { + string uuid = 1; + string username = 2; + int32 usertype = 3; + string nickname = 4; +} + +message AllUserResponse { + int32 code = 1; + string message = 2; + repeated UserSimple List = 3; + int64 total = 4; +} \ No newline at end of file -- Gitblit v1.8.0