mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-30 06:22:44 +08:00
1、用户表增加注册IP 登陆IP 2、新增ip_limit表、user_ip_limit表 3、用户创建需要增加createIp参数同步 用户登录需要增加loginIp参数同步 login_limit 限制说明 0:读取ip_limits表 限制用户注册+用户登陆IP 1:读取user_ip_limits表 限制用户在指定IP登陆 2:读取black_lists表 限制用户在限制时间不能登陆
54 lines
1012 B
Protocol Buffer
54 lines
1012 B
Protocol Buffer
syntax = "proto3";
|
|
import "Open_IM/pkg/proto/sdk_ws/ws.proto";
|
|
package pbAuth;
|
|
option go_package = "./auth;pbAuth";
|
|
|
|
message CommonResp{
|
|
int32 errCode = 1;
|
|
string errMsg = 2;
|
|
}
|
|
|
|
message UserRegisterReq {
|
|
server_api_params.UserInfo UserInfo = 1;
|
|
string OperationID = 2;
|
|
}
|
|
message UserRegisterResp {
|
|
CommonResp CommonResp = 1;
|
|
}
|
|
|
|
|
|
message UserTokenReq {
|
|
int32 Platform = 1;
|
|
string FromUserID = 2;
|
|
string OpUserID = 3;
|
|
string OperationID = 4;
|
|
string LoginIp = 5;
|
|
}
|
|
message UserTokenResp {
|
|
CommonResp CommonResp = 1;
|
|
string Token = 2;
|
|
int64 ExpiredTime = 3;
|
|
}
|
|
|
|
|
|
|
|
message ForceLogoutReq {
|
|
int32 Platform = 1;
|
|
string FromUserID = 2;
|
|
string OpUserID = 3;
|
|
string OperationID = 4;
|
|
}
|
|
message ForceLogoutResp {
|
|
CommonResp CommonResp = 1;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
service Auth {
|
|
rpc UserRegister(UserRegisterReq) returns(UserRegisterResp);
|
|
rpc UserToken(UserTokenReq) returns(UserTokenResp);
|
|
rpc ForceLogout(ForceLogoutReq) returns(ForceLogoutResp);
|
|
}
|